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

Unified Diff: third_party/WebKit/Source/platform/fonts/shaping/ShapeCache.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/fonts/shaping/ShapeCache.h
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/ShapeCache.h b/third_party/WebKit/Source/platform/fonts/shaping/ShapeCache.h
index 0b6b7d2f8be451a76cd46aa7326fe34bce936e00..bf7efa8ac98b4d03951fecb089338f73aee2f5de 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/ShapeCache.h
+++ b/third_party/WebKit/Source/platform/fonts/shaping/ShapeCache.h
@@ -59,11 +59,11 @@ class ShapeCache {
SmallStringKey()
: m_length(s_emptyValueLength),
- m_direction(static_cast<unsigned>(TextDirection::Ltr)) {}
+ m_direction(static_cast<unsigned>(TextDirection::kLtr)) {}
SmallStringKey(WTF::HashTableDeletedValueType)
: m_length(s_deletedValueLength),
- m_direction(static_cast<unsigned>(TextDirection::Ltr)) {}
+ m_direction(static_cast<unsigned>(TextDirection::kLtr)) {}
template <typename CharacterType>
SmallStringKey(CharacterType* characters,
@@ -188,7 +188,7 @@ class ShapeCache {
uint32_t key = run[0];
// All current codepointsin UTF-32 are bewteen 0x0 and 0x10FFFF,
// as such use bit 32 to indicate direction.
- if (run.direction() == TextDirection::Rtl)
+ if (run.direction() == TextDirection::kRtl)
key |= (1u << 31);
SingleCharMap::AddResult addResult = m_singleCharMap.add(key, entry);
isNewEntry = addResult.isNewEntry;

Powered by Google App Engine
This is Rietveld 408576698