Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp

Issue 2370673002: Changed EDisplay to an enum class and renamed its members to be keywords (Closed)
Patch Set: Comment Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698