| 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();
|
|
|