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

Unified Diff: third_party/WebKit/Source/web/WebFormControlElement.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
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyleConstants.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebFormControlElement.cpp
diff --git a/third_party/WebKit/Source/web/WebFormControlElement.cpp b/third_party/WebKit/Source/web/WebFormControlElement.cpp
index 15872db57fdef1c0df52a1cc6e3e2ccc7e98684c..9dd3ae31e9f34926ecac0a5db9515883d522f05a 100644
--- a/third_party/WebKit/Source/web/WebFormControlElement.cpp
+++ b/third_party/WebKit/Source/web/WebFormControlElement.cpp
@@ -179,9 +179,9 @@ int WebFormControlElement::selectionEnd() const {
WebString WebFormControlElement::alignmentForFormData() const {
if (const ComputedStyle* style =
constUnwrap<HTMLFormControlElement>()->computedStyle()) {
- if (style->textAlign() == RIGHT)
+ if (style->textAlign() == ETextAlign::Right)
return WebString::fromUTF8("right");
- if (style->textAlign() == LEFT)
+ if (style->textAlign() == ETextAlign::Left)
return WebString::fromUTF8("left");
}
return WebString();
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyleConstants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698