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

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

Issue 2614883007: Change computed style enums to be prefixed with 'k'. (Closed)
Patch Set: Rebase on ToT. 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/LayoutBoxModelObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
index f2bc1ae20e51797636e1b1740a594968213efb65..b5148baeafd17ffed0c234f4316ae4fa9f2b9101 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
@@ -1133,23 +1133,23 @@ LayoutRect LayoutBoxModelObject::localCaretRectForEmptyElement(
CaretAlignment alignment = AlignLeft;
switch (currentStyle.textAlign()) {
- case ETextAlign::Left:
- case ETextAlign::WebkitLeft:
+ case ETextAlign::kLeft:
+ case ETextAlign::kWebkitLeft:
break;
- case ETextAlign::Center:
- case ETextAlign::WebkitCenter:
+ case ETextAlign::kCenter:
+ case ETextAlign::kWebkitCenter:
alignment = AlignCenter;
break;
- case ETextAlign::Right:
- case ETextAlign::WebkitRight:
+ case ETextAlign::kRight:
+ case ETextAlign::kWebkitRight:
alignment = AlignRight;
break;
- case ETextAlign::Justify:
- case ETextAlign::Start:
+ case ETextAlign::kJustify:
+ case ETextAlign::kStart:
if (!currentStyle.isLeftToRightDirection())
alignment = AlignRight;
break;
- case ETextAlign::End:
+ case ETextAlign::kEnd:
if (currentStyle.isLeftToRightDirection())
alignment = AlignRight;
break;

Powered by Google App Engine
This is Rietveld 408576698