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

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

Issue 2089993003: Get rid of EUpdateStyle parameter from isEditablePosition() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-06-27T14:42:23 Created 4 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
« no previous file with comments | « third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp b/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp
index a8da722ea2c6503793a364ba39bc6cee382a218b..075873b2a98f0898cea62dcf6edf1ee189b165d4 100644
--- a/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp
@@ -167,11 +167,11 @@ void DeleteSelectionCommand::initializePositionData(EditingState* editingState)
initializeStartEnd(start, end);
DCHECK(start.isNotNull());
DCHECK(end.isNotNull());
- if (!isEditablePosition(start, ContentIsEditable, DoNotUpdateStyle)) {
+ if (!isEditablePosition(start, ContentIsEditable)) {
editingState->abort();
return;
}
- if (!isEditablePosition(end, ContentIsEditable, DoNotUpdateStyle)) {
+ if (!isEditablePosition(end, ContentIsEditable)) {
Node* highestRoot = highestEditableRoot(start);
DCHECK(highestRoot);
end = lastEditablePositionBeforePositionInRoot(end, *highestRoot);
« no previous file with comments | « third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698