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

Unified Diff: Source/core/editing/DeleteSelectionCommand.cpp

Issue 340713003: Ignore visibility when checking whether Position is editable or not at DeletetSelectionCommand (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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: Source/core/editing/DeleteSelectionCommand.cpp
diff --git a/Source/core/editing/DeleteSelectionCommand.cpp b/Source/core/editing/DeleteSelectionCommand.cpp
index d7f5f19cfe247d04db5066ccc4d2a47d8c562e05..019429b337b019f8c99ffa10dff0e7911e47f957 100644
--- a/Source/core/editing/DeleteSelectionCommand.cpp
+++ b/Source/core/editing/DeleteSelectionCommand.cpp
@@ -166,7 +166,7 @@ void DeleteSelectionCommand::initializePositionData()
ASSERT(isEditablePosition(start, ContentIsEditable, DoNotUpdateStyle));
if (!isEditablePosition(end, ContentIsEditable, DoNotUpdateStyle))
- end = lastEditablePositionBeforePositionInRoot(end, highestEditableRoot(start)).deepEquivalent();
+ end = lastEditablePositionBeforePositionInRoot(end, highestEditableRoot(start));
m_upstreamStart = start.upstream();
m_downstreamStart = start.downstream();

Powered by Google App Engine
This is Rietveld 408576698