Index: Source/core/paint/InlineFlowBoxPainter.cpp |
diff --git a/Source/core/paint/InlineFlowBoxPainter.cpp b/Source/core/paint/InlineFlowBoxPainter.cpp |
index be99e182ee01028c29d712ddb92c6b8406df2c48..0d17084244d3b555486d2773e6ce6f1a37e170b5 100644 |
--- a/Source/core/paint/InlineFlowBoxPainter.cpp |
+++ b/Source/core/paint/InlineFlowBoxPainter.cpp |
@@ -291,7 +291,7 @@ void InlineFlowBoxPainter::paintMask(const PaintInfo& paintInfo, const LayoutPoi |
// Figure out if we need to push a transparency layer to render our mask. |
bool pushTransparencyLayer = false; |
bool compositedMask = m_inlineFlowBox.layoutObject().hasLayer() && m_inlineFlowBox.boxModelObject()->layer()->hasCompositedMask(); |
- bool flattenCompositingLayers = m_inlineFlowBox.layoutObject().view()->frameView() && m_inlineFlowBox.layoutObject().view()->frameView()->paintBehavior() & PaintBehaviorFlattenCompositingLayers; |
+ bool flattenCompositingLayers = gGlobalPaintFlags & GlobalPaintFlattenCompositingLayers; |
SkXfermode::Mode compositeOp = SkXfermode::kSrcOver_Mode; |
if (!compositedMask || flattenCompositingLayers) { |
if ((maskBoxImage && m_inlineFlowBox.layoutObject().style()->maskLayers().hasImage()) || m_inlineFlowBox.layoutObject().style()->maskLayers().next()) { |