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

Unified Diff: third_party/WebKit/Source/platform/text/WritingMode.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/platform/text/WritingMode.h
diff --git a/third_party/WebKit/Source/platform/text/WritingMode.h b/third_party/WebKit/Source/platform/text/WritingMode.h
index b18c46028738a00130d16a654800e58053e0e838..2e0163eb026fec7cfac69bd93fb148c184b2e88d 100644
--- a/third_party/WebKit/Source/platform/text/WritingMode.h
+++ b/third_party/WebKit/Source/platform/text/WritingMode.h
@@ -37,22 +37,22 @@ namespace blink {
// horizontal-tb, vertical-rl and vertical-lr.
// Since these names aren't very self-explanatory, where possible use the
// inline utility functions below.
-enum class WritingMode : unsigned { HorizontalTb, VerticalRl, VerticalLr };
+enum class WritingMode : unsigned { kHorizontalTb, kVerticalRl, kVerticalLr };
// Lines have horizontal orientation; modes horizontal-tb.
inline bool isHorizontalWritingMode(WritingMode writingMode) {
- return writingMode == WritingMode::HorizontalTb;
+ return writingMode == WritingMode::kHorizontalTb;
}
// Bottom of the line occurs earlier in the block; modes vertical-lr.
inline bool isFlippedLinesWritingMode(WritingMode writingMode) {
- return writingMode == WritingMode::VerticalLr;
+ return writingMode == WritingMode::kVerticalLr;
}
// Block progression increases in the opposite direction to normal; modes
// vertical-rl.
inline bool isFlippedBlocksWritingMode(WritingMode writingMode) {
- return writingMode == WritingMode::VerticalRl;
+ return writingMode == WritingMode::kVerticalRl;
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/platform/text/TextRun.h ('k') | third_party/WebKit/Source/web/ExternalPopupMenu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698