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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.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/LayoutBoxModelObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
index 0ec8c4584000d27cb667b14415a2d1128bae592a..f02e80efbea11de284882059ede7e8c64e968720 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
@@ -1122,23 +1122,23 @@ LayoutRect LayoutBoxModelObject::localCaretRectForEmptyElement(
CaretAlignment alignment = AlignLeft;
switch (currentStyle.textAlign()) {
- case LEFT:
- case WEBKIT_LEFT:
+ case ETextAlign::Left:
+ case ETextAlign::WebkitLeft:
break;
- case CENTER:
- case WEBKIT_CENTER:
+ case ETextAlign::Center:
+ case ETextAlign::WebkitCenter:
alignment = AlignCenter;
break;
- case RIGHT:
- case WEBKIT_RIGHT:
+ case ETextAlign::Right:
+ case ETextAlign::WebkitRight:
alignment = AlignRight;
break;
- case JUSTIFY:
- case TASTART:
+ case ETextAlign::Justify:
+ case ETextAlign::Start:
if (!currentStyle.isLeftToRightDirection())
alignment = AlignRight;
break;
- case TAEND:
+ case ETextAlign::End:
if (currentStyle.isLeftToRightDirection())
alignment = AlignRight;
break;
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutFieldset.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698