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

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

Issue 2786573002: Use EphemeralRange instead of Range in Range::isNodeFullyContainded (Closed)
Patch Set: update Created 3 years, 9 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/CompositeEditCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
index 30d2a360795a7f5e2f02a65de66f975dd347e864..c4140a1f37c678c46acceb4a2967ed6da1954223 100644
--- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
@@ -1973,7 +1973,7 @@ bool CompositeEditCommand::isNodeVisiblyContainedWithin(
DocumentLifecycle::DisallowTransitionScope disallowTransition(
node.document().lifecycle());
- if (selectedRange.isNodeFullyContained(node))
+ if (isNodeFullyContained(EphemeralRange(&selectedRange), node))
return true;
bool startIsVisuallySame =

Powered by Google App Engine
This is Rietveld 408576698