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

Unified Diff: Source/web/WebNode.cpp

Issue 23819007: Have Node::document() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 4 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
« no previous file with comments | « Source/web/WebMediaPlayerClientImpl.cpp ('k') | Source/web/WebPageSerializer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebNode.cpp
diff --git a/Source/web/WebNode.cpp b/Source/web/WebNode.cpp
index 54a6c32f2dd4404b578bee181d5ff73f36e9e633..1b41d253fc993848d5140ae0de98230d98a74fb2 100644
--- a/Source/web/WebNode.cpp
+++ b/Source/web/WebNode.cpp
@@ -107,7 +107,7 @@ bool WebNode::setNodeValue(const WebString& value)
WebDocument WebNode::document() const
{
- return WebDocument(m_private->document());
+ return WebDocument(&m_private->document());
}
WebNode WebNode::firstChild() const
@@ -159,7 +159,7 @@ bool WebNode::isFocusable() const
{
if (!m_private->isElementNode())
return false;
- m_private->document()->updateLayoutIgnorePendingStylesheets();
+ m_private->document().updateLayoutIgnorePendingStylesheets();
return toElement(m_private.get())->isFocusable();
}
@@ -229,7 +229,7 @@ bool WebNode::remove()
bool WebNode::hasNonEmptyBoundingBox() const
{
- m_private->document()->updateLayoutIgnorePendingStylesheets();
+ m_private->document().updateLayoutIgnorePendingStylesheets();
return m_private->hasNonEmptyBoundingBox();
}
« no previous file with comments | « Source/web/WebMediaPlayerClientImpl.cpp ('k') | Source/web/WebPageSerializer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698