Index: Source/core/rendering/svg/RenderSVGResourceSolidColor.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGResourceSolidColor.cpp b/Source/core/rendering/svg/RenderSVGResourceSolidColor.cpp |
index 53e0bac1b0bb81951d96220001f37f44e95d29cb..b25cb5f055d44e7c78a447a28e3be1fde0ae05e4 100644 |
--- a/Source/core/rendering/svg/RenderSVGResourceSolidColor.cpp |
+++ b/Source/core/rendering/svg/RenderSVGResourceSolidColor.cpp |
@@ -21,8 +21,6 @@ |
#include "core/rendering/svg/RenderSVGResourceSolidColor.h" |
-#include "core/frame/FrameView.h" |
-#include "core/frame/LocalFrame.h" |
#include "core/rendering/style/RenderStyle.h" |
#include "core/rendering/svg/RenderSVGShape.h" |
#include "core/rendering/svg/SVGRenderSupport.h" |
@@ -47,10 +45,7 @@ bool RenderSVGResourceSolidColor::applyResource(RenderObject* object, RenderStyl |
ASSERT(context); |
ASSERT(resourceMode != ApplyToDefaultMode); |
- bool isRenderingMask = false; |
- if (object->frame() && object->frame()->view()) |
- isRenderingMask = object->frame()->view()->paintBehavior() & PaintBehaviorRenderingSVGMask; |
- |
+ bool isRenderingMask = SVGRenderSupport::isRenderingMaskImage(*object); |
const SVGRenderStyle& svgStyle = style->svgStyle(); |
if (resourceMode & ApplyToFillMode) { |