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

Unified Diff: Source/core/dom/custom/CustomElementMicrotaskImportStep.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/dom/custom/CustomElementMicrotaskImportStep.h
diff --git a/Source/core/dom/custom/CustomElementMicrotaskImportStep.h b/Source/core/dom/custom/CustomElementMicrotaskImportStep.h
index 8b5d3f3741abb04059edc38e7b749e5cf209357f..dc63cd3a5566ebcbd03c43a4ccb75d4051f5331a 100644
--- a/Source/core/dom/custom/CustomElementMicrotaskImportStep.h
+++ b/Source/core/dom/custom/CustomElementMicrotaskImportStep.h
@@ -31,13 +31,16 @@
#ifndef CustomElementMicrotaskImportStep_h
#define CustomElementMicrotaskImportStep_h
-#include "core/dom/custom/CustomElementMicrotaskQueue.h"
#include "core/dom/custom/CustomElementMicrotaskStep.h"
#include "wtf/Noncopyable.h"
#include "wtf/PassOwnPtr.h"
+#include "wtf/PassRefPtr.h"
+#include "wtf/RefPtr.h"
namespace WebCore {
+class RefCountedCustomElementMicrotaskQueue;
+
// Processes the Custom Elements in an HTML Import. This is a
// composite step which processes the Custom Elements created by
// parsing the import, and its sub-imports.
@@ -47,23 +50,20 @@ namespace WebCore {
class CustomElementMicrotaskImportStep : public CustomElementMicrotaskStep {
WTF_MAKE_NONCOPYABLE(CustomElementMicrotaskImportStep);
public:
- static PassOwnPtr<CustomElementMicrotaskImportStep> create();
- virtual ~CustomElementMicrotaskImportStep() { }
-
- // API for CustomElementScheduler
- void enqueue(PassOwnPtr<CustomElementMicrotaskStep>);
+ static PassOwnPtr<CustomElementMicrotaskImportStep> create(PassRefPtr<RefCountedCustomElementMicrotaskQueue>);
+ virtual ~CustomElementMicrotaskImportStep();
// API for HTML Imports
void importDidFinish();
private:
- CustomElementMicrotaskImportStep() : m_importFinished(false) { }
+ CustomElementMicrotaskImportStep(PassRefPtr<RefCountedCustomElementMicrotaskQueue>);
// CustomElementMicrotaskStep
virtual Result process() OVERRIDE FINAL;
bool m_importFinished;
- CustomElementMicrotaskQueue m_queue;
+ RefPtr<RefCountedCustomElementMicrotaskQueue> m_queue;
};
}

Powered by Google App Engine
This is Rietveld 408576698