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

Unified Diff: third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp

Issue 2955823002: Make VisiblePosition::FirstPositionInNode() to take const Node& instead of Node* (Closed)
Patch Set: 2017-06-26T13:57:23 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/commands/TypingCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp b/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp
index 3dbbedfd4cf410ef14c032281470846c25446276..46e23a955f615725a7310d28ccdff9c6ab0d74cf 100644
--- a/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp
@@ -769,7 +769,7 @@ void TypingCommand::DeleteKeyPressed(TextGranularity granularity,
if (enclosing_table_cell &&
visible_start.DeepEquivalent() ==
VisiblePosition::FirstPositionInNode(
- const_cast<Node*>(enclosing_table_cell))
+ *const_cast<Node*>(enclosing_table_cell))
.DeepEquivalent())
return;

Powered by Google App Engine
This is Rietveld 408576698