Index: Source/core/dom/Document.h |
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h |
index b7561a49d0e61f51cade2f2fe635cd8ac0fb8471..0d123aad4c3ea71580471f1591c6275d14c6fb30 100644 |
--- a/Source/core/dom/Document.h |
+++ b/Source/core/dom/Document.h |
@@ -47,6 +47,7 @@ |
#include "core/dom/custom/CustomElement.h" |
#include "core/frame/LocalDOMWindow.h" |
#include "core/html/CollectionType.h" |
+#include "core/html/parser/ParserSynchronizationPolicy.h" |
#include "core/page/FocusType.h" |
#include "core/page/PageVisibilityState.h" |
#include "platform/Length.h" |
@@ -509,7 +510,7 @@ public: |
DocumentLoader* loader() const; |
void open(Document* ownerDocument = nullptr, ExceptionState& = ASSERT_NO_EXCEPTION); |
- PassRefPtrWillBeRawPtr<DocumentParser> implicitOpen(); |
+ PassRefPtrWillBeRawPtr<DocumentParser> implicitOpen(ParserSynchronizationPolicy); |
// close() is the DOM API document.close() |
void close(ExceptionState& = ASSERT_NO_EXCEPTION); |
@@ -1071,6 +1072,7 @@ protected: |
bool importContainerNodeChildren(ContainerNode* oldContainerNode, PassRefPtrWillBeRawPtr<ContainerNode> newContainerNode, ExceptionState&); |
void lockCompatibilityMode() { m_compatibilityModeLocked = true; } |
+ ParserSynchronizationPolicy parserSynchronizationPolicy() const { return m_parserSyncPolicy; } |
private: |
friend class Node; |
@@ -1385,6 +1387,8 @@ private: |
DocumentVisibilityObserverSet m_visibilityObservers; |
int m_styleRecalcElementCounter; |
+ |
+ ParserSynchronizationPolicy m_parserSyncPolicy; |
}; |
inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin) |