Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Source/WebCore: Remove ENABLE_CSS_COMPOSITING guards around -webkit-b…
…ackground-blend mode related code. The same flag guards -webkit-blend-mode code, but those guards are not touched by this change. https://bugs.webkit.org/show_bug.cgi?id=117619 Patch by Horia Iosif Olaru <olaru@adobe.com> on 2013-06-27 Reviewed by Dean Jackson. Test: css3/compositing/effect-background-blend-mode-tiled.html * WebCore.exp.in: * bindings/generic/RuntimeEnabledFeatures.h: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFillProperty): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/DeprecatedStyleBuilder.cpp: (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder): LayoutTests: Add an extra test to check if tiled background images get blended as expected. This test passed before this change. The tests for this change are the existing background-blend-mode tests. https://bugs.webkit.org/show_bug.cgi?id=117619 Patch by Horia Iosif Olaru <olaru@adobe.com> on 2013-06-27 Reviewed by Dean Jackson. * css3/compositing/effect-background-blend-mode-tiled-expected.txt: Added. * css3/compositing/effect-background-blend-mode-tiled.html: Added. * platform/mac/css3/compositing/effect-background-blend-mode-tiled-expected.png: Added. Canonical link: https://commits.webkit.org/136162@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@152083 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
4b77e2c
commit 8a3e06a58e5c6168d50ee4dd9474cfc8c947ada4
Showing
12 changed files
with
82 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,39 @@ | ||
<!DOCTYPE HTML> | ||
<script> | ||
if (window.testRunner) | ||
window.testRunner.dumpAsText(true); | ||
</script> | ||
<style> | ||
|
||
li | ||
{ | ||
margin: 5px; | ||
width: 130px; | ||
height: 130px; | ||
background: url("resources/ducky.png") 0 0 /50% 50%, linear-gradient(to right, #00ffff 0%, rgba(0,0,255,0) 24%, #ff0000 50%, #ffff00 75%, #00ff00 100%) 0 0 /100% 100%; | ||
display: block; | ||
float: left; | ||
} | ||
</style> | ||
<!-- this file should contain a duck on top of a gradient with every type of blending --> | ||
<body style="background-color: green"> | ||
<ul> | ||
<li style="-webkit-background-blend-mode: normal, normal"></li> | ||
<li style="-webkit-background-blend-mode: multiply, normal"></li> | ||
<li style="-webkit-background-blend-mode: screen, normal"></li> | ||
<li style="-webkit-background-blend-mode: overlay, normal; opacity:.9"></li> | ||
<li style="-webkit-background-blend-mode: darken, normal"></li> | ||
<li style="-webkit-background-blend-mode: lighten, normal"></li> | ||
<li style="-webkit-background-blend-mode: color-dodge, normal"></li> | ||
<li style="-webkit-background-blend-mode: color-burn, normal"></li> | ||
<li style="-webkit-background-blend-mode: hard-light, normal"></li> | ||
<li style="-webkit-background-blend-mode: soft-light, normal"></li> | ||
<li style="-webkit-background-blend-mode: difference, normal"></li> | ||
<li style="-webkit-background-blend-mode: exclusion, normal"></li> | ||
<li style="-webkit-background-blend-mode: hue, normal;"></li> | ||
<li style="-webkit-background-blend-mode: saturation, normal"></li> | ||
<li style="-webkit-background-blend-mode: color, normal"></li> | ||
<li style="-webkit-background-blend-mode: luminosity, normal"></li> | ||
</ul> | ||
</body> | ||
|
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters