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

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

Issue 2899633002: Make EImageRendering an enum class. (Closed)
Patch Set: Rebase Created 3 years, 7 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/SVGLayoutTreeAsText.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp b/third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp
index 2c75b1cef7e232d54976e0c9489c2b207d7edd64..42f6b6d691d3be0f8ee2288c2fb1ee0976572bcd 100644
--- a/third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp
@@ -276,8 +276,9 @@ static void WriteStyle(TextStream& ts, const LayoutObject& object) {
if (!object.LocalSVGTransform().IsIdentity())
WriteNameValuePair(ts, "transform", object.LocalSVGTransform());
- WriteIfNotDefault(ts, "image rendering", style.ImageRendering(),
- ComputedStyle::InitialImageRendering());
+ WriteIfNotDefault(ts, "image rendering",
+ static_cast<int>(style.ImageRendering()),
+ static_cast<int>(ComputedStyle::InitialImageRendering()));
WriteIfNotDefault(ts, "opacity", style.Opacity(),
ComputedStyle::InitialOpacity());
if (object.IsSVGShape()) {

Powered by Google App Engine
This is Rietveld 408576698