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

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

Issue 144023016: Separate Custom Element resolution and upgrade/createdCallback. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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/CustomElementMicrotaskResolutionStep.h
diff --git a/Source/core/dom/custom/CustomElementResolutionStep.h b/Source/core/dom/custom/CustomElementMicrotaskResolutionStep.h
similarity index 68%
rename from Source/core/dom/custom/CustomElementResolutionStep.h
rename to Source/core/dom/custom/CustomElementMicrotaskResolutionStep.h
index 22f6e09e076a2702b8b03f52f3bf407e3f79b4ad..f77b2a885453da7a768769221d52f76dfabaaced 100644
--- a/Source/core/dom/custom/CustomElementResolutionStep.h
+++ b/Source/core/dom/custom/CustomElementMicrotaskResolutionStep.h
@@ -28,36 +28,37 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef CustomElementResolutionStep_h
-#define CustomElementResolutionStep_h
+#ifndef CustomElementMicrotaskResolutionStep_h
+#define CustomElementMicrotaskResolutionStep_h
#include "core/dom/custom/CustomElementDescriptor.h"
-#include "core/dom/custom/CustomElementProcessingStep.h"
+#include "core/dom/custom/CustomElementMicrotaskStep.h"
#include "wtf/PassOwnPtr.h"
-#include "wtf/text/AtomicString.h"
+#include "wtf/PassRefPtr.h"
+#include "wtf/RefPtr.h"
namespace WebCore {
class CustomElementRegistrationContext;
+class Element;
-class CustomElementResolutionStep : public CustomElementProcessingStep {
- WTF_MAKE_NONCOPYABLE(CustomElementResolutionStep);
+class CustomElementMicrotaskResolutionStep : public CustomElementMicrotaskStep {
+ WTF_MAKE_NONCOPYABLE(CustomElementMicrotaskResolutionStep);
public:
- static PassOwnPtr<CustomElementResolutionStep> create(PassRefPtr<CustomElementRegistrationContext>, const CustomElementDescriptor&);
+ static PassOwnPtr<CustomElementMicrotaskResolutionStep> create(PassRefPtr<CustomElementRegistrationContext>, PassRefPtr<Element>, const CustomElementDescriptor&);
- virtual ~CustomElementResolutionStep();
+ virtual ~CustomElementMicrotaskResolutionStep();
-protected:
- CustomElementResolutionStep(PassRefPtr<CustomElementRegistrationContext>, const CustomElementDescriptor&);
+private:
+ CustomElementMicrotaskResolutionStep(PassRefPtr<CustomElementRegistrationContext>, PassRefPtr<Element>, const CustomElementDescriptor&);
- virtual void dispatch(Element*) OVERRIDE;
- virtual bool isCreated() const OVERRIDE { return true; }
+ virtual Result process() OVERRIDE;
-private:
RefPtr<CustomElementRegistrationContext> m_context;
+ RefPtr<Element> m_element;
CustomElementDescriptor m_descriptor;
};
}
-#endif // CustomElementResolutionStep_h
+#endif // CustomElementMicrotaskResolutionStep_h

Powered by Google App Engine
This is Rietveld 408576698