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

Unified Diff: third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp

Issue 2897883002: Make RubyPosition 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/line/InlineFlowBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp b/third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp
index 9a67e8adef0d8a109f9d150eea10464255e82b60..22a9d43673984f700edce2e21c5539880c530b1b 100644
--- a/third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp
+++ b/third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp
@@ -794,7 +794,7 @@ void InlineFlowBox::PlaceBoxesInBlockDirection(
// been done as line layout and not done using inline-block.
if (GetLineLayoutItem().Style()->IsFlippedLinesWritingMode() ==
(curr->GetLineLayoutItem().Style()->GetRubyPosition() ==
- kRubyPositionAfter))
+ RubyPosition::kAfter))
has_annotations_before = true;
else
has_annotations_after = true;
@@ -1513,7 +1513,7 @@ LayoutUnit InlineFlowBox::ComputeOverAnnotationAdjustment(
if (curr->GetLineLayoutItem().IsAtomicInlineLevel() &&
curr->GetLineLayoutItem().IsRubyRun() &&
curr->GetLineLayoutItem().Style()->GetRubyPosition() ==
- kRubyPositionBefore) {
+ RubyPosition::kBefore) {
LineLayoutRubyRun ruby_run = LineLayoutRubyRun(curr->GetLineLayoutItem());
LineLayoutRubyText ruby_text = ruby_run.RubyText();
if (!ruby_text)
@@ -1584,7 +1584,7 @@ LayoutUnit InlineFlowBox::ComputeUnderAnnotationAdjustment(
if (curr->GetLineLayoutItem().IsAtomicInlineLevel() &&
curr->GetLineLayoutItem().IsRubyRun() &&
curr->GetLineLayoutItem().Style()->GetRubyPosition() ==
- kRubyPositionAfter) {
+ RubyPosition::kAfter) {
LineLayoutRubyRun ruby_run = LineLayoutRubyRun(curr->GetLineLayoutItem());
LineLayoutRubyText ruby_text = ruby_run.RubyText();
if (!ruby_text)
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutRubyRun.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698