Index: Source/core/html/parser/HTMLConstructionSite.h |
diff --git a/Source/core/html/parser/HTMLConstructionSite.h b/Source/core/html/parser/HTMLConstructionSite.h |
index cac778c02c85fffa9c32b77cda5a94dea932bc09..a813076bd57d8d43a9d516ed91311d0c191abe8a 100644 |
--- a/Source/core/html/parser/HTMLConstructionSite.h |
+++ b/Source/core/html/parser/HTMLConstructionSite.h |
@@ -142,6 +142,7 @@ public: |
bool inQuirksMode(); |
bool isEmpty() const { return !m_openElements.stackDepth(); } |
+ bool oneOpenElement() const { return m_openElements.stackDepth() == 1; } |
HTMLElementStack::ElementRecord* currentElementRecord() const { return m_openElements.topRecord(); } |
Element* currentElement() const { return m_openElements.top(); } |
ContainerNode* currentNode() const { return m_openElements.topNode(); } |