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

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

Issue 2705373002: Remove unnecessary layout updates from InsertInto/DeleteFromTextNodeCommand (Closed)
Patch Set: Add layout updates for clients requiring that explicitly Created 3 years, 10 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/InsertLineBreakCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/InsertLineBreakCommand.cpp b/third_party/WebKit/Source/core/editing/commands/InsertLineBreakCommand.cpp
index acfcc177b9da0da78c71e832c41e9ec8531e5de2..b8170e7ca7636d9dd6dcfcef08506b019a21f080 100644
--- a/third_party/WebKit/Source/core/editing/commands/InsertLineBreakCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/InsertLineBreakCommand.cpp
@@ -177,8 +177,6 @@ void InsertLineBreakCommand::doApply(EditingState* editingState) {
Position positionBeforeTextNode(Position::inParentBeforeNode(*textNode));
// Clear out all whitespace and insert one non-breaking space
deleteInsignificantTextDownstream(endingPosition);
- DCHECK(!textNode->layoutObject() ||
yosin_UTC9 2017/02/22 06:26:08 I really don't like this DCHECK() since it depends
- textNode->layoutObject()->style()->collapseWhiteSpace());
// Deleting insignificant whitespace will remove textNode if it contains
// nothing but insignificant whitespace.
if (textNode->isConnected()) {

Powered by Google App Engine
This is Rietveld 408576698