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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp

Issue 2625553005: Changed EUnicodeBidi to an enum class and renamed its members (Closed)
Patch Set: Created 3 years, 11 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/LayoutBlockFlowLine.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp b/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
index 4c530509670fae7e6d8e3ab32c9a658bf404551e..7774f897f0ab2aa6efb7cca5991420b969b9b7d6 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
@@ -660,7 +660,8 @@ void LayoutBlockFlow::updateLogicalWidthForAlignment(
unsigned expansionOpportunityCount) {
TextDirection direction;
if (rootInlineBox &&
- rootInlineBox->getLineLayoutItem().style()->unicodeBidi() == Plaintext)
+ rootInlineBox->getLineLayoutItem().style()->unicodeBidi() ==
+ EUnicodeBidi::kPlaintext)
direction = rootInlineBox->direction();
else
direction = style()->direction();
@@ -1144,7 +1145,8 @@ void LayoutBlockFlow::layoutRunsAndFloatsInRange(
? VisualLeftToRightOverride
: VisualRightToLeftOverride)
: NoVisualOverride);
- if (isNewUBAParagraph && styleToUse.unicodeBidi() == Plaintext &&
+ if (isNewUBAParagraph &&
+ styleToUse.unicodeBidi() == EUnicodeBidi::kPlaintext &&
!resolver.context()->parent()) {
TextDirection direction = determinePlaintextDirectionality(
resolver.position().root(), resolver.position().getLineLayoutItem(),
@@ -2111,7 +2113,7 @@ RootInlineBox* LayoutBlockFlow::determineStartPosition(
resolver.setStatus(last->lineBreakBidiStatus());
} else {
TextDirection direction = style()->direction();
- if (style()->unicodeBidi() == Plaintext)
+ if (style()->unicodeBidi() == EUnicodeBidi::kPlaintext)
direction = determinePlaintextDirectionality(LineLayoutItem(this));
resolver.setStatus(
BidiStatus(direction, isOverride(style()->unicodeBidi())));
« no previous file with comments | « third_party/WebKit/Source/core/layout/BidiRunForLine.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698