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

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

Issue 2149893003: Rename Node::inShadowIncludingDocument() to Node::isConnected() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed Created 4 years, 5 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 f125ac00380230540fb8c300d28d02d8432f703f..c5223d9c288820983bea980d7c2eb56f4465000b 100644
--- a/third_party/WebKit/Source/core/editing/commands/InsertLineBreakCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/InsertLineBreakCommand.cpp
@@ -160,7 +160,7 @@ void InsertLineBreakCommand::doApply(EditingState* editingState)
deleteInsignificantTextDownstream(endingPosition);
DCHECK(!textNode->layoutObject() || textNode->layoutObject()->style()->collapseWhiteSpace());
// Deleting insignificant whitespace will remove textNode if it contains nothing but insignificant whitespace.
- if (textNode->inShadowIncludingDocument()) {
+ if (textNode->isConnected()) {
insertTextIntoNode(textNode, 0, nonBreakingSpaceString());
} else {
Text* nbspNode = document().createTextNode(nonBreakingSpaceString());

Powered by Google App Engine
This is Rietveld 408576698