Chromium Code Reviews| 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) { |