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

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

Issue 106903007: Let unresolved custom element go through CustomElementCallbackQueue. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated test. Landing again. 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/CustomElementResolutionStep.h
diff --git a/Source/core/dom/custom/CustomElementException.h b/Source/core/dom/custom/CustomElementResolutionStep.h
similarity index 64%
copy from Source/core/dom/custom/CustomElementException.h
copy to Source/core/dom/custom/CustomElementResolutionStep.h
index 30bdb3be98179968f33a016aa009c75c66977d56..22f6e09e076a2702b8b03f52f3bf407e3f79b4ad 100644
--- a/Source/core/dom/custom/CustomElementException.h
+++ b/Source/core/dom/custom/CustomElementResolutionStep.h
@@ -28,40 +28,36 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef CustomElementException_h
-#define CustomElementException_h
+#ifndef CustomElementResolutionStep_h
+#define CustomElementResolutionStep_h
+#include "core/dom/custom/CustomElementDescriptor.h"
+#include "core/dom/custom/CustomElementProcessingStep.h"
+#include "wtf/PassOwnPtr.h"
#include "wtf/text/AtomicString.h"
-#include "wtf/text/WTFString.h"
namespace WebCore {
-class ExceptionState;
+class CustomElementRegistrationContext;
-class CustomElementException {
+class CustomElementResolutionStep : public CustomElementProcessingStep {
+ WTF_MAKE_NONCOPYABLE(CustomElementResolutionStep);
public:
- enum Reason {
- CannotRegisterFromExtension,
- ConstructorPropertyNotConfigurable,
- ContextDestroyedCheckingPrototype,
- ContextDestroyedCreatingCallbacks,
- ContextDestroyedRegisteringDefinition,
- ExtendsIsInvalidName,
- ExtendsIsCustomElementName,
- InvalidName,
- PrototypeInUse,
- PrototypeNotAnObject,
- TypeAlreadyRegistered
- };
+ static PassOwnPtr<CustomElementResolutionStep> create(PassRefPtr<CustomElementRegistrationContext>, const CustomElementDescriptor&);
- static void throwException(Reason, const AtomicString& type, ExceptionState&);
+ virtual ~CustomElementResolutionStep();
-private:
- CustomElementException();
+protected:
+ CustomElementResolutionStep(PassRefPtr<CustomElementRegistrationContext>, const CustomElementDescriptor&);
+
+ virtual void dispatch(Element*) OVERRIDE;
+ virtual bool isCreated() const OVERRIDE { return true; }
- static String preamble(const AtomicString& type);
+private:
+ RefPtr<CustomElementRegistrationContext> m_context;
+ CustomElementDescriptor m_descriptor;
};
}
-#endif // CustomElementException_h
+#endif // CustomElementResolutionStep_h
« no previous file with comments | « Source/core/dom/custom/CustomElementRegistrationContext.cpp ('k') | Source/core/dom/custom/CustomElementResolutionStep.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698