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

Unified Diff: third_party/WebKit/Source/core/dom/TreeScope.cpp

Issue 1455943002: [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CORE_EXPORT Created 5 years, 1 month 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 | « third_party/WebKit/Source/core/dom/TreeScope.h ('k') | third_party/WebKit/Source/core/editing/Editor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/TreeScope.cpp
diff --git a/third_party/WebKit/Source/core/dom/TreeScope.cpp b/third_party/WebKit/Source/core/dom/TreeScope.cpp
index fe8f2ff9f4158bc2e2c17573f1389aacf4d19d1b..921c286d236aa359119073506478150c08cd6154 100644
--- a/third_party/WebKit/Source/core/dom/TreeScope.cpp
+++ b/third_party/WebKit/Source/core/dom/TreeScope.cpp
@@ -132,6 +132,11 @@ void TreeScope::destroyTreeScopeData()
}
#endif
+void TreeScope::setDocument(Document& document)
+{
+ m_document = &document;
+}
+
void TreeScope::setParentTreeScope(TreeScope& newParentScope)
{
// A document node cannot be re-parented.
@@ -146,6 +151,11 @@ void TreeScope::setParentTreeScope(TreeScope& newParentScope)
setDocument(newParentScope.document());
}
+ScopedStyleResolver* TreeScope::scopedStyleResolver() const
+{
+ return m_scopedStyleResolver.get();
+}
+
ScopedStyleResolver& TreeScope::ensureScopedStyleResolver()
{
RELEASE_ASSERT(this);
@@ -194,6 +204,12 @@ void TreeScope::removeElementById(const AtomicString& elementId, Element* elemen
m_idTargetObserverRegistry->notifyObservers(elementId);
}
+Document& TreeScope::document() const
+{
+ ASSERT(m_document);
+ return *m_document;
+}
+
Node* TreeScope::ancestorInThisScope(Node* node) const
{
while (node) {
@@ -419,6 +435,11 @@ void TreeScope::adoptIfNeeded(Node& node)
adopter.execute();
}
+IdTargetObserverRegistry& TreeScope::idTargetObserverRegistry() const
+{
+ return *m_idTargetObserverRegistry.get();
+}
+
Element* TreeScope::adjustedFocusedElement() const
{
Document& document = rootNode().document();
« no previous file with comments | « third_party/WebKit/Source/core/dom/TreeScope.h ('k') | third_party/WebKit/Source/core/editing/Editor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698