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

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: Small rebase fixes 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 0bf6ef826db5e5c44e923ec5000290a82c0bb844..fdb4b533b042dcd8a820a4818c9219360df457b9 100644
--- a/third_party/WebKit/Source/core/html/HTMLElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLElement.cpp
@@ -788,7 +788,7 @@ TextDirection HTMLElement::directionalityIfhasDirAutoAttribute(
bool& isAuto) const {
isAuto = hasDirectionAuto();
if (!isAuto)
- return LTR;
+ return TextDirection::Ltr;
return directionality();
}
@@ -842,7 +842,7 @@ TextDirection HTMLElement::directionality(
}
if (strongDirectionalityTextNode)
*strongDirectionalityTextNode = 0;
- return LTR;
+ return TextDirection::Ltr;
}
bool HTMLElement::selfOrAncestorHasDirAutoAttribute() const {

Powered by Google App Engine
This is Rietveld 408576698