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

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

Issue 2507383002: Changed ETextAlign to an enum class and renamed its members to keywords (Closed)
Patch Set: Created 4 years, 1 month 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/LayoutText.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutText.cpp b/third_party/WebKit/Source/core/layout/LayoutText.cpp
index b6287cec0f2645ef282a095144cd84fe33799d9d..23ccbf0b5b6e46b4a8a9c87e885174e19b14f83d 100644
--- a/third_party/WebKit/Source/core/layout/LayoutText.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutText.cpp
@@ -763,20 +763,20 @@ LayoutRect LayoutText::localCaretRect(InlineBox* inlineBox,
bool rightAligned = false;
switch (cbStyle.textAlign()) {
- case RIGHT:
- case WEBKIT_RIGHT:
+ case ETextAlign::Right:
+ case ETextAlign::WebkitRight:
rightAligned = true;
break;
- case LEFT:
- case WEBKIT_LEFT:
- case CENTER:
- case WEBKIT_CENTER:
+ case ETextAlign::Left:
+ case ETextAlign::WebkitLeft:
+ case ETextAlign::Center:
+ case ETextAlign::WebkitCenter:
break;
- case JUSTIFY:
- case TASTART:
+ case ETextAlign::Justify:
+ case ETextAlign::Start:
rightAligned = !cbStyle.isLeftToRightDirection();
break;
- case TAEND:
+ case ETextAlign::End:
rightAligned = cbStyle.isLeftToRightDirection();
break;
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutRubyText.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