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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutFieldset.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/LayoutFieldset.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutFieldset.cpp b/third_party/WebKit/Source/core/layout/LayoutFieldset.cpp
index c1a37a6d1242028c31ae0c498e691c89b4ced2f6..087b0fcec1517071ea7d12520f1919acb713bcef 100644
--- a/third_party/WebKit/Source/core/layout/LayoutFieldset.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutFieldset.cpp
@@ -69,10 +69,10 @@ LayoutObject* LayoutFieldset::layoutSpecialExcludedChild(bool relayoutChildren,
LayoutUnit logicalLeft;
if (style()->isLeftToRightDirection()) {
switch (legend->style()->textAlign()) {
- case ETextAlign::Center:
+ case ETextAlign::kCenter:
logicalLeft = (logicalWidth() - logicalWidthForChild(*legend)) / 2;
break;
- case ETextAlign::Right:
+ case ETextAlign::kRight:
logicalLeft = logicalWidth() - borderEnd() - paddingEnd() -
logicalWidthForChild(*legend);
break;
@@ -83,10 +83,10 @@ LayoutObject* LayoutFieldset::layoutSpecialExcludedChild(bool relayoutChildren,
}
} else {
switch (legend->style()->textAlign()) {
- case ETextAlign::Left:
+ case ETextAlign::kLeft:
logicalLeft = borderStart() + paddingStart();
break;
- case ETextAlign::Center: {
+ case ETextAlign::kCenter: {
// Make sure that the extra pixel goes to the end side in RTL (since
// it went to the end side in LTR).
LayoutUnit centeredWidth =

Powered by Google App Engine
This is Rietveld 408576698