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

Unified Diff: third_party/WebKit/Source/core/editing/VisibleUnitsParagraph.cpp

Issue 2950053002: Make Position::BeforeNode() to take const Node& instead of Node* (Closed)
Patch Set: 2017-06-21T17:56:36 Created 3 years, 6 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/editing/VisibleUnitsParagraph.cpp
diff --git a/third_party/WebKit/Source/core/editing/VisibleUnitsParagraph.cpp b/third_party/WebKit/Source/core/editing/VisibleUnitsParagraph.cpp
index e4eb2451876bbc98aa22715446e3d084ae4025f2..015d6e5ddbf73655ff94d808501f11756f42aaa3 100644
--- a/third_party/WebKit/Source/core/editing/VisibleUnitsParagraph.cpp
+++ b/third_party/WebKit/Source/core/editing/VisibleUnitsParagraph.cpp
@@ -53,7 +53,7 @@ PositionTemplate<Strategy> StartOfParagraphAlgorithm(
return PositionTemplate<Strategy>();
if (IsRenderedAsNonInlineTableImageOrHR(start_node))
- return PositionTemplate<Strategy>::BeforeNode(start_node);
+ return PositionTemplate<Strategy>::BeforeNode(*start_node);
Element* const start_block = EnclosingBlock(
PositionTemplate<Strategy>::FirstPositionInOrBeforeNode(start_node),

Powered by Google App Engine
This is Rietveld 408576698