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

Unified Diff: third_party/WebKit/Source/core/html/HTMLRubyElement.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/html/HTMLRubyElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLRubyElement.cpp b/third_party/WebKit/Source/core/html/HTMLRubyElement.cpp
index a5a97cfb557dd0a1d409bd8ac4e24c84443e2bd0..0cd5de4febe8c293a4806604698355e5bcb4fc5b 100644
--- a/third_party/WebKit/Source/core/html/HTMLRubyElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLRubyElement.cpp
@@ -20,9 +20,9 @@ DEFINE_NODE_FACTORY(HTMLRubyElement)
LayoutObject* HTMLRubyElement::createLayoutObject(const ComputedStyle& style)
{
- if (style.display() == INLINE)
+ if (style.display() == EDisplay::Inline)
return new LayoutRubyAsInline(this);
- if (style.display() == BLOCK)
+ if (style.display() == EDisplay::Block)
return new LayoutRubyAsBlock(this);
return LayoutObject::createObject(this, style);
}
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLRTElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLSelectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698