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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleAdjuster.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/css/resolver/StyleAdjuster.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp b/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
index afa1f2d411b8e988076e4f72f28dc65ed8b35ec3..c69c1d970a2f74a88a09900fcfb19205fcc5394f 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
@@ -200,9 +200,10 @@ static void adjustStyleForHTMLElement(ComputedStyle& style,
if (isHTMLTableElement(element)) {
// Tables never support the -webkit-* values for text-align and will reset
// back to the default.
- if (style.textAlign() == WEBKIT_LEFT ||
- style.textAlign() == WEBKIT_CENTER || style.textAlign() == WEBKIT_RIGHT)
- style.setTextAlign(TASTART);
+ if (style.textAlign() == ETextAlign::WebkitLeft ||
+ style.textAlign() == ETextAlign::WebkitCenter ||
+ style.textAlign() == ETextAlign::WebkitRight)
+ style.setTextAlign(ETextAlign::Start);
return;
}

Powered by Google App Engine
This is Rietveld 408576698