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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2546333002: Changed Order to an enum class and renamed its members (Closed)
Patch Set: 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/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 5cc3d95b297ba44d1735694570da7fed044d8b19..dd47f2aa3a69bae0508d3521d70c7ca0cc2cefc1 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -4867,9 +4867,10 @@ void Document::setEncodingData(const DocumentEncodingData& newData) {
if (shouldUseVisualOrdering != m_visuallyOrdered) {
m_visuallyOrdered = shouldUseVisualOrdering;
// FIXME: How is possible to not have a layoutObject here?
- if (!layoutViewItem().isNull())
+ if (!layoutViewItem().isNull()) {
layoutViewItem().mutableStyleRef().setRTLOrdering(
- m_visuallyOrdered ? VisualOrder : LogicalOrder);
+ m_visuallyOrdered ? EOrder::Visual : EOrder::Logical);
+ }
setNeedsStyleRecalc(SubtreeStyleChange,
StyleChangeReasonForTracing::create(
StyleChangeReason::VisuallyOrdered));

Powered by Google App Engine
This is Rietveld 408576698