Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp |
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp |
index 262ec0db5ce8f9d9ccc80b48004edd9c6222beb1..2678f0f6459c05bf75998e019a83cd8d43f3b8c7 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp |
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp |
@@ -86,7 +86,7 @@ bool LayoutSVGResourceClipper::calculateClipContentPathIfNeeded() |
continue; |
const ComputedStyle* style = childLayoutObject->style(); |
- if (!style || style->display() == NONE || (style->visibility() != VISIBLE && !isSVGUseElement(*childElement))) |
+ if (!style || style->display() == NONE || (style->visibility() != EVisibility::Visible && !isSVGUseElement(*childElement))) |
continue; |
// Current shape in clip-path gets clipped too. Fallback to masking. |
@@ -177,7 +177,7 @@ PassRefPtr<const SkPicture> LayoutSVGResourceClipper::createContentPicture() |
continue; |
const ComputedStyle* style = layoutObject->style(); |
- if (!style || style->display() == NONE || (style->visibility() != VISIBLE && !isSVGUseElement(*childElement))) |
+ if (!style || style->display() == NONE || (style->visibility() != EVisibility::Visible && !isSVGUseElement(*childElement))) |
continue; |
bool isUseElement = isSVGUseElement(*childElement); |
@@ -221,7 +221,7 @@ void LayoutSVGResourceClipper::calculateLocalClipBounds() |
if (!layoutObject->isSVGShape() && !layoutObject->isSVGText() && !isSVGUseElement(*childElement)) |
continue; |
const ComputedStyle* style = layoutObject->style(); |
- if (!style || style->display() == NONE || (style->visibility() != VISIBLE && !isSVGUseElement(*childElement))) |
+ if (!style || style->display() == NONE || (style->visibility() != EVisibility::Visible && !isSVGUseElement(*childElement))) |
continue; |
if (isSVGUseElement(*childElement) && !toSVGUseElement(*childElement).visibleTargetGraphicsElementForClipping()) |
continue; |