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