[CSS Blending] Refactor -webkit-blend-mode to -webkit-mix-blend-mode
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Feb 2014 09:19:16 +0000 (09:19 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Feb 2014 09:19:16 +0000 (09:19 +0000)
commit427659736df61797a20fc988ef61ea8ca8d46ced
tree86ff3591baee33df7081402d152a339710d976e6
parentadad09c198645bf195d81616cae30f6d8d207a81
[CSS Blending] Refactor -webkit-blend-mode to -webkit-mix-blend-mode
https://bugs.webkit.org/show_bug.cgi?id=128805

Patch by Mihai Tica <mitica@adobe.com> on 2014-02-21
Reviewed by Dean Jackson.

Source/WebCore:

The spec defines the mix-blend-mode property. This means that the
prefixed version should be -webkit-mix-blend-mode, instead of
-webkit-blend-mode.

* css/CSSComputedStyleDeclaration.cpp:
(WebCore::ComputedStyleExtractor::propertyValue):
* css/CSSParser.cpp:
(WebCore::isValidKeywordPropertyAndValue):
(WebCore::isKeywordPropertyID):
(WebCore::CSSParser::parseValue):
* css/CSSPropertyNames.in:
* css/DeprecatedStyleBuilder.cpp:
(WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder):

LayoutTests:

The spec defines the mix-blend-mode property. This means that the
prefixed version should be -webkit-mix-blend-mode, instead of
-webkit-blend-mode. Update all tests accordingly.

* css3/compositing/blend-mode-blended-element-overlapping-composited-sibling-should-have-compositing-layer.html:
* css3/compositing/blend-mode-layers.html:
* css3/compositing/blend-mode-overflow.html:
* css3/compositing/blend-mode-parent-of-composited-blended-has-layer.html:
* css3/compositing/blend-mode-property-expected.txt:
* css3/compositing/blend-mode-property-parsing-expected.txt:
* css3/compositing/blend-mode-property-parsing-invalid-expected.txt:
* css3/compositing/blend-mode-reflection.html:
* css3/compositing/blend-mode-simple-composited.html:
* css3/compositing/blend-mode-simple.html:
* css3/compositing/blend-mode-with-composited-descendant-should-have-layer.html:
* css3/compositing/resources/red-circle.svg:
* css3/compositing/script-tests/blend-mode-property-parsing-invalid.js:
(testInvalidFilterRule):
* css3/compositing/script-tests/blend-mode-property-parsing.js:
(testBlendModeRule):
* css3/compositing/script-tests/blend-mode-property.js:
(testblendmode):
* css3/compositing/svg-blend-color-burn.html:
* css3/compositing/svg-blend-color-dodge.html:
* css3/compositing/svg-blend-color.html:
* css3/compositing/svg-blend-darken.html:
* css3/compositing/svg-blend-difference.html:
* css3/compositing/svg-blend-exclusion.html:
* css3/compositing/svg-blend-hard-light.html:
* css3/compositing/svg-blend-hue.html:
* css3/compositing/svg-blend-layer-blend.html:
* css3/compositing/svg-blend-layer-clip-path.html:
* css3/compositing/svg-blend-layer-filter.html:
* css3/compositing/svg-blend-layer-mask.html:
* css3/compositing/svg-blend-layer-opacity.html:
* css3/compositing/svg-blend-layer-shadow.html:
* css3/compositing/svg-blend-lighten.html:
* css3/compositing/svg-blend-luminosity.html:
* css3/compositing/svg-blend-multiply-alpha.html:
* css3/compositing/svg-blend-multiply.html:
* css3/compositing/svg-blend-normal.html:
* css3/compositing/svg-blend-overlay.html:
* css3/compositing/svg-blend-saturation.html:
* css3/compositing/svg-blend-screen.html:
* css3/compositing/svg-blend-soft-light.html:
* transitions/blendmode-transitions-expected.txt:
* transitions/blendmode-transitions.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@164480 268f45cc-cd09-0410-ab3c-d52691b4dbfc
46 files changed:
LayoutTests/ChangeLog
LayoutTests/css3/compositing/blend-mode-blended-element-overlapping-composited-sibling-should-have-compositing-layer.html
LayoutTests/css3/compositing/blend-mode-layers.html
LayoutTests/css3/compositing/blend-mode-overflow.html
LayoutTests/css3/compositing/blend-mode-parent-of-composited-blended-has-layer.html
LayoutTests/css3/compositing/blend-mode-property-expected.txt
LayoutTests/css3/compositing/blend-mode-property-parsing-expected.txt
LayoutTests/css3/compositing/blend-mode-property-parsing-invalid-expected.txt
LayoutTests/css3/compositing/blend-mode-reflection.html
LayoutTests/css3/compositing/blend-mode-simple-composited.html
LayoutTests/css3/compositing/blend-mode-simple.html
LayoutTests/css3/compositing/blend-mode-with-composited-descendant-should-have-layer.html
LayoutTests/css3/compositing/resources/red-circle.svg
LayoutTests/css3/compositing/script-tests/blend-mode-property-parsing-invalid.js
LayoutTests/css3/compositing/script-tests/blend-mode-property-parsing.js
LayoutTests/css3/compositing/script-tests/blend-mode-property.js
LayoutTests/css3/compositing/svg-blend-color-burn.html
LayoutTests/css3/compositing/svg-blend-color-dodge.html
LayoutTests/css3/compositing/svg-blend-color.html
LayoutTests/css3/compositing/svg-blend-darken.html
LayoutTests/css3/compositing/svg-blend-difference.html
LayoutTests/css3/compositing/svg-blend-exclusion.html
LayoutTests/css3/compositing/svg-blend-hard-light.html
LayoutTests/css3/compositing/svg-blend-hue.html
LayoutTests/css3/compositing/svg-blend-layer-blend.html
LayoutTests/css3/compositing/svg-blend-layer-clip-path.html
LayoutTests/css3/compositing/svg-blend-layer-filter.html
LayoutTests/css3/compositing/svg-blend-layer-mask.html
LayoutTests/css3/compositing/svg-blend-layer-opacity.html
LayoutTests/css3/compositing/svg-blend-layer-shadow.html
LayoutTests/css3/compositing/svg-blend-lighten.html
LayoutTests/css3/compositing/svg-blend-luminosity.html
LayoutTests/css3/compositing/svg-blend-multiply-alpha.html
LayoutTests/css3/compositing/svg-blend-multiply.html
LayoutTests/css3/compositing/svg-blend-normal.html
LayoutTests/css3/compositing/svg-blend-overlay.html
LayoutTests/css3/compositing/svg-blend-saturation.html
LayoutTests/css3/compositing/svg-blend-screen.html
LayoutTests/css3/compositing/svg-blend-soft-light.html
LayoutTests/transitions/blendmode-transitions-expected.txt
LayoutTests/transitions/blendmode-transitions.html
Source/WebCore/ChangeLog
Source/WebCore/css/CSSComputedStyleDeclaration.cpp
Source/WebCore/css/CSSParser.cpp
Source/WebCore/css/CSSPropertyNames.in
Source/WebCore/css/DeprecatedStyleBuilder.cpp