Skip to content
  • commit-queue@webkit.org's avatar
    Source/WebCore: parse CSS attribute -webkit-blend-mode · 2419641f
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=94024
    
    Patch by Rik Cabanier <cabanier@adobe.com> on 2012-08-19
    Reviewed by Dirk Schulze.
    
    Added parsing and general CSS handling of -webkit-blend-mode per http://www.w3.org/TR/2012/WD-compositing-20120816/
    
    Tests: css3/compositing/blend-mode-property-parsing-invalid.html
           css3/compositing/blend-mode-property-parsing.html
           css3/compositing/blend-mode-property.html
    
    * css/CSSComputedStyleDeclaration.cpp:
    (WebCore):
    (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
    * css/CSSParser.cpp:
    (WebCore::isValidKeywordPropertyAndValue):
    (WebCore::isKeywordPropertyID):
    (WebCore::CSSParser::parseValue):
    * css/CSSProperty.cpp:
    (WebCore::CSSProperty::isInheritedProperty):
    * css/CSSPropertyNames.in:
    * css/CSSValueKeywords.in:
    * css/StyleBuilder.cpp:
    (WebCore::StyleBuilder::StyleBuilder):
    * rendering/RenderLayer.h:
    (RenderLayer):
    * rendering/RenderLayerBacking.cpp:
    (WebCore::RenderLayerBacking::createPrimaryGraphicsLayer):
    (WebCore):
    (WebCore::RenderLayerBacking::updateLayerBlendMode):
    (WebCore::RenderLayerBacking::updateGraphicsLayerGeometry):
    (WebCore::RenderLayerBacking::setBlendMode):
    * rendering/RenderLayerBacking.h:
    (RenderLayerBacking):
    * rendering/style/RenderStyle.cpp:
    (WebCore::RenderStyle::diff):
    * rendering/style/RenderStyle.h:
    * rendering/style/StyleRareNonInheritedData.cpp:
    (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
    (WebCore::StyleRareNonInheritedData::operator==):
    * rendering/style/StyleRareNonInheritedData.h:
    (StyleRareNonInheritedData):
    
    LayoutTests: parse CSS attribute -webkit-blend-mode
    https://bugs.webkit.org/show_bug.cgi?id=94024
    
    Patch by Rik Cabanier <cabanier@adobe.com> on 2012-08-19
    Reviewed by Dirk Schulze.
    
    Added parsing and general CSS handling of -webkit-blend-mode per http://www.w3.org/TR/2012/WD-compositing-20120816/
    
    * css3/compositing: Added.
    * css3/compositing/blend-mode-property-expected.txt: Added.
    * css3/compositing/blend-mode-property-parsing-expected.txt: Added.
    * css3/compositing/blend-mode-property-parsing-invalid-expected.txt: Added.
    * css3/compositing/blend-mode-property-parsing-invalid.html: Added.
    * css3/compositing/blend-mode-property-parsing.html: Added.
    * css3/compositing/blend-mode-property.html: Added.
    * css3/compositing/script-tests: Added.
    * css3/compositing/script-tests/blend-mode-property-parsing-invalid.js: Added.
    (testInvalidFilterRule):
    * css3/compositing/script-tests/blend-mode-property-parsing.js: Added.
    (jsWrapperClass):
    (shouldBeType):
    (testFilterRule):
    * css3/compositing/script-tests/blend-mode-property.js: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125989 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    2419641f