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

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

Issue 2391723006: Prune createVisibleSelectionDeprecated from CreateLinkCommand (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | 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/CreateLinkCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/CreateLinkCommand.cpp b/third_party/WebKit/Source/core/editing/commands/CreateLinkCommand.cpp
index cd99637c1fa69b206be249668aefba2655f3b5e4..59b198f0bfd7a5b6798ebe2b2a426652a47dfe4a 100644
--- a/third_party/WebKit/Source/core/editing/commands/CreateLinkCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/CreateLinkCommand.cpp
@@ -54,6 +54,7 @@ void CreateLinkCommand::doApply(EditingState* editingState) {
appendNode(textNode, anchorElement, editingState);
if (editingState->isAborted())
return;
+ document().updateStyleAndLayoutIgnorePendingStylesheets();
setEndingSelection(createVisibleSelectionDeprecated(
Position::inParentBeforeNode(*anchorElement),
Position::inParentAfterNode(*anchorElement), TextAffinity::Downstream,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698