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 c305fff1748d7ef8de49dffd30f99deaea8b63fe..17c874334a0404336577dc019e8a73e47bf4db3b 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() != EVisibility::Visible && !isSVGUseElement(*childElement))) |
+ if (!style || style->display() == EDisplay::None || (style->visibility() != EVisibility::Visible && !isSVGUseElement(*childElement))) |
continue; |
// Current shape in clip-path gets clipped too. Fallback to masking. |
@@ -177,7 +177,7 @@ sk_sp<const SkPicture> LayoutSVGResourceClipper::createContentPicture() |
continue; |
const ComputedStyle* style = layoutObject->style(); |
- if (!style || style->display() == NONE || (style->visibility() != EVisibility::Visible && !isSVGUseElement(*childElement))) |
+ if (!style || style->display() == EDisplay::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() != EVisibility::Visible && !isSVGUseElement(*childElement))) |
+ if (!style || style->display() == EDisplay::None || (style->visibility() != EVisibility::Visible && !isSVGUseElement(*childElement))) |
continue; |
if (isSVGUseElement(*childElement) && !toSVGUseElement(*childElement).visibleTargetGraphicsElementForClipping()) |
continue; |