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

Unified Diff: third_party/WebKit/Source/core/layout/line/InlineBox.h

Issue 2614883007: Change computed style enums to be prefixed with 'k'. (Closed)
Patch Set: Rebase on ToT. Created 3 years, 11 months 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/line/InlineBox.h
diff --git a/third_party/WebKit/Source/core/layout/line/InlineBox.h b/third_party/WebKit/Source/core/layout/line/InlineBox.h
index a55b0615e520139115059dfd407a6d23a4b9f7ce..244049ea7251922748cf7390c7caf5c6fccf8fbe 100644
--- a/third_party/WebKit/Source/core/layout/line/InlineBox.h
+++ b/third_party/WebKit/Source/core/layout/line/InlineBox.h
@@ -301,10 +301,10 @@ class CORE_EXPORT InlineBox : public DisplayItemClient {
m_bitfields.setBidiEmbeddingLevel(level);
}
TextDirection direction() const {
- return bidiLevel() % 2 ? TextDirection::Rtl : TextDirection::Ltr;
+ return bidiLevel() % 2 ? TextDirection::kRtl : TextDirection::kLtr;
}
bool isLeftToRightDirection() const {
- return direction() == TextDirection::Ltr;
+ return direction() == TextDirection::kLtr;
}
int caretLeftmostOffset() const {
return isLeftToRightDirection() ? caretMinOffset() : caretMaxOffset();

Powered by Google App Engine
This is Rietveld 408576698