Index: Source/core/editing/VisiblePosition.cpp |
diff --git a/Source/core/editing/VisiblePosition.cpp b/Source/core/editing/VisiblePosition.cpp |
index bad9886291a766668c6a5ba85bd1c0d968dfcafa..685bdf86ba8df429014acea12ee22fad5cf166d7 100644 |
--- a/Source/core/editing/VisiblePosition.cpp |
+++ b/Source/core/editing/VisiblePosition.cpp |
@@ -541,7 +541,7 @@ Position VisiblePosition::canonicalPosition(const Position& passedPosition) |
// The new position must be in the same editable element. Enforce that first. |
// Unless the descent is from a non-editable html element to an editable body. |
- if (node && isHTMLHtmlElement(node) && !node->rendererIsEditable() && node->document()->body() && node->document()->body()->rendererIsEditable()) |
+ if (node && isHTMLHtmlElement(node) && !node->rendererIsEditable() && node->document().body() && node->document().body()->rendererIsEditable()) |
return next.isNotNull() ? next : prev; |
Node* editingRoot = editableRootForPosition(position); |
@@ -680,7 +680,7 @@ PassRefPtr<Range> makeRange(const VisiblePosition &start, const VisiblePosition |
if (s.isNull() || e.isNull()) |
return 0; |
- return Range::create(s.containerNode()->document(), s.containerNode(), s.offsetInContainerNode(), e.containerNode(), e.offsetInContainerNode()); |
+ return Range::create(&s.containerNode()->document(), s.containerNode(), s.offsetInContainerNode(), e.containerNode(), e.offsetInContainerNode()); |
} |
VisiblePosition startVisiblePosition(const Range *r, EAffinity affinity) |