summaryrefslogtreecommitdiff
path: root/Source/WebCore/dom/TreeScope.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2012-07-23 09:28:44 +0200
committerSimon Hausmann <simon.hausmann@nokia.com>2012-07-23 09:28:44 +0200
commit815f1ed417bd26fbe2abbdf20ac5d3423b30796c (patch)
tree923c9a9e2834ccab60f5caecfb8f0ac410c1dd9e /Source/WebCore/dom/TreeScope.h
parentb4ad5d9d2b96baacd0180ead50de5195ca78af2d (diff)
downloadqtwebkit-815f1ed417bd26fbe2abbdf20ac5d3423b30796c.tar.gz
Imported WebKit commit e65cbc5b6ac32627c797e7fc7f46eb7794410c92 (http://svn.webkit.org/repository/webkit/trunk@123308)
New snapshot with better configure tests
Diffstat (limited to 'Source/WebCore/dom/TreeScope.h')
-rw-r--r--Source/WebCore/dom/TreeScope.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/WebCore/dom/TreeScope.h b/Source/WebCore/dom/TreeScope.h
index 841bbb6c1..f933c6f25 100644
--- a/Source/WebCore/dom/TreeScope.h
+++ b/Source/WebCore/dom/TreeScope.h
@@ -34,6 +34,7 @@ namespace WebCore {
class ContainerNode;
class DOMSelection;
+class Document;
class Element;
class HTMLMapElement;
class IdTargetObserverRegistry;
@@ -78,17 +79,23 @@ public:
void adoptIfNeeded(Node*);
ContainerNode* rootNode() const { return m_rootNode; }
-
+ Document* rootDocument() const { return m_rootDocument; }
+ bool isDocumentScope() const;
IdTargetObserverRegistry& idTargetObserverRegistry() const { return *m_idTargetObserverRegistry.get(); }
+ static TreeScope* nullInstance();
+
protected:
- TreeScope(ContainerNode*);
+ TreeScope(ContainerNode*, Document*);
virtual ~TreeScope();
void destroyTreeScopeData();
private:
+ TreeScope();
+
ContainerNode* m_rootNode;
+ Document* m_rootDocument;
TreeScope* m_parentTreeScope;
DocumentOrderedMap m_elementsById;