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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutFieldset.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/LayoutFieldset.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutFieldset.cpp b/third_party/WebKit/Source/core/layout/LayoutFieldset.cpp
index d1a5453f4e63ef71459bea458c1c287b7ca3e692..1527da1bdd632aaf0803296b2e45862baf241dfd 100644
--- a/third_party/WebKit/Source/core/layout/LayoutFieldset.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutFieldset.cpp
@@ -133,10 +133,10 @@ LayoutObject* LayoutFieldset::layoutSpecialExcludedChild(bool relayoutChildren,
LayoutUnit logicalLeft;
if (style()->isLeftToRightDirection()) {
switch (legend->style()->textAlign()) {
- case CENTER:
+ case ETextAlign::Center:
logicalLeft = (logicalWidth() - logicalWidthForChild(*legend)) / 2;
break;
- case RIGHT:
+ case ETextAlign::Right:
logicalLeft = logicalWidth() - borderEnd() - paddingEnd() -
logicalWidthForChild(*legend);
break;
@@ -147,10 +147,10 @@ LayoutObject* LayoutFieldset::layoutSpecialExcludedChild(bool relayoutChildren,
}
} else {
switch (legend->style()->textAlign()) {
- case LEFT:
+ case ETextAlign::Left:
logicalLeft = borderStart() + paddingStart();
break;
- case CENTER: {
+ case ETextAlign::Center: {
// 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