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

Unified Diff: Source/core/dom/ElementRareData.h

Issue 177063004: Move custom element definitions into ElementRareData (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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/ElementRareData.h
diff --git a/Source/core/dom/ElementRareData.h b/Source/core/dom/ElementRareData.h
index c3189379b3e96341787d15a303ca5f1c3a82cb71..ce0b718cca2d7636f8b50f8e6a85ab6d0728ba49 100644
--- a/Source/core/dom/ElementRareData.h
+++ b/Source/core/dom/ElementRareData.h
@@ -27,6 +27,7 @@
#include "core/dom/NamedNodeMap.h"
#include "core/dom/NodeRareData.h"
#include "core/dom/PseudoElement.h"
+#include "core/dom/custom/CustomElementDefinition.h"
#include "core/dom/shadow/ElementShadow.h"
#include "core/html/ClassList.h"
#include "core/html/ime/InputMethodContext.h"
@@ -147,6 +148,9 @@ public:
bool hasPseudoElements() const;
void clearPseudoElements();
+ void setCustomElementDefinition(PassRefPtr<CustomElementDefinition> definition) { m_customElementDefinition = definition; }
+ CustomElementDefinition* customElementDefinition() const { return m_customElementDefinition.get(); }
+
private:
short m_tabIndex;
unsigned short m_childIndex;
@@ -186,7 +190,9 @@ private:
RefPtr<PseudoElement> m_generatedAfter;
RefPtr<PseudoElement> m_backdrop;
- ElementRareData(RenderObject*);
+ RefPtr<CustomElementDefinition> m_customElementDefinition;
+
+ explicit ElementRareData(RenderObject*);
};
inline IntSize defaultMinimumSizeForResizing()

Powered by Google App Engine
This is Rietveld 408576698