WebAudio oscillator tests need rebaselining on linux-x86

BUG=320099

Review URL: https://codereview.chromium.org/65533013

git-svn-id: svn://svn.chromium.org/blink/trunk@162143 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert "Split the frame tree logic out of HistoryItem"

This reverts commit 248946a4198984d6e60c2c60b280bf2345c00f47
(http://src.chromium.org/viewvc/blink?revision=162131&view=revision).

This patch caused a bunch of assertions in android webview.

TBR=abarth

git-svn-id: svn://svn.chromium.org/blink/trunk@162144 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 162056 "RenderBlockFlow::nextFloatLogicalBottomBelow shou..."

Cause http://www.theverge.com/2013/3/5/4061684/inside-ted-the-smartest-bubble-in-the-world not to finish loading

See crbug.com/320032 for reproducing steps.

Apparently the code path in this CL is not covered by any unittest/layout_tests

Before trying to land it again, please figure out a way to test it first.

This caused the blink tree to be closed for three hours today.

> RenderBlockFlow::nextFloatLogicalBottomBelow should not use ShapeOutsideFloatOffsetMode
> 
> Rewrite nextFloatLogicalBottomBelow to use the placed floats tree for the
> search and to not need ShapeOutsideFloatOffsetMode anymore. This moves almost
> all of the logic into FloatingObjects, making a small reduction in the amount
> that RenderBlockFlow needs to know about the implementation of FloatingObjects.
> 
> In addition, change ComputeFloatOffsetAdapter to take in LayoutUnits and
> roundToInt itself so that all of it's callers can be simplified.
> 
> Review URL: https://codereview.chromium.org/68123004

TBR=bjonesbe@adobe.com

Review URL: https://codereview.chromium.org/67883008

git-svn-id: svn://svn.chromium.org/blink/trunk@162145 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make MessagePort a normal ActiveDOMObject

This removes special treatment in ExecutionContext, V8GCController, and
code_generator_v8.pm, as well as removing some boilerplate from MessagePort
itself.

The one functional difference is that MessageEvent dispatching from ports
now happens in a new task for each port being delivered to, rather than in
a single combined task for all ports running in an ExecutionContext. I don't
expect this to come up much in practice, though.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/60233009

git-svn-id: svn://svn.chromium.org/blink/trunk@162146 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove TreatNullAs=NullString for <frame>, <frameset> and <iframe>

http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#htmlframeelement
http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#htmlframesetelement
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html#htmliframeelement
http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#HTMLIFrameElement-partial

Per spec the longDesc attribute on HTMLFrameElement and
HTMLIFrameElement should be reflected as a URL, so make it so.

HTMLIFrameElement.sandbox is readonly DOMSettableTokenList in the spec,
so leave it with [TreatNullAs=NullString] until that is fixed.

The tests for the updated properties pass in Firefox Nightly, IE11
Release Preview and Opera 12.16, with these exceptions:

IE11 throws exceptions for HTMLFrameElement.scrolling,
HTMLIFrameElement.align and HTMLIFrameElement.scrolling, reflects
HTMLIFrameElement.width/height as the empty string and does not support
HTMLIFrameElement.srcdoc.

Opera does not support HTMLIFrameElement.srcdoc.

Note that no other browser supports the location attribute, but that has
not been touched here.

BUG=310298

Review URL: https://codereview.chromium.org/68503013

git-svn-id: svn://svn.chromium.org/blink/trunk@162147 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove unused V8ThrowException::createDOMException() helper.

Followup minor issue from crrev.com/68563003 and remove an unused helper
that also supplies an empty creation context.

R=ch.dumez
BUG=

Review URL: https://codereview.chromium.org/70103024

git-svn-id: svn://svn.chromium.org/blink/trunk@162148 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make PartitionAlloc's max allocation ~2GB, to match Chromium's allocator.

BUG=319393

Review URL: https://codereview.chromium.org/73843002

git-svn-id: svn://svn.chromium.org/blink/trunk@162149 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove several uses of toWebCoreStringWithNullCheck(v8::Handle<v8::Value>)

Remove several uses of toWebCoreStringWithNullCheck(v8::Handle<v8::Value>) and replace by
the V8TRYCATCH_FOR_V8STRINGRESOURCE_*() macros. This makes sure that we properly abort
execution when an exception is thrown by v8::Value::ToString().

R=haraken
TEST=fast/dom/CSSStyleDeclaration/css-style-declaration-named-setter.html
TEST=fast/frames/frame-set-location-badstring.html
TEST=fast/xmlhttprequest/xmlhttprequest-open-exceptions.html
TEST=http/tests/local/formdata/send-form-data-with-bad-string.html

Review URL: https://codereview.chromium.org/74133005

git-svn-id: svn://svn.chromium.org/blink/trunk@162150 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Re-land Use HarfBuzz on windows

Change our windows port to use HarfBuzz for complex text shaping instead
of Uniscribe.

This unblocks the DirectWrite effort (as Uniscribe is closely tied to
GDI) and unifies the complex text shaping implementation across Windows,
ChromeOS and Android.

As the functionality that was either missing or incorrect in our
HarfBuzz shaping/drawing implementation has now been addressed the only
differences that are expected from this change are slight (~1 px)
alignment and spacing changes for complex text (as far as tests are
concerned at least).

TBR=eseidel@chromium.org
BUG=313423
TEST=fast/text/international

Originally committed as r162049 and rolled out in r162075 due to a
warning that has since been suppressed in chrome r235403.
This is recommitting exactly the same patch.

Review URL: https://codereview.chromium.org/64473005

git-svn-id: svn://svn.chromium.org/blink/trunk@162151 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove the Simple Default Stylesheet, it's just a foot-gun.

We've been bitten by the Simple Default Stylesheet being out
of sync with the real html.css twice this week.

The Simple Default Stylesheet was invented years ago for Mac:
http://trac.webkit.org/changeset/36135
It nicely handles the case where you just want to create
a single WebView and parse some simple HTML either without
styling said HTML, or only to display a small string, etc.

Note that this optimization/complexity *only* helps for the
very first document, since the default stylesheets are
all static (process-global) variables.  Since any real page
on the internet uses a tag not covered by the simple default
stylesheet, not real load benefits from this optimization.
Only uses of WebView which were just rendering small bits
of text might have benefited from this.  about:blank would
also have used this sheet.

This was a common application for some uses of WebView back
in those days.  These days, even with WebView on Android,
there are likely much larger overheads than parsing the
html.css stylesheet, so making it required seems like the
right tradeoff of code-simplicity for this case.

BUG=319556

Review URL: https://codereview.chromium.org/73723005

git-svn-id: svn://svn.chromium.org/blink/trunk@162153 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Timeline: hovered line highlight goes away when cursor hovers over expanding element.

BUG=
R=pfeldman@chromium.org

Review URL: https://codereview.chromium.org/64553008

git-svn-id: svn://svn.chromium.org/blink/trunk@162154 bbb929c8-8fbe-4397-9dbb-9b2b20218538
This review merges the two existing page serializers, WebPageSerializerImpl and
PageSerializer, into one, PageSerializer. In addition to this it moves all
the old tests from WebPageNewSerializerTest and WebPageSerializerTest to the
PageSerializerTest structure and splits out one test for MHTML into a new
MHTMLTest file.

Saving as 'Webpage, Complete', 'Webpage, HTML Only' and as MHTML when the
'Save Page as MHTML' flag is enabled now uses the same code, and should thus
have the same feature set. Meaning that both modes now should be a bit better.

Detailed list of changes:

- PageSerializerTest: Prepare for more DTD test
- PageSerializerTest: Remove now unneccesary input image test
- PageSerializerTest: Remove unused WebPageSerializer/Impl code
- PageSerializerTest: Move data URI morph test
- PageSerializerTest: Move data URI test
- PageSerializerTest: Move namespace test
- PageSerializerTest: Move SVG Image test
- MHTMLTest: Move MHTML specific test to own test file
- PageSerializerTest: Delete duplicate XML header test
- PageSerializerTest: Move blank frame test
- PageSerializerTest: Move CSS test
- PageSerializerTest: Add frameset/frame test
- PageSerializerTest: Move old iframe test
- PageSerializerTest: Move old elements test
- Use PageSerizer for saving web pages
- PageSerializerTest: Test for rewriting links
- PageSerializer: Add rewrite link accumulator
- PageSerializer: Serialize images in iframes/frames src
- PageSerializer: XHTML fix for meta tags
- PageSerializer: Add presentation CSS
- PageSerializer: Rename out parameter

BUG=
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/68613003

git-svn-id: svn://svn.chromium.org/blink/trunk@162155 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 162155 "This review merges the two existing page serializ..."

Change r162155 broke the world even though it was landed using the CQ.

> This review merges the two existing page serializers, WebPageSerializerImpl and
> PageSerializer, into one, PageSerializer. In addition to this it moves all
> the old tests from WebPageNewSerializerTest and WebPageSerializerTest to the
> PageSerializerTest structure and splits out one test for MHTML into a new
> MHTMLTest file.
> 
> Saving as 'Webpage, Complete', 'Webpage, HTML Only' and as MHTML when the
> 'Save Page as MHTML' flag is enabled now uses the same code, and should thus
> have the same feature set. Meaning that both modes now should be a bit better.
> 
> Detailed list of changes:
> 
> - PageSerializerTest: Prepare for more DTD test
> - PageSerializerTest: Remove now unneccesary input image test
> - PageSerializerTest: Remove unused WebPageSerializer/Impl code
> - PageSerializerTest: Move data URI morph test
> - PageSerializerTest: Move data URI test
> - PageSerializerTest: Move namespace test
> - PageSerializerTest: Move SVG Image test
> - MHTMLTest: Move MHTML specific test to own test file
> - PageSerializerTest: Delete duplicate XML header test
> - PageSerializerTest: Move blank frame test
> - PageSerializerTest: Move CSS test
> - PageSerializerTest: Add frameset/frame test
> - PageSerializerTest: Move old iframe test
> - PageSerializerTest: Move old elements test
> - Use PageSerizer for saving web pages
> - PageSerializerTest: Test for rewriting links
> - PageSerializer: Add rewrite link accumulator
> - PageSerializer: Serialize images in iframes/frames src
> - PageSerializer: XHTML fix for meta tags
> - PageSerializer: Add presentation CSS
> - PageSerializer: Rename out parameter
> 
> BUG=
> R=abarth@chromium.org
> 
> Review URL: https://codereview.chromium.org/68613003

TBR=tiger@opera.com

Review URL: https://codereview.chromium.org/73673003

git-svn-id: svn://svn.chromium.org/blink/trunk@162156 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Unreviewed test expectations update for XP text tests

Updated test expectations for Windows XP changes caused by the switch
to HarfBuzz in r162151.

TBR=dglazkov@chromium.org
BUG=

Review URL: https://codereview.chromium.org/61843004

git-svn-id: svn://svn.chromium.org/blink/trunk@162157 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Mark media/media-can-play-ogg.html as broken

r235337 (https://codereview.chromium.org/62183002/) broken media/media-can-play-ogg.html the webm tests where updated but the ogg one was not.

TBR=vigneshv@chromium.org
BUG=320334

Review URL: https://codereview.chromium.org/74633002

git-svn-id: svn://svn.chromium.org/blink/trunk@162158 bbb929c8-8fbe-4397-9dbb-9b2b20218538