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

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

Issue 2634133002: Revert of Update layout after TypingCommand::willAddTypingToOpenCommand (Closed)
Patch Set: Created 3 years, 11 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/TypingCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp b/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp
index 85fbcce80f3d152ca099a2db1a65105d949a1e3a..c7c0ecd59787bc4b6e651bf237664260cad014a9 100644
--- a/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp
@@ -201,11 +201,6 @@
if (!lastTypingCommand->willAddTypingToOpenCommand(
source, InputEvent::InputType::DeleteContentBackward))
return;
-
- // TODO(editing-dev): Use of updateStyleAndLayoutIgnorePendingStylesheets
- // needs to be audited. See http://crbug.com/590369 for more details.
- document.updateStyleAndLayoutIgnorePendingStylesheets();
-
// InputMethodController uses this function to delete composition
// selection. It won't be aborted.
lastTypingCommand->deleteSelection(options & SmartDelete,
@@ -235,12 +230,6 @@
if (!lastTypingCommand->willAddTypingToOpenCommand(
source, InputEvent::InputType::DeleteContentBackward))
return;
-
- // TODO(editing-dev): The use of
- // updateStyleAndLayoutIgnorePendingStylesheets needs to be audited.
- // See http://crbug.com/590369 for more details.
- document.updateStyleAndLayoutIgnorePendingStylesheets();
-
EditingState editingState;
lastTypingCommand->deleteKeyPressed(granularity, options & KillRing,
&editingState);
@@ -270,11 +259,6 @@
if (!lastTypingCommand->willAddTypingToOpenCommand(
source, InputEvent::InputType::DeleteContentForward))
return;
-
- // TODO(editing-dev): Use of updateStyleAndLayoutIgnorePendingStylesheets
- // needs to be audited. See http://crbug.com/590369 for more details.
- document.updateStyleAndLayoutIgnorePendingStylesheets();
-
lastTypingCommand->forwardDeleteKeyPressed(
granularity, options & KillRing, editingState);
return;
@@ -395,11 +379,6 @@
if (!lastTypingCommand->willAddTypingToOpenCommand(
source, InputEvent::InputType::InsertText, newText))
return;
-
- // TODO(editing-dev): Use of updateStyleAndLayoutIgnorePendingStylesheets
- // needs to be audited. See http://crbug.com/590369 for more details.
- document.updateStyleAndLayoutIgnorePendingStylesheets();
-
EditingState editingState;
lastTypingCommand->insertText(newText, options & SelectInsertedText,
&editingState);
@@ -454,11 +433,6 @@
if (!lastTypingCommand->willAddTypingToOpenCommand(
source, InputEvent::InputType::InsertLineBreak))
return false;
-
- // TODO(editing-dev): Use of updateStyleAndLayoutIgnorePendingStylesheets
- // needs to be audited. See http://crbug.com/590369 for more details.
- document.updateStyleAndLayoutIgnorePendingStylesheets();
-
EditingState editingState;
lastTypingCommand->insertLineBreak(&editingState);
return !editingState.isAborted();
@@ -475,11 +449,6 @@
if (!lastTypingCommand->willAddTypingToOpenCommand(
source, InputEvent::InputType::InsertParagraph))
return false;
-
- // TODO(editing-dev): Use of updateStyleAndLayoutIgnorePendingStylesheets
- // needs to be audited. See http://crbug.com/590369 for more details.
- document.updateStyleAndLayoutIgnorePendingStylesheets();
-
EditingState editingState;
lastTypingCommand->insertParagraphSeparatorInQuotedContent(&editingState);
return !editingState.isAborted();
@@ -498,11 +467,6 @@
if (!lastTypingCommand->willAddTypingToOpenCommand(
source, InputEvent::InputType::InsertParagraph))
return false;
-
- // TODO(editing-dev): Use of updateStyleAndLayoutIgnorePendingStylesheets
- // needs to be audited. See http://crbug.com/590369 for more details.
- document.updateStyleAndLayoutIgnorePendingStylesheets();
-
EditingState editingState;
lastTypingCommand->insertParagraphSeparator(&editingState);
return !editingState.isAborted();
« 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