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)); |