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

Unified Diff: Source/core/dom/Document.h

Issue 779393002: Turn DocumentParser::pinToMainThread into a cleaner api (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698