| Index: Source/core/paint/SVGPaintContext.cpp
|
| diff --git a/Source/core/paint/SVGPaintContext.cpp b/Source/core/paint/SVGPaintContext.cpp
|
| index 2302ed4a0cd29f874d8c9b740cfc2e46032a9a96..248703e4963d26bea67a092b948097207df6d426 100644
|
| --- a/Source/core/paint/SVGPaintContext.cpp
|
| +++ b/Source/core/paint/SVGPaintContext.cpp
|
| @@ -110,13 +110,12 @@ void SVGPaintContext::applyCompositingIfNecessary()
|
| if (m_object->isSVGRoot())
|
| return;
|
|
|
| - LayoutStyle* style = m_object->style();
|
| - ASSERT(style);
|
| - float opacity = style->opacity();
|
| - bool hasBlendMode = style->hasBlendMode() && m_object->isBlendingAllowed();
|
| + const LayoutStyle& style = m_object->styleRef();
|
| + float opacity = style.opacity();
|
| + bool hasBlendMode = style.hasBlendMode() && m_object->isBlendingAllowed();
|
| if (opacity < 1 || hasBlendMode) {
|
| m_clipRecorder = adoptPtr(new FloatClipRecorder(*m_paintInfo.context, m_object->displayItemClient(), m_paintInfo.phase, m_object->paintInvalidationRectInLocalCoordinates()));
|
| - WebBlendMode blendMode = hasBlendMode ? style->blendMode() : WebBlendModeNormal;
|
| + WebBlendMode blendMode = hasBlendMode ? style.blendMode() : WebBlendModeNormal;
|
| CompositeOperator compositeOp = hasBlendMode ? CompositeSourceOver : m_paintInfo.context->compositeOperationDeprecated();
|
| m_compositingRecorder = adoptPtr(new CompositingRecorder(m_paintInfo.context, m_object->displayItemClient(), compositeOp, blendMode, opacity, compositeOp));
|
| }
|
|
|