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

Unified Diff: third_party/WebKit/Source/core/html/HTMLElement.cpp

Issue 2555923002: Changed TextDirection to an enum class and renamed its members (Closed)
Patch Set: Rebase after reopen Created 4 years 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/html/HTMLElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLElement.cpp b/third_party/WebKit/Source/core/html/HTMLElement.cpp
index 30bc4d81d68450103a6e24390c9557188f344936..53b6e26fdfdf79629c81823be455ae161e0f6f0c 100644
--- a/third_party/WebKit/Source/core/html/HTMLElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLElement.cpp
@@ -787,7 +787,7 @@ TextDirection HTMLElement::directionalityIfhasDirAutoAttribute(
bool& isAuto) const {
isAuto = hasDirectionAuto();
if (!isAuto)
- return LTR;
+ return TextDirection::Ltr;
return directionality();
}
@@ -841,7 +841,7 @@ TextDirection HTMLElement::directionality(
}
if (strongDirectionalityTextNode)
*strongDirectionalityTextNode = 0;
- return LTR;
+ return TextDirection::Ltr;
}
bool HTMLElement::selfOrAncestorHasDirAutoAttribute() const {
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698