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

Unified Diff: third_party/WebKit/Source/core/dom/Node.h

Issue 1885453002: Rename Node::treeScope() to Node::treeScopeOrDocument() Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 months 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
Index: third_party/WebKit/Source/core/dom/Node.h
diff --git a/third_party/WebKit/Source/core/dom/Node.h b/third_party/WebKit/Source/core/dom/Node.h
index a2699fad2f45c1debea89e2e1e2251fde825ef6d..a75f95325640e5953cadb7e0e2f4adaf92bf66a8 100644
--- a/third_party/WebKit/Source/core/dom/Node.h
+++ b/third_party/WebKit/Source/core/dom/Node.h
@@ -470,10 +470,10 @@ public:
// Returns the document associated with this node. A Document node returns itself.
Document& document() const
{
- return treeScope().document();
+ return treeScopeOrDocument().document();
}
- TreeScope& treeScope() const
+ TreeScope& treeScopeOrDocument() const
{
DCHECK(m_treeScope);
return *m_treeScope;
« no previous file with comments | « third_party/WebKit/Source/core/dom/LiveNodeListBase.cpp ('k') | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698