haikuwebkit/LayoutTests/css3/blending/blend-mode-simple.html

45 lines
1.9 KiB
HTML
Raw Permalink Normal View History

Add support for blendmode to Core Animation layer. Patch by Rik Cabanier, Dean Jackson and Mihai Tica. https://bugs.webkit.org/show_bug.cgi?id=99200 Patch by Mihai Tica <mitica@adobe.com> on 2014-01-10 Reviewed by Dirk Schulze. Source/WebCore: Tests: css3/compositing/blend-mode-layers.html css3/compositing/blend-mode-overflow.html css3/compositing/blend-mode-reflection.html css3/compositing/blend-mode-should-not-have-compositing-layer.html css3/compositing/blend-mode-simple.html * WebCore.exp.in: export PlatformCALayer::setBlendMode for WebKit::PlatformCALayerRemote * WebCore.xcodeproj/project.pbxproj: Add PlatformCAFiltersMac.h * platform/graphics/GraphicsLayer.cpp: add blendMode member (WebCore::GraphicsLayer::GraphicsLayer): * platform/graphics/GraphicsLayer.h: (WebCore::GraphicsLayer::blendMode): (WebCore::GraphicsLayer::setBlendMode): * platform/graphics/ca/GraphicsLayerCA.cpp: (WebCore::GraphicsLayerCA::setBlendMode): (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers): add call to updateBlendMode() (WebCore::GraphicsLayerCA::updateBlendMode): * platform/graphics/ca/GraphicsLayerCA.h: * platform/graphics/ca/PlatformCAFilters.h: * platform/graphics/ca/PlatformCALayer.h: * platform/graphics/ca/mac/PlatformCAFiltersMac.h: Added. * platform/graphics/ca/mac/PlatformCAFiltersMac.mm: (PlatformCAFilters::setBlendingFiltersOnLayer): set a compositing CAFilter on CALayer * platform/graphics/ca/mac/PlatformCALayerMac.mm: (PlatformCALayer::setBlendMode): call to PlatformCAFilters::setBlendingFiltersOnLayer * rendering/RenderLayerBacking.cpp: (WebCore::RenderLayerBacking::createPrimaryGraphicsLayer): (WebCore::RenderLayerBacking::updateBlendMode): (WebCore::RenderLayerBacking::updateGraphicsLayerGeometry): (WebCore::RenderLayerBacking::setBlendMode): * rendering/RenderLayerBacking.h: * rendering/RenderLayerCompositor.cpp: (WebCore::CompositingState::CompositingState): add m_subtreeHasBlending member (WebCore::RenderLayerCompositor::computeCompositingRequirements): promote layer if subtree has blending (WebCore::RenderLayerCompositor::reasonsForCompositing): (WebCore::RenderLayerCompositor::logReasonsForCompositing): log blending reason (WebCore::RenderLayerCompositor::requiresCompositingForIndirectReason): add blending reason * rendering/RenderLayerCompositor.h: LayoutTests: * css3/compositing/blend-mode-layers.html: Added. * css3/compositing/blend-mode-overflow-expected.txt: Added. * css3/compositing/blend-mode-overflow.html: Added. * css3/compositing/blend-mode-reflection.html: Added. * css3/compositing/blend-mode-should-not-have-compositing-layer-expected.txt: Added. * css3/compositing/blend-mode-should-not-have-compositing-layer.html: Added. * css3/compositing/blend-mode-simple.html: Added. * css3/compositing/should-have-compositing-layer-expected.txt: * platform/efl/TestExpectations: Efl doesn't support blend modes at the moment. * platform/mac/css3/compositing/blend-mode-layers-expected.png: Added. * platform/mac/css3/compositing/blend-mode-layers-expected.txt: Added. * platform/mac/css3/compositing/blend-mode-overflow-expected.png: Added. * platform/mac/css3/compositing/blend-mode-reflection-expected.png: Added. * platform/mac/css3/compositing/blend-mode-reflection-expected.txt: Added. * platform/mac/css3/compositing/blend-mode-simple-expected.png: Added. * platform/mac/css3/compositing/blend-mode-simple-expected.txt: Added. Canonical link: https://commits.webkit.org/144638@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@161628 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-01-10 11:30:12 +00:00
<!DOCTYPE HTML>
<head>
<script>
Use window.internals instead of overridePreference to set WebCore settings in tests https://bugs.webkit.org/show_bug.cgi?id=173714 Patch by Frederic Wang <fwang@igalia.com> on 2017-06-23 Reviewed by Simon Fraser. Source/WebKit2: This commit remove preference to settings mapping in overrideBoolPreferenceForTestRunner that are no longer necessary after the changes done in LayoutTests. * WebProcess/InjectedBundle/InjectedBundle.cpp: (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner): Remove mapping for preferences that no longer require testRunner.overridePreference calls in tests. LayoutTests: This commit is a first step to replace the use of testRunner.overridePreference with internals.settings.set* calls in tests. Such a call will fail immediately and obviously if its a function that does not exist, and these settings are restored properly between tests. Some preferences that do not have a WebCore setting or an internals.settings setter are not handled yet. The temporary failure added in r218480 for fast/frames/flattening/set-preference is removed and so is a custom expectation caret-mode-document-begin-end for Mac WK1. * accessibility/gtk/caret-browsing-select-focus.html: Use internals.settings.set* function. * accessibility/gtk/caret-browsing-text-focus.html: Ditto. * accessibility/gtk/caret-offsets-and-extraneous-white-spaces.html: Ditto. * accessibility/gtk/caret-offsets.html: Ditto. * accessibility/gtk/text-in-span-block-in-a-block.html: Ditto. * css3/blending/blend-mode-isolation-turn-off-self-painting-layer1.html: Ditto. * css3/blending/blend-mode-simple.html: Ditto. * css3/blending/effect-background-blend-mode.html: Ditto. * css3/filters/blur-filter-page-scroll-parents.html: Ditto. * css3/filters/blur-filter-page-scroll-self.html: Ditto. * css3/filters/blur-filter-page-scroll.html: Ditto. * css3/filters/effect-blur.html: Ditto. * css3/filters/effect-brightness-clamping.html: Ditto. * css3/filters/effect-brightness.html: Ditto. * css3/filters/effect-combined.html: Ditto. * css3/filters/effect-contrast.html: Ditto. * css3/filters/effect-drop-shadow.html: Ditto. * css3/filters/effect-grayscale.html: Ditto. * css3/filters/effect-hue-rotate.html: Ditto. * css3/filters/effect-invert.html: Ditto. * css3/filters/effect-opacity.html: Ditto. * css3/filters/effect-saturate.html: Ditto. * css3/filters/effect-sepia.html: Ditto. * css3/filters/filter-repaint.html: Ditto. * css3/filters/null-effect-check.html: Ditto. * editing/selection/caret-mode-document-begin-end.html: Ditto. * editing/selection/caret-mode-paragraph-keys-navigation.html: Ditto. * fast/animation/request-animation-frame-disabled.html: Ditto. * fast/canvas/canvas-blend-image.html: Ditto. * fast/canvas/canvas-blend-solid.html: Ditto. * fast/canvas/canvas-imageSmoothingQuality.html: Ditto. * fast/canvas/drawImage-with-small-values.html: Ditto. * fast/images/exif-orientation-composited.html: Ditto. * fast/images/exif-orientation-css.html: Ditto. * fast/images/exif-orientation.html: Ditto. * fast/images/image-controls-basic.html: Ditto. * fast/parser/pre-html5-parser-quirks.html: Ditto. * fast/repaint/no-caret-repaint-in-non-content-editable-element.html: Ditto. * http/tests/appcache/disabled.html: Ditto. * http/tests/contentextensions/block-cookies-in-ping.html: Ditto. * http/tests/contentextensions/block-ping.html: Ditto. * http/tests/contentextensions/hide-on-ping-with-ping-that-redirects.html: Ditto. * http/tests/contentextensions/hide-on-ping.html: Ditto. * http/tests/misc/favicon-loads-with-icon-loading-override.html: Ditto. * http/tests/navigation/ping-attribute/anchor-cookie.html: Ditto. * http/tests/navigation/ping-attribute/anchor-cross-origin-from-https.html: Ditto. * http/tests/navigation/ping-attribute/anchor-cross-origin.html: Ditto. * http/tests/navigation/ping-attribute/anchor-ping-and-follow-redirect-when-sending-ping.html: Ditto. * http/tests/navigation/ping-attribute/anchor-same-origin.html: Ditto. * http/tests/navigation/ping-attribute/area-cookie.html: Ditto. * http/tests/navigation/ping-attribute/area-cross-origin-from-https.html: Ditto. * http/tests/navigation/ping-attribute/area-cross-origin.html: Ditto. * http/tests/navigation/ping-attribute/area-same-origin.html: Ditto. * http/tests/security/mixedContent/insecure-script-in-data-iframe-in-main-frame-blocked.html: Ditto. * imported/blink/fast/css/image-orientation/image-orientation-dynamic-expected.html: Ditto. * loader/meta-refresh-disabled.html: Ditto. * media/crash-closing-page-with-media-as-plugin-fallback.html: Ditto. * platform/mac-wk1/editing/selection/caret-mode-document-begin-end-expected.txt: Removed. Mac WK1 now produces the same output as other platforms. * platform/mac/TestExpectations: Remove the failure for FrameFlattening now that the test uses internals.settings.set*. * platform/mac/fast/frames/flattening/set-preference.html: Use internals.settings.set*. * plugins/crash-restoring-plugin-page-from-page-cache.html: Ditto. * plugins/frameset-with-plugin-frame.html: Ditto. * plugins/netscape-plugin-page-cache-works.html: Ditto. Canonical link: https://commits.webkit.org/190637@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@218754 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-06-23 18:48:01 +00:00
if (window.internals)
window.internals.settings.setAcceleratedCompositingEnabled(true);
Add support for blendmode to Core Animation layer. Patch by Rik Cabanier, Dean Jackson and Mihai Tica. https://bugs.webkit.org/show_bug.cgi?id=99200 Patch by Mihai Tica <mitica@adobe.com> on 2014-01-10 Reviewed by Dirk Schulze. Source/WebCore: Tests: css3/compositing/blend-mode-layers.html css3/compositing/blend-mode-overflow.html css3/compositing/blend-mode-reflection.html css3/compositing/blend-mode-should-not-have-compositing-layer.html css3/compositing/blend-mode-simple.html * WebCore.exp.in: export PlatformCALayer::setBlendMode for WebKit::PlatformCALayerRemote * WebCore.xcodeproj/project.pbxproj: Add PlatformCAFiltersMac.h * platform/graphics/GraphicsLayer.cpp: add blendMode member (WebCore::GraphicsLayer::GraphicsLayer): * platform/graphics/GraphicsLayer.h: (WebCore::GraphicsLayer::blendMode): (WebCore::GraphicsLayer::setBlendMode): * platform/graphics/ca/GraphicsLayerCA.cpp: (WebCore::GraphicsLayerCA::setBlendMode): (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers): add call to updateBlendMode() (WebCore::GraphicsLayerCA::updateBlendMode): * platform/graphics/ca/GraphicsLayerCA.h: * platform/graphics/ca/PlatformCAFilters.h: * platform/graphics/ca/PlatformCALayer.h: * platform/graphics/ca/mac/PlatformCAFiltersMac.h: Added. * platform/graphics/ca/mac/PlatformCAFiltersMac.mm: (PlatformCAFilters::setBlendingFiltersOnLayer): set a compositing CAFilter on CALayer * platform/graphics/ca/mac/PlatformCALayerMac.mm: (PlatformCALayer::setBlendMode): call to PlatformCAFilters::setBlendingFiltersOnLayer * rendering/RenderLayerBacking.cpp: (WebCore::RenderLayerBacking::createPrimaryGraphicsLayer): (WebCore::RenderLayerBacking::updateBlendMode): (WebCore::RenderLayerBacking::updateGraphicsLayerGeometry): (WebCore::RenderLayerBacking::setBlendMode): * rendering/RenderLayerBacking.h: * rendering/RenderLayerCompositor.cpp: (WebCore::CompositingState::CompositingState): add m_subtreeHasBlending member (WebCore::RenderLayerCompositor::computeCompositingRequirements): promote layer if subtree has blending (WebCore::RenderLayerCompositor::reasonsForCompositing): (WebCore::RenderLayerCompositor::logReasonsForCompositing): log blending reason (WebCore::RenderLayerCompositor::requiresCompositingForIndirectReason): add blending reason * rendering/RenderLayerCompositor.h: LayoutTests: * css3/compositing/blend-mode-layers.html: Added. * css3/compositing/blend-mode-overflow-expected.txt: Added. * css3/compositing/blend-mode-overflow.html: Added. * css3/compositing/blend-mode-reflection.html: Added. * css3/compositing/blend-mode-should-not-have-compositing-layer-expected.txt: Added. * css3/compositing/blend-mode-should-not-have-compositing-layer.html: Added. * css3/compositing/blend-mode-simple.html: Added. * css3/compositing/should-have-compositing-layer-expected.txt: * platform/efl/TestExpectations: Efl doesn't support blend modes at the moment. * platform/mac/css3/compositing/blend-mode-layers-expected.png: Added. * platform/mac/css3/compositing/blend-mode-layers-expected.txt: Added. * platform/mac/css3/compositing/blend-mode-overflow-expected.png: Added. * platform/mac/css3/compositing/blend-mode-reflection-expected.png: Added. * platform/mac/css3/compositing/blend-mode-reflection-expected.txt: Added. * platform/mac/css3/compositing/blend-mode-simple-expected.png: Added. * platform/mac/css3/compositing/blend-mode-simple-expected.txt: Added. Canonical link: https://commits.webkit.org/144638@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@161628 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-01-10 11:30:12 +00:00
</script>
<style>
img {
width: 130px;
height: 130px;
}
li {
margin: 5px;
width: 130px;
height: 130px;
background: -webkit-gradient(linear, left top, right top, color-stop(0%,#0ff), color-stop(24%,#00f), color-stop(50%,#f00), color-stop(75%,#ff0), color-stop(100%,#0f0));
display: block;
float: left;
}
</style>
</head>
<!-- This file should contain a duck on top of a gradient with every type of blending. -->
<body>
<ul>
<!-- Separable blend modes -->
[CSS Blending] Remove the -webkit- prefix for mix-blend-mode and isolation CSS properties https://bugs.webkit.org/show_bug.cgi?id=131355 Reviewed by Dean Jackson. Source/WebCore: Removed webkit prefix from mix-blend-mode and isolation. These properties never shipped and their spec is now in CR. Covered by existing tests. * 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: Removed prefix from mix-blend-mode and isolation in layout tests. * css3/compositing/blend-mode-accelerated-with-multiple-stacking-contexts.html: * css3/compositing/blend-mode-ancestor-clipping-layer.html: * css3/compositing/blend-mode-background.html: * css3/compositing/blend-mode-blended-element-overlapping-composited-sibling-should-have-compositing-layer.html: * css3/compositing/blend-mode-isolated-group-1.html: * css3/compositing/blend-mode-isolated-group-2.html: * css3/compositing/blend-mode-isolated-group-3.html: * css3/compositing/blend-mode-layers.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-transform-style-expected.txt: * css3/compositing/blend-mode-transform-style.html: * css3/compositing/blend-mode-with-accelerated-sibling.html: * css3/compositing/blend-mode-with-composited-descendant-should-have-layer.html: * css3/compositing/isolation-isolate-blended-child-expected.html: * css3/compositing/isolation-isolate-blended-child.html: * css3/compositing/isolation-parsing.html: * 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-dodge.html: * css3/compositing/svg-blend-color.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-opacity.html: * css3/compositing/svg-blend-layer-shadow.html: * css3/compositing/svg-blend-luminosity.html: * css3/compositing/svg-blend-multiply-alpha.html: * css3/compositing/svg-blend-multiply.html: * css3/compositing/svg-blend-saturation.html: * css3/compositing/svg-blend-screen.html: * css3/compositing/svg-blend-soft-light.html: * css3/compositing/svg-isolation-default-expected.html: * css3/compositing/svg-isolation-default.html: * css3/compositing/svg-isolation-isolated-group-expected.html: * css3/compositing/svg-isolation-isolated-group.html: * fast/repaint/blend-mode-isolate-stacking-context.html: * inspector-protocol/layers/layers-blending-compositing-reasons.html: * transitions/blendmode-transitions-expected.txt: * transitions/blendmode-transitions.html: Canonical link: https://commits.webkit.org/149878@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@167448 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-04-17 20:24:43 +00:00
<li><img style="mix-blend-mode: normal" src="resources/ducky.png"></li>
<li><img style="mix-blend-mode: overlay" src="resources/ducky.png"></li>
<li><img style="mix-blend-mode: screen" src="resources/ducky.png"></li>
<li><img style="mix-blend-mode: overlay" src="resources/ducky.png"></li>
<li><img style="mix-blend-mode: darken" src="resources/ducky.png"></li>
<li><img style="mix-blend-mode: lighten" src="resources/ducky.png"></li>
<li><img style="mix-blend-mode: color-dodge" src="resources/ducky.png"></li>
<li><img style="mix-blend-mode: color-burn" src="resources/ducky.png"></li>
<li><img style="mix-blend-mode: hard-light" src="resources/ducky.png"></li>
<li><img style="mix-blend-mode: soft-light" src="resources/ducky.png"></li>
<li><img style="mix-blend-mode: difference" src="resources/ducky.png"></li>
<li><img style="mix-blend-mode: exclusion" src="resources/ducky.png"></li>
Support "plus-darker" in mix-blend mode https://bugs.webkit.org/show_bug.cgi?id=140646 <rdar://problem/19523370> Reviewed by Simon Fraser. Source/WebCore: Support the "plus-darker" blending mode to CSS. See: https://lists.w3.org/Archives/Public/public-fx/2015JanMar/0021.html Test: css3/blending/svg-blend-plus-darker.html * css/CSSParser.cpp: (WebCore::isValidKeywordPropertyAndValue): mix-blend-mode can now accept the new keyword. * css/CSSPrimitiveValueMappings.h: Add the mappings. (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): (WebCore::CSSPrimitiveValue::operator BlendMode): * platform/graphics/GraphicsTypes.cpp: Add the new GraphicsType. * platform/graphics/GraphicsTypes.h: * platform/graphics/ca/mac/PlatformCAFiltersMac.mm: Map to the CA compositing filter. (PlatformCAFilters::setBlendingFiltersOnLayer): * platform/graphics/cg/GraphicsContextCG.cpp: (WebCore::GraphicsContext::setPlatformCompositeOperation): Map to the CG blending flag. Source/WebKit2: Output the appropriate blending type when logging. * Shared/mac/RemoteLayerTreeTransaction.mm: (WebKit::RemoteLayerTreeTextStream::operator<<): LayoutTests: Add tests and new expected results for plus-darker. * css3/blending/blend-mode-property-parsing-expected.txt: * css3/blending/blend-mode-simple-composited.html: * css3/blending/blend-mode-simple.html: * css3/blending/script-tests/blend-mode-property-parsing.js: * css3/blending/svg-blend-plus-darker.html: Added. * platform/mac/css3/blending/blend-mode-simple-composited-expected.png: * platform/mac/css3/blending/blend-mode-simple-composited-expected.txt: * platform/mac/css3/blending/blend-mode-simple-expected.png: * platform/mac/css3/blending/blend-mode-simple-expected.txt: * platform/mac/css3/blending/svg-blend-plus-darker-expected.txt: Added. Canonical link: https://commits.webkit.org/158639@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@178710 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-01-20 16:03:53 +00:00
<li><img style="mix-blend-mode: plus-darker" src="resources/ducky.png"></li>
Support "plus-lighter" in mix-blend mode https://bugs.webkit.org/show_bug.cgi?id=142416 <rdar://problem/19993979> Reviewed by Darin Adler and Sam Weinig. Source/WebCore: Support the "plus-lighter" blending mode to CSS. See my reply to: https://lists.w3.org/Archives/Public/public-fx/2015JanMar/0021.html Test: css3/blending/svg-blend-plus-lighter.html * css/CSSParser.cpp: (WebCore::isValidKeywordPropertyAndValue): mix-blend-mode can now accept the new keyword. * css/CSSPrimitiveValueMappings.h: Add the mappings to/from the GraphicsType. (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): (WebCore::CSSPrimitiveValue::operator BlendMode): * css/CSSValueKeywords.in: Add comment to show plus-darker and plus-lighter are available. * platform/graphics/GraphicsTypes.cpp: New GraphicsType for PlusLighter. * platform/graphics/GraphicsTypes.h: * platform/graphics/ca/mac/PlatformCAFiltersMac.mm: Map to the CA filter. (PlatformCAFilters::setBlendingFiltersOnLayer): * platform/graphics/cg/GraphicsContextCG.cpp: (WebCore::GraphicsContext::setPlatformCompositeOperation): Map to the CG blending flag. Source/WebKit2: Output the appropriate blending type when logging. * Shared/mac/RemoteLayerTreeTransaction.mm: (WebKit::RemoteLayerTreeTextStream::operator<<): LayoutTests: Add tests and new expected results for plus-lighter. * css3/blending/blend-mode-property-parsing-expected.txt: * css3/blending/blend-mode-simple-composited.html: * css3/blending/blend-mode-simple.html: * css3/blending/script-tests/blend-mode-property-parsing.js: * css3/blending/svg-blend-plus-lighter.html: Added. * platform/mac/css3/blending/blend-mode-simple-composited-expected.png: * platform/mac/css3/blending/blend-mode-simple-composited-expected.txt: * platform/mac/css3/blending/blend-mode-simple-expected.png: * platform/mac/css3/blending/blend-mode-simple-expected.txt: * platform/mac/css3/blending/svg-blend-plus-lighter-expected.txt: Added. Canonical link: https://commits.webkit.org/160471@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@181191 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-03-07 00:08:32 +00:00
<li><img style="mix-blend-mode: plus-lighter" src="resources/ducky.png"></li>
Add support for blendmode to Core Animation layer. Patch by Rik Cabanier, Dean Jackson and Mihai Tica. https://bugs.webkit.org/show_bug.cgi?id=99200 Patch by Mihai Tica <mitica@adobe.com> on 2014-01-10 Reviewed by Dirk Schulze. Source/WebCore: Tests: css3/compositing/blend-mode-layers.html css3/compositing/blend-mode-overflow.html css3/compositing/blend-mode-reflection.html css3/compositing/blend-mode-should-not-have-compositing-layer.html css3/compositing/blend-mode-simple.html * WebCore.exp.in: export PlatformCALayer::setBlendMode for WebKit::PlatformCALayerRemote * WebCore.xcodeproj/project.pbxproj: Add PlatformCAFiltersMac.h * platform/graphics/GraphicsLayer.cpp: add blendMode member (WebCore::GraphicsLayer::GraphicsLayer): * platform/graphics/GraphicsLayer.h: (WebCore::GraphicsLayer::blendMode): (WebCore::GraphicsLayer::setBlendMode): * platform/graphics/ca/GraphicsLayerCA.cpp: (WebCore::GraphicsLayerCA::setBlendMode): (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers): add call to updateBlendMode() (WebCore::GraphicsLayerCA::updateBlendMode): * platform/graphics/ca/GraphicsLayerCA.h: * platform/graphics/ca/PlatformCAFilters.h: * platform/graphics/ca/PlatformCALayer.h: * platform/graphics/ca/mac/PlatformCAFiltersMac.h: Added. * platform/graphics/ca/mac/PlatformCAFiltersMac.mm: (PlatformCAFilters::setBlendingFiltersOnLayer): set a compositing CAFilter on CALayer * platform/graphics/ca/mac/PlatformCALayerMac.mm: (PlatformCALayer::setBlendMode): call to PlatformCAFilters::setBlendingFiltersOnLayer * rendering/RenderLayerBacking.cpp: (WebCore::RenderLayerBacking::createPrimaryGraphicsLayer): (WebCore::RenderLayerBacking::updateBlendMode): (WebCore::RenderLayerBacking::updateGraphicsLayerGeometry): (WebCore::RenderLayerBacking::setBlendMode): * rendering/RenderLayerBacking.h: * rendering/RenderLayerCompositor.cpp: (WebCore::CompositingState::CompositingState): add m_subtreeHasBlending member (WebCore::RenderLayerCompositor::computeCompositingRequirements): promote layer if subtree has blending (WebCore::RenderLayerCompositor::reasonsForCompositing): (WebCore::RenderLayerCompositor::logReasonsForCompositing): log blending reason (WebCore::RenderLayerCompositor::requiresCompositingForIndirectReason): add blending reason * rendering/RenderLayerCompositor.h: LayoutTests: * css3/compositing/blend-mode-layers.html: Added. * css3/compositing/blend-mode-overflow-expected.txt: Added. * css3/compositing/blend-mode-overflow.html: Added. * css3/compositing/blend-mode-reflection.html: Added. * css3/compositing/blend-mode-should-not-have-compositing-layer-expected.txt: Added. * css3/compositing/blend-mode-should-not-have-compositing-layer.html: Added. * css3/compositing/blend-mode-simple.html: Added. * css3/compositing/should-have-compositing-layer-expected.txt: * platform/efl/TestExpectations: Efl doesn't support blend modes at the moment. * platform/mac/css3/compositing/blend-mode-layers-expected.png: Added. * platform/mac/css3/compositing/blend-mode-layers-expected.txt: Added. * platform/mac/css3/compositing/blend-mode-overflow-expected.png: Added. * platform/mac/css3/compositing/blend-mode-reflection-expected.png: Added. * platform/mac/css3/compositing/blend-mode-reflection-expected.txt: Added. * platform/mac/css3/compositing/blend-mode-simple-expected.png: Added. * platform/mac/css3/compositing/blend-mode-simple-expected.txt: Added. Canonical link: https://commits.webkit.org/144638@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@161628 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-01-10 11:30:12 +00:00
</ul>
</body>