Index: Source/core/dom/Position.h |
diff --git a/Source/core/dom/Position.h b/Source/core/dom/Position.h |
index 5f92fe5822c9d7e6f80ac315374ebf3015ced6e4..643ba2b7ac41bb4b65eb16a77d280ec9ebd34753 100644 |
--- a/Source/core/dom/Position.h |
+++ b/Source/core/dom/Position.h |
@@ -244,19 +244,19 @@ inline bool operator!=(const Position& a, const Position& b) |
// These are inline to prevent ref-churn when returning a Position object. |
// If we ever add a PassPosition we can make these non-inline. |
-inline Position positionInParentBeforeNode(const Node* node) |
+inline Position positionInParentBeforeNode(const Node& node) |
{ |
- // FIXME: This should ASSERT(node->parentNode()) |
+ // FIXME: This should ASSERT(node.parentNode()) |
// At least one caller currently hits this ASSERT though, which indicates |
// that the caller is trying to make a position relative to a disconnected node (which is likely an error) |
// Specifically, editing/deleting/delete-ligature-001.html crashes with ASSERT(node->parentNode()) |
- return Position(node->parentNode(), node->nodeIndex(), Position::PositionIsOffsetInAnchor); |
+ return Position(node.parentNode(), node.nodeIndex(), Position::PositionIsOffsetInAnchor); |
} |
-inline Position positionInParentAfterNode(const Node* node) |
+inline Position positionInParentAfterNode(const Node& node) |
{ |
- ASSERT(node->parentNode()); |
- return Position(node->parentNode(), node->nodeIndex() + 1, Position::PositionIsOffsetInAnchor); |
+ ASSERT(node.parentNode()); |
+ return Position(node.parentNode(), node.nodeIndex() + 1, Position::PositionIsOffsetInAnchor); |
} |
// positionBeforeNode and positionAfterNode return neighbor-anchored positions, construction is O(1) |