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

Unified Diff: third_party/WebKit/Source/core/layout/TextAutosizer.cpp

Issue 2555923002: Changed TextDirection to an enum class and renamed its members (Closed)
Patch Set: Added 2 changes in mac files 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/layout/TextAutosizer.cpp
diff --git a/third_party/WebKit/Source/core/layout/TextAutosizer.cpp b/third_party/WebKit/Source/core/layout/TextAutosizer.cpp
index 9c5dc91b6d2a7ca9002cdbd0f249cf60f458bb17..02207824e30a0c9fec4c5fa9a2a31320a932a399 100644
--- a/third_party/WebKit/Source/core/layout/TextAutosizer.cpp
+++ b/third_party/WebKit/Source/core/layout/TextAutosizer.cpp
@@ -746,7 +746,7 @@ TextAutosizer::Fingerprint TextAutosizer::computeFingerprint(
QualifiedNameHash::hash(toElement(node)->tagQName());
if (const ComputedStyle* style = layoutObject->style()) {
- data.m_packedStyleProperties = style->direction();
+ data.m_packedStyleProperties = static_cast<unsigned>(style->direction());
data.m_packedStyleProperties |= (style->position() << 1);
data.m_packedStyleProperties |=
(static_cast<unsigned>(style->floating()) << 4);

Powered by Google App Engine
This is Rietveld 408576698