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

Unified Diff: third_party/WebKit/Source/core/dom/custom/CustomElementDefinitionBuilder.h

Issue 2024073002: Add callbacks to ScriptCustomElementDefinition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add tryCatch 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/core/dom/custom/CustomElementDefinitionBuilder.h
diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementDefinitionBuilder.h b/third_party/WebKit/Source/core/dom/custom/CustomElementDefinitionBuilder.h
index 7c8dcd9cd0c57b7c5c568486968b4e56e6443333..1a34b376eaa401996c609988f3bb97b02ec62509 100644
--- a/third_party/WebKit/Source/core/dom/custom/CustomElementDefinitionBuilder.h
+++ b/third_party/WebKit/Source/core/dom/custom/CustomElementDefinitionBuilder.h
@@ -43,6 +43,10 @@ public:
// processing should not proceed.
virtual bool checkPrototype() = 0;
+ // Cache properties for build to use. Return false if processing
+ // should not proceed.
+ virtual bool rememberOriginalProperties() = 0;
+
// Produce the definition. This must produce a definition.
virtual CustomElementDefinition* build(const CustomElementDescriptor&) = 0;
};

Powered by Google App Engine
This is Rietveld 408576698