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

Unified Diff: Source/core/dom/Element.cpp

Issue 14834002: Set a bit on Custom Elements on creation to simplify wrapping (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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
« no previous file with comments | « Source/core/dom/Element.h ('k') | Source/core/dom/ElementRareData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Element.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index f18ac2b05375b96c045b293df9af459255907fc3..a4f312a56172af154866eec11a208d67bc2b261b 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -1546,6 +1546,16 @@ const AtomicString& Element::shadowPseudoId() const
return pseudo();
}
+bool Element::isCustomElement() const
+{
+ return hasRareData() && elementRareData()->isCustomElement();
dglazkov 2013/05/02 03:47:12 I agree with Elliott, let's use bits.
+}
+
+void Element::setIsCustomElement()
+{
+ ensureElementRareData()->setIsCustomElement();
+}
+
bool Element::childTypeAllowed(NodeType type) const
{
switch (type) {
« no previous file with comments | « Source/core/dom/Element.h ('k') | Source/core/dom/ElementRareData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698