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

Unified Diff: Source/core/html/imports/HTMLImportLoader.h

Issue 238923009: HTML Imports: No more BlockingDocumentCreation. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed the build breakage Created 6 years, 8 months 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
Index: Source/core/html/imports/HTMLImportLoader.h
diff --git a/Source/core/html/imports/HTMLImportLoader.h b/Source/core/html/imports/HTMLImportLoader.h
index 74b82681b4184ff64f67d83181abed6a0f808e72..19423705af17e2e08a1e343909833d8cd1b504d8 100644
--- a/Source/core/html/imports/HTMLImportLoader.h
+++ b/Source/core/html/imports/HTMLImportLoader.h
@@ -33,6 +33,8 @@
#include "core/fetch/RawResource.h"
#include "core/fetch/ResourceOwner.h"
+#include "wtf/OwnPtr.h"
+#include "wtf/PassOwnPtr.h"
#include "wtf/Vector.h"
namespace WebCore {
@@ -41,6 +43,7 @@ class Document;
class DocumentWriter;
class HTMLImportChild;
class HTMLImportsController;
+class RefCountedCustomElementMicrotaskQueue;
//
// Owning imported Document lifetime. It also implements ResourceClient through ResourceOwner
@@ -73,12 +76,14 @@ public:
bool isDone() const { return m_state == StateLoaded || m_state == StateError; }
bool hasError() const { return m_state == StateError; }
+ bool shouldBlockScriptExecution() const;
void importDestroyed();
void startLoading(const ResourcePtr<RawResource>&);
void didFinishParsing();
void didRemoveAllPendingStylesheet();
- bool isOwnedBy(const HTMLImportChild* import) const { return m_imports[0] == import; }
+
+ PassRefPtr<RefCountedCustomElementMicrotaskQueue> microtaskQueue() const;
private:
HTMLImportLoader(HTMLImportsController*);
@@ -103,6 +108,7 @@ private:
State m_state;
RefPtr<Document> m_importedDocument;
RefPtr<DocumentWriter> m_writer;
+ RefPtr<RefCountedCustomElementMicrotaskQueue> m_microtaskQueue;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698