Fix build for architectures with 4 argument registers (broken since r158820).
https://bugs.webkit.org/show_bug.cgi?id=123969

Patch by Julien Brianceau <jbriance@cisco.com> on 2013-11-07
Reviewed by Andreas Kling.

* jit/CCallHelpers.h:
(JSC::CCallHelpers::setupArguments):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158830 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Generate type casting helpers for line boxes and use them.
<https://webkit.org/b/123976>

Semi-automatically generate the full set of toFooInlineBox()
helpers with macros instead of having them (partially) hand-coded.
Replaced static_casts with the new helpers across the codebase.

Also made the isFooInlineBox() overrides private since they should
never be called when the type is already known.

Reviewed by Antti Koivisto.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158832 268f45cc-cd09-0410-ab3c-d52691b4dbfc
More CSSPrimitiveValue constructors should return PassRef.
<https://webkit.org/b/123953>

Make some more CSSPrimitiveValue constructor helpers (that are
known to never return null) return PassRef instead of PassRefPtr.

Reviewed by Antti Koivisto.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158833 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Clean up BidiRun a little bit.
<https://webkit.org/b/123964>

Make BidiRun's member variables private and add accessors for them.
In doing so, codify the following:

    - BidiRun always has a corresponding RenderObject.
    - The inline box is never cleared after being set.

Reviewed by Antti Koivisto.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158834 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Optimize baselines: svg/as-background-image

Unreviewed; run "webkit-patch optimize-baselines svg/as-background-image"

* platform/efl/svg/as-background-image/svg-as-background-1-expected.txt: Removed.
* platform/efl/svg/as-background-image/svg-as-background-2-expected.txt: Removed.
* platform/efl/svg/as-background-image/svg-as-background-3-expected.txt: Removed.
* platform/efl/svg/as-background-image/svg-as-background-4-expected.txt: Removed.
* platform/efl/svg/as-background-image/svg-as-background-5-expected.txt: Removed.
* platform/efl/svg/as-background-image/svg-as-background-6-expected.txt: Removed.
* platform/gtk/svg/as-background-image/animated-svg-as-background-expected.txt: Removed.
* platform/gtk/svg/as-background-image/svg-as-background-1-expected.txt: Removed.
* platform/gtk/svg/as-background-image/svg-as-background-2-expected.txt: Removed.
* platform/gtk/svg/as-background-image/svg-as-background-3-expected.txt: Removed.
* platform/gtk/svg/as-background-image/svg-as-background-4-expected.txt: Removed.
* platform/gtk/svg/as-background-image/svg-as-background-5-expected.txt: Removed.
* platform/gtk/svg/as-background-image/svg-as-background-6-expected.txt: Removed.
* platform/gtk/svg/as-background-image/svg-as-background-expected.png: Removed.
* platform/gtk/svg/as-background-image/svg-as-background-expected.txt: Removed.
* platform/gtk/svg/as-background-image/svg-as-background-with-relative-size-expected.txt: Removed.
* platform/gtk/svg/as-background-image/svg-as-background-with-viewBox-expected.png: Removed.
* platform/gtk/svg/as-background-image/svg-as-background-with-viewBox-expected.txt: Removed.
* platform/gtk/svg/as-background-image/svg-as-tiled-background-expected.png: Removed.
* platform/gtk/svg/as-background-image/svg-as-tiled-background-expected.txt: Removed.
* platform/gtk/svg/as-background-image/svg-width-100p-as-background-expected.png: Removed.
* platform/gtk/svg/as-background-image/svg-width-100p-as-background-expected.txt: Removed.
* platform/win-future/svg/as-background-image/svg-as-background-1-expected.txt: Copied from LayoutTests/svg/as-background-image/svg-as-background-1-expected.txt.
* platform/win-future/svg/as-background-image/svg-as-background-2-expected.txt: Copied from LayoutTests/svg/as-background-image/svg-as-background-2-expected.txt.
* platform/win-future/svg/as-background-image/svg-as-background-3-expected.txt: Copied from LayoutTests/svg/as-background-image/svg-as-background-3-expected.txt.
* platform/win-future/svg/as-background-image/svg-as-background-4-expected.txt: Copied from LayoutTests/svg/as-background-image/svg-as-background-4-expected.txt.
* platform/win-future/svg/as-background-image/svg-as-background-5-expected.txt: Copied from LayoutTests/svg/as-background-image/svg-as-background-5-expected.txt.
* platform/win-future/svg/as-background-image/svg-as-background-6-expected.txt: Copied from LayoutTests/svg/as-background-image/svg-as-background-6-expected.txt.
* svg/as-background-image/animated-svg-as-background-expected.txt: Renamed from LayoutTests/platform/efl/svg/as-background-image/animated-svg-as-background-expected.txt.
* svg/as-background-image/svg-as-background-1-expected.txt:
* svg/as-background-image/svg-as-background-2-expected.txt:
* svg/as-background-image/svg-as-background-3-expected.txt:
* svg/as-background-image/svg-as-background-4-expected.txt:
* svg/as-background-image/svg-as-background-5-expected.txt:
* svg/as-background-image/svg-as-background-6-expected.txt:
* svg/as-background-image/svg-as-background-expected.png: Renamed from LayoutTests/platform/efl/svg/as-background-image/svg-as-background-expected.png.
* svg/as-background-image/svg-as-background-expected.txt: Renamed from LayoutTests/platform/efl/svg/as-background-image/svg-as-background-expected.txt.
* svg/as-background-image/svg-as-background-with-relative-size-expected.txt: Renamed from LayoutTests/platform/efl/svg/as-background-image/svg-as-background-with-relative-size-expected.txt.
* svg/as-background-image/svg-as-background-with-viewBox-expected.png: Renamed from LayoutTests/platform/efl/svg/as-background-image/svg-as-background-with-viewBox-expected.png.
* svg/as-background-image/svg-as-background-with-viewBox-expected.txt: Renamed from LayoutTests/platform/efl/svg/as-background-image/svg-as-background-with-viewBox-expected.txt.
* svg/as-background-image/svg-as-tiled-background-expected.png: Renamed from LayoutTests/platform/efl/svg/as-background-image/svg-as-tiled-background-expected.png.
* svg/as-background-image/svg-as-tiled-background-expected.txt: Renamed from LayoutTests/platform/efl/svg/as-background-image/svg-as-tiled-background-expected.txt.
* svg/as-background-image/svg-width-100p-as-background-expected.png: Renamed from LayoutTests/platform/efl/svg/as-background-image/svg-width-100p-as-background-expected.png.
* svg/as-background-image/svg-width-100p-as-background-expected.txt: Renamed from LayoutTests/platform/efl/svg/as-background-image/svg-width-100p-as-background-expected.txt.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158835 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Optimize baselines: svg/batik

Unreviewed; run "webkit-patch optimize-baselines svg/batik"

* platform/gtk/svg/batik/filters/feTile-expected.txt: Removed.
* platform/gtk/svg/batik/filters/filterRegions-expected.txt: Removed.
* platform/gtk/svg/batik/masking/maskRegions-expected.txt: Removed.
* platform/gtk/svg/batik/paints/gradientLimit-expected.txt: Removed.
* platform/gtk/svg/batik/paints/patternPreserveAspectRatioA-expected.txt: Removed.
* platform/gtk/svg/batik/paints/patternRegionA-expected.txt: Removed.
* platform/gtk/svg/batik/paints/patternRegions-expected.txt: Removed.
* platform/gtk/svg/batik/paints/patternRegions-positioned-objects-expected.txt: Removed.
* platform/gtk/svg/batik/text/longTextOnPath-expected.txt: Removed.
* platform/gtk/svg/batik/text/smallFonts-expected.txt: Removed.
* platform/gtk/svg/batik/text/textAnchor-expected.txt: Removed.
* platform/gtk/svg/batik/text/textAnchor2-expected.txt: Removed.
* platform/gtk/svg/batik/text/textAnchor3-expected.txt: Removed.
* platform/gtk/svg/batik/text/textDecoration-expected.txt: Removed.
* platform/gtk/svg/batik/text/textDecoration2-expected.txt: Removed.
* platform/gtk/svg/batik/text/textEffect-expected.txt: Removed.
* platform/gtk/svg/batik/text/textEffect2-expected.txt: Removed.
* platform/gtk/svg/batik/text/textEffect3-expected.txt: Removed.
* platform/gtk/svg/batik/text/textFeatures-expected.txt: Removed.
* platform/gtk/svg/batik/text/textGlyphOrientationHorizontal-expected.txt: Removed.
* platform/gtk/svg/batik/text/textLayout-expected.txt: Removed.
* platform/gtk/svg/batik/text/textLayout2-expected.txt: Removed.
* platform/gtk/svg/batik/text/textLength-expected.txt: Removed.
* platform/gtk/svg/batik/text/textOnPath-expected.txt: Removed.
* platform/gtk/svg/batik/text/textOnPath2-expected.txt: Removed.
* platform/gtk/svg/batik/text/textOnPath3-expected.txt: Removed.
* platform/gtk/svg/batik/text/textOnPathSpaces-expected.txt: Removed.
* platform/gtk/svg/batik/text/textPCDATA-expected.txt: Removed.
* platform/gtk/svg/batik/text/textPosition-expected.txt: Removed.
* platform/gtk/svg/batik/text/textProperties-expected.txt: Removed.
* platform/gtk/svg/batik/text/textProperties2-expected.txt: Removed.
* platform/gtk/svg/batik/text/textStyles-expected.txt: Removed.
* platform/gtk/svg/batik/text/verticalText-expected.txt: Removed.
* platform/gtk/svg/batik/text/verticalTextOnPath-expected.txt: Removed.
* platform/gtk/svg/batik/text/xmlSpace-expected.txt: Removed.
* svg/batik/filters/feTile-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/filters/feTile-expected.txt.
* svg/batik/filters/filterRegions-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/filters/filterRegions-expected.txt.
* svg/batik/masking/maskRegions-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/masking/maskRegions-expected.txt.
* svg/batik/paints/gradientLimit-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/paints/gradientLimit-expected.txt.
* svg/batik/paints/patternPreserveAspectRatioA-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/paints/patternPreserveAspectRatioA-expected.txt.
* svg/batik/paints/patternRegionA-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/paints/patternRegionA-expected.txt.
* svg/batik/paints/patternRegions-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/paints/patternRegions-expected.txt.
* svg/batik/paints/patternRegions-positioned-objects-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/paints/patternRegions-positioned-objects-expected.txt.
* svg/batik/text/longTextOnPath-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/text/longTextOnPath-expected.txt.
* svg/batik/text/smallFonts-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/text/smallFonts-expected.txt.
* svg/batik/text/textAnchor-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/text/textAnchor-expected.txt.
* svg/batik/text/textAnchor2-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/text/textAnchor2-expected.txt.
* svg/batik/text/textAnchor3-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/text/textAnchor3-expected.txt.
* svg/batik/text/textDecoration-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/text/textDecoration-expected.txt.
* svg/batik/text/textDecoration2-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/text/textDecoration2-expected.txt.
* svg/batik/text/textEffect-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/text/textEffect-expected.txt.
* svg/batik/text/textEffect2-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/text/textEffect2-expected.txt.
* svg/batik/text/textEffect3-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/text/textEffect3-expected.txt.
* svg/batik/text/textFeatures-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/text/textFeatures-expected.txt.
* svg/batik/text/textGlyphOrientationHorizontal-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/text/textGlyphOrientationHorizontal-expected.txt.
* svg/batik/text/textLayout-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/text/textLayout-expected.txt.
* svg/batik/text/textLayout2-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/text/textLayout2-expected.txt.
* svg/batik/text/textLength-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/text/textLength-expected.txt.
* svg/batik/text/textOnPath-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/text/textOnPath-expected.txt.
* svg/batik/text/textOnPath2-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/text/textOnPath2-expected.txt.
* svg/batik/text/textOnPath3-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/text/textOnPath3-expected.txt.
* svg/batik/text/textOnPathSpaces-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/text/textOnPathSpaces-expected.txt.
* svg/batik/text/textPCDATA-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/text/textPCDATA-expected.txt.
* svg/batik/text/textPosition-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/text/textPosition-expected.txt.
* svg/batik/text/textProperties-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/text/textProperties-expected.txt.
* svg/batik/text/textProperties2-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/text/textProperties2-expected.txt.
* svg/batik/text/textStyles-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/text/textStyles-expected.txt.
* svg/batik/text/verticalText-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/text/verticalText-expected.txt.
* svg/batik/text/verticalTextOnPath-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/text/verticalTextOnPath-expected.txt.
* svg/batik/text/xmlSpace-expected.txt: Renamed from LayoutTests/platform/efl/svg/batik/text/xmlSpace-expected.txt.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158836 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed gardening

Adjust test expectations after r158743.

* fullscreen/video-controls-override-expected.txt:
* http/tests/media/video-cookie-expected.txt:
* media/W3C/video/canPlayType/canPlayType_codecs_order_2-expected.txt:
* media/W3C/video/canPlayType/canPlayType_supported_but_no_codecs_parameter_2-expected.txt:
* media/W3C/video/canPlayType/canPlayType_two_implies_one_3-expected.txt:
* media/W3C/video/canPlayType/canPlayType_two_implies_one_4-expected.txt:
* media/context-menu-actions-expected.txt:
* media/media-can-play-flac-audio-expected.txt:
* media/media-volume-slider-rendered-below-expected.txt:
* media/media-volume-slider-rendered-normal-expected.txt:
* media/track/audio/audio-track-mkv-vorbis-addtrack-expected.txt:
* media/track/audio/audio-track-mkv-vorbis-enabled-expected.txt:
* media/track/track-cue-mutable-text-expected.txt:
* media/track/track-cue-rendering-mode-changed-expected.txt:
* media/track/track-language-preference-expected.txt:
* media/track/video/video-track-mkv-theora-addtrack-expected.txt:
* media/video-controls-fullscreen-volume-expected.txt:
* media/video-controls-toggling-expected.txt:
* media/video-controls-visible-exiting-fullscreen-expected.txt:
* media/video-seek-past-end-paused-expected.txt:
* platform/efl/media/W3C/video/canPlayType/canPlayType_codecs_order_1-expected.txt:
* platform/efl/media/W3C/video/canPlayType/canPlayType_codecs_order_3-expected.txt:
* platform/efl/media/W3C/video/canPlayType/canPlayType_supported_but_no_codecs_parameter_1-expected.txt:
* platform/efl/media/W3C/video/canPlayType/canPlayType_supported_but_no_codecs_parameter_3-expected.txt:
* platform/efl/media/W3C/video/canPlayType/canPlayType_two_implies_one_1-expected.txt:
* platform/efl/media/W3C/video/canPlayType/canPlayType_two_implies_one_2-expected.txt:
* platform/efl/media/W3C/video/canPlayType/canPlayType_two_implies_one_5-expected.txt:
* platform/efl/media/W3C/video/canPlayType/canPlayType_two_implies_one_6-expected.txt:
* platform/efl/media/media-can-play-webm-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158837 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CSS Grid Layout] Fix handling of 'inherit' and 'initial' for grid lines
https://bugs.webkit.org/show_bug.cgi?id=115401

Reviewed by Andreas Kling.

Source/WebCore:

From Blink r150585 by <jchaffraix@chromium.org>

Added support for 'inherit' and 'initial' special values to
grid-auto-{columns|rows} and grid-definition-{columns|rows}.

* css/StyleResolver.cpp:
(WebCore::StyleResolver::applyProperty): Resolve 'initial' and 'inherit'.
* rendering/style/RenderStyle.h: Added initialNamedGrid{Column|Row}Lines().
* rendering/style/StyleGridData.cpp:
(WebCore::StyleGridData::StyleGridData): Initialize m_namedGrid{Column|Row}Lines.

LayoutTests:

Added 'inherit' and 'initial' testing support to existing tests.

* fast/css-grid-layout/grid-auto-columns-rows-get-set-expected.txt:
* fast/css-grid-layout/grid-auto-columns-rows-get-set.html:
* fast/css-grid-layout/grid-auto-flow-get-set-expected.txt:
* fast/css-grid-layout/grid-auto-flow-get-set.html:
* fast/css-grid-layout/grid-columns-rows-get-set-expected.txt:
* fast/css-grid-layout/grid-columns-rows-get-set-multiple-expected.txt:
* fast/css-grid-layout/resources/grid-columns-rows-get-set-multiple.js:
(testInherit): New helper function.
(testInitial): Ditto.
* fast/css-grid-layout/resources/grid-columns-rows-get-set.js:
(testInherit): New helper function.
(testInitial): Ditto.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158838 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CSS Grid Layout] CSSParser should reject <track-list> without a <track-size>
https://bugs.webkit.org/show_bug.cgi?id=118025

Reviewed by Andreas Kling.

Source/WebCore:

From Blink r152914 by <jchaffraix@chromium.org>

Make sure that we parse at least 1 <track-size> inside each
<track-list>. The old parser code allowed track-lists exclusively
made of <track-name>. The way it was implemented eases the future
addition of parsing for the repeat() function.

* css/CSSParser.cpp:
(WebCore::CSSParser::parseGridTrackList):
* css/StyleResolver.cpp:
(WebCore::createGridTrackList): ASSERT if we don't find any
<track-size> now that we detect their absence in the parser.

LayoutTests:

Added a new test that verifies that <track-list> exclusively made
of <track-name> are not supported.

* fast/css-grid-layout/named-grid-line-get-set-expected.txt:
* fast/css-grid-layout/named-grid-line-get-set.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158839 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix crash in BitmapImage::destroyDecodedData()
https://bugs.webkit.org/show_bug.cgi?id=116494

Patch by Laszlo Vidacs <lac@inf.u-szeged.hu> on 2013-11-07
Reviewed by Csaba Osztrogonác.

Merge from https://chromium.googlesource.com/chromium/blink/+/6b6887bf53068f8537908e501fdc7317ad2c6d86

* platform/graphics/BitmapImage.cpp:
(WebCore::BitmapImage::destroyDecodedData):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158840 268f45cc-cd09-0410-ab3c-d52691b4dbfc
AX: [ATK] Video and audio elements are not properly exposed
https://bugs.webkit.org/show_bug.cgi?id=123894

Reviewed by Chris Fleizach.

Source/WebCore:

Expose <audio> and <video> elements with ATK_ROLE_EMBEDDED, so we
can identify them properly from ATK/AT-SPI based ATs.

Tests: platform/gtk/accessibility/media-controls-panel-title.html
       platform/efl/accessibility/media-emits-object-replacement.html
       platform/gtk/accessibility/media-emits-object-replacement.html

* accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
(atkRole): Add the new mapping.

Tools:

Update DRT and WKTR to handle the ATK_ROLE_EMBEDDED role.

* DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: Updated.
* WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp: Updated.

LayoutTests:

Updated tests and expectations according to the new behavior.

Updated failing test to reflect the new reality.
* platform/gtk/accessibility/media-element-expected.txt: Updated.

Extended GTK specific test by adding an <audio> element besides
the <video> one and printing all the information about those
related to their media nature.

* platform/gtk/accessibility/media-controls-panel-title.html: Extended.
* platform/gtk/accessibility/media-controls-panel-title-expected.txt: Updated.

Added new tests for GTK and EFL to check that the replaced
character is being properly emitter for both <video> and <audio>
elements. Inspired in the ones in platform/mac, we use a different
approach here to print the test since we don't have the
textMarkerRangeForElement functionality in our DRT/WKTR, and
because we expect embedded objects to show up in the results in a
GTK/EFL specific way (using the "<obj>" string).

* platform/efl/accessibility/media-emits-object-replacement-expected.txt: Added.
* platform/efl/accessibility/media-emits-object-replacement.html: Added.
* platform/gtk/accessibility/media-emits-object-replacement-expected.txt: Added.
* platform/gtk/accessibility/media-emits-object-replacement.html: Added.

Removed tests with failure expectations that are now passing.

* platform/gtk/TestExpectations: Removed passing tests.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158841 268f45cc-cd09-0410-ab3c-d52691b4dbfc