| Index: Source/core/platform/graphics/GraphicsLayer.cpp
|
| diff --git a/Source/core/platform/graphics/GraphicsLayer.cpp b/Source/core/platform/graphics/GraphicsLayer.cpp
|
| index 669fb7db22a5254307525909fb4dc3e8fc3fed5a..31ceb7a3f124bdbf731c4f9a633df44ff8c5c66a 100644
|
| --- a/Source/core/platform/graphics/GraphicsLayer.cpp
|
| +++ b/Source/core/platform/graphics/GraphicsLayer.cpp
|
| @@ -83,12 +83,14 @@ GraphicsLayer::GraphicsLayer(GraphicsLayerClient* client)
|
| , m_anchorPoint(0.5f, 0.5f, 0)
|
| , m_opacity(1)
|
| , m_zPosition(0)
|
| + , m_blendMode(BlendModeNormal)
|
| , m_contentsOpaque(false)
|
| , m_preserves3D(false)
|
| , m_backfaceVisibility(true)
|
| , m_masksToBounds(false)
|
| , m_drawsContent(false)
|
| , m_contentsVisible(true)
|
| + , m_isRootForIsolatedGroup(false)
|
| , m_hasScrollParent(false)
|
| , m_hasClipParent(false)
|
| , m_paintingPhase(GraphicsLayerPaintAllWithOverflowClip)
|
| @@ -593,6 +595,16 @@ void GraphicsLayer::dumpProperties(TextStream& ts, int indent, LayerTreeFlags fl
|
| ts << "(opacity " << m_opacity << ")\n";
|
| }
|
|
|
| + if (m_blendMode != BlendModeNormal) {
|
| + writeIndent(ts, indent + 1);
|
| + ts << "(blendMode " << compositeOperatorName(CompositeSourceOver, m_blendMode) << ")\n";
|
| + }
|
| +
|
| + if (m_isRootForIsolatedGroup) {
|
| + writeIndent(ts, indent + 1);
|
| + ts << "(isolate " << m_isRootForIsolatedGroup << ")\n";
|
| + }
|
| +
|
| if (m_contentsOpaque) {
|
| writeIndent(ts, indent + 1);
|
| ts << "(contentsOpaque " << m_contentsOpaque << ")\n";
|
| @@ -929,6 +941,22 @@ void GraphicsLayer::setOpacity(float opacity)
|
| platformLayer()->setOpacity(opacity);
|
| }
|
|
|
| +void GraphicsLayer::setBlendMode(BlendMode blendMode)
|
| +{
|
| + if (m_blendMode == blendMode)
|
| + return;
|
| + m_blendMode = blendMode;
|
| + platformLayer()->setBlendMode(WebKit::WebBlendMode(blendMode));
|
| +}
|
| +
|
| +void GraphicsLayer::setIsRootForIsolatedGroup(bool isolated)
|
| +{
|
| + if (m_isRootForIsolatedGroup == isolated)
|
| + return;
|
| + m_isRootForIsolatedGroup = isolated;
|
| + platformLayer()->setIsRootForIsolatedGroup(isolated);
|
| +}
|
| +
|
| void GraphicsLayer::setContentsNeedsDisplay()
|
| {
|
| if (WebLayer* contentsLayer = contentsLayerIfRegistered()) {
|
|
|