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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.h

Issue 2035623002: Implement the script parts of custom element upgrade steps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ce-upgrade-in-document-dom-merge2
Patch Set: Do not assign in conditional to unbreak windows builder. Created 4 years, 6 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: third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.h b/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.h
index 9cdfc997d863c735821bc09c365a78a3d3abd930..a71ffff32545f795df1a0376b6a84ec4d321964e 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.h
@@ -6,16 +6,17 @@
#define ScriptCustomElementDefinition_h
#include "bindings/core/v8/ScopedPersistent.h"
+#include "bindings/core/v8/ScriptState.h"
#include "core/CoreExport.h"
#include "core/dom/custom/CustomElementDefinition.h"
#include "v8.h"
#include "wtf/Noncopyable.h"
+#include "wtf/RefPtr.h"
namespace blink {
class CustomElementDescriptor;
class CustomElementsRegistry;
-class ScriptState;
class CORE_EXPORT ScriptCustomElementDefinition final :
public CustomElementDefinition {
@@ -47,6 +48,7 @@ private:
// Implementations of |CustomElementDefinition|
ScriptValue getConstructorForScript() final;
+ bool runConstructor(Element*) override;
RefPtr<ScriptState> m_scriptState;
ScopedPersistent<v8::Object> m_constructor;

Powered by Google App Engine
This is Rietveld 408576698