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

Unified Diff: Source/core/dom/custom/CustomElementProcessingStep.h

Issue 106903007: Let unresolved custom element go through CustomElementCallbackQueue. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated. Created 7 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
Index: Source/core/dom/custom/CustomElementProcessingStep.h
diff --git a/Source/core/dom/Microtask.h b/Source/core/dom/custom/CustomElementProcessingStep.h
similarity index 78%
copy from Source/core/dom/Microtask.h
copy to Source/core/dom/custom/CustomElementProcessingStep.h
index 27f72cbec01e5795593d3e545a3b5ca3e5c046fa..c92451bae82373f7dc25694b071d9fdbf1af27b5 100644
--- a/Source/core/dom/Microtask.h
+++ b/Source/core/dom/custom/CustomElementProcessingStep.h
@@ -28,19 +28,25 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef Microtask_h
-#define Microtask_h
+#ifndef CustomElementProcessingStep_h
+#define CustomElementProcessingStep_h
+
+#include "wtf/Noncopyable.h"
namespace WebCore {
-class Microtask {
+class Element;
+
+class CustomElementProcessingStep {
+ WTF_MAKE_NONCOPYABLE(CustomElementProcessingStep);
public:
- static void performCheckpoint();
+ CustomElementProcessingStep() { }
-private:
- explicit Microtask();
+ virtual ~CustomElementProcessingStep() { }
+ virtual void dispatch(Element*) = 0;
+ virtual bool isCreated() const { return false; }
dominicc (has gone to gerrit) 2013/12/18 08:46:41 I think we need a better name for this, because pr
Hajime Morrita 2013/12/19 05:06:59 Sounds good. Adding FIXME for now.
};
}
-#endif // Microtask_h
+#endif // CustomElementProcessingStep_h

Powered by Google App Engine
This is Rietveld 408576698