| Index: Source/core/dom/TreeScope.cpp
|
| diff --git a/Source/core/dom/TreeScope.cpp b/Source/core/dom/TreeScope.cpp
|
| index a921aa5b5013302e8128ef938f44785d8960190d..8c11f4df2c039ffa5c5ad33d2d4a391e45a5606a 100644
|
| --- a/Source/core/dom/TreeScope.cpp
|
| +++ b/Source/core/dom/TreeScope.cpp
|
| @@ -333,13 +333,12 @@ bool TreeScope::applyAuthorStyles() const
|
| return !rootNode()->isShadowRoot() || toShadowRoot(rootNode())->applyAuthorStyles();
|
| }
|
|
|
| -void TreeScope::adoptIfNeeded(Node* node)
|
| +void TreeScope::adoptIfNeeded(Node& node)
|
| {
|
| ASSERT(this);
|
| - ASSERT(node);
|
| - ASSERT(!node->isDocumentNode());
|
| - ASSERT_WITH_SECURITY_IMPLICATION(!node->m_deletionHasBegun);
|
| - TreeScopeAdopter adopter(node, this);
|
| + ASSERT(!node.isDocumentNode());
|
| + ASSERT_WITH_SECURITY_IMPLICATION(!node.m_deletionHasBegun);
|
| + TreeScopeAdopter adopter(node, *this);
|
| if (adopter.needsScopeChange())
|
| adopter.execute();
|
| }
|
|
|