Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 3d79b0c6ce7cba5a6fe96df9cd6582043edd39a0..9af267f78ca883833abe1f9b2bab398df6ae65f1 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -498,8 +498,6 @@ Document::Document(const DocumentInit& initializer, DocumentClassFlags documentC |
, m_loadEventDelayTimer(this, &Document::loadEventDelayTimerFired) |
, m_pluginLoadingTimer(this, &Document::pluginLoadingTimerFired) |
, m_referrerPolicy(ReferrerPolicyDefault) |
- , m_directionSetOnDocumentElement(false) |
- , m_writingModeSetOnDocumentElement(false) |
, m_writeRecursionIsTooDeep(false) |
, m_writeRecursionDepth(0) |
, m_taskRunner(MainThreadTaskRunner::create(this)) |
@@ -1686,10 +1684,8 @@ void Document::inheritHtmlAndBodyElementStyles(StyleRecalcChange change) |
bodyStyle = body->renderStyle(); |
if (!bodyStyle || body->needsStyleRecalc() || documentElement()->needsStyleRecalc() || change == Force) |
bodyStyle = ensureStyleResolver().styleForElement(body, documentElementStyle.get()); |
- if (!writingModeSetOnDocumentElement()) |
- rootWritingMode = bodyStyle->writingMode(); |
- if (!directionSetOnDocumentElement()) |
- rootDirection = bodyStyle->direction(); |
+ rootWritingMode = bodyStyle->writingMode(); |
+ rootDirection = bodyStyle->direction(); |
} |
RefPtr<RenderStyle> overflowStyle; |