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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutRubyRun.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/LayoutRubyRun.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutRubyRun.cpp b/third_party/WebKit/Source/core/layout/LayoutRubyRun.cpp
index d5157f225a4fac2ad7115747feb64fe0f1d214f0..e905336f471d94d7482a127810d3100d8f1d9625 100644
--- a/third_party/WebKit/Source/core/layout/LayoutRubyRun.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutRubyRun.cpp
@@ -188,7 +188,7 @@ void LayoutRubyRun::removeChild(LayoutObject* child)
LayoutRubyBase* LayoutRubyRun::createRubyBase() const
{
LayoutRubyBase* layoutObject = LayoutRubyBase::createAnonymous(&document());
- RefPtr<ComputedStyle> newStyle = ComputedStyle::createAnonymousStyleWithDisplay(styleRef(), BLOCK);
+ RefPtr<ComputedStyle> newStyle = ComputedStyle::createAnonymousStyleWithDisplay(styleRef(), EDisplay::Block);
newStyle->setTextAlign(CENTER); // FIXME: use WEBKIT_CENTER?
layoutObject->setStyle(newStyle.release());
return layoutObject;
@@ -199,7 +199,7 @@ LayoutRubyRun* LayoutRubyRun::staticCreateRubyRun(const LayoutObject* parentRuby
ASSERT(parentRuby && parentRuby->isRuby());
LayoutRubyRun* rr = new LayoutRubyRun();
rr->setDocumentForAnonymous(&parentRuby->document());
- RefPtr<ComputedStyle> newStyle = ComputedStyle::createAnonymousStyleWithDisplay(parentRuby->styleRef(), INLINE_BLOCK);
+ RefPtr<ComputedStyle> newStyle = ComputedStyle::createAnonymousStyleWithDisplay(parentRuby->styleRef(), EDisplay::InlineBlock);
rr->setStyle(newStyle.release());
return rr;
}

Powered by Google App Engine
This is Rietveld 408576698