Chromium Code Reviews| 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(); |
|
rune
2014/11/27 09:55:03
What if you don't have body? Like in:
<?xml versi
rune
2014/11/27 09:55:04
What if you don't have body? Like in:
<?xml versi
andersr
2014/11/27 10:03:02
Then we shouldn't enter this code at all, and take
rune
2014/11/27 10:13:11
Ah, yes, I didn't see the initialization of rootDi
|
| } |
| RefPtr<RenderStyle> overflowStyle; |