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

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

Issue 2788473003: Use EphmeralRange insteadof Range in CompositeEditCommands::isNodeVisiblyContainedWithin()
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 e8cc4e3e39f63adcbc3f843aeea08fd0efd06f88..e252dec496f99936a90b3b652372e41c3d04998d 100644
--- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
@@ -1970,12 +1970,12 @@ void CompositeEditCommand::setParent(CompositeEditCommand* parent) {
// visibly fit inside selectedRange
bool CompositeEditCommand::isNodeVisiblyContainedWithin(
Node& node,
- const Range& selectedRange) {
+ const EphemeralRange& selectedRange) {
DCHECK(!needsLayoutTreeUpdate(node));
DocumentLifecycle::DisallowTransitionScope disallowTransition(
node.document().lifecycle());
- if (isNodeFullyContained(EphemeralRange(&selectedRange), node))
+ if (isNodeFullyContained(selectedRange, node))
return true;
bool startIsVisuallySame =

Powered by Google App Engine
This is Rietveld 408576698