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

Unified Diff: Source/WebCore/editing/TextIterator.cpp

Issue 13532011: Stop inserting placeholders for TextArea and Input elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 9 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: Source/WebCore/editing/TextIterator.cpp
diff --git a/Source/WebCore/editing/TextIterator.cpp b/Source/WebCore/editing/TextIterator.cpp
index b8152226f9f82151ffacc9745e3fefe7ed09172b..9ecf5f792c5d1992f566376dcfc6b27aa9a4e8c1 100644
--- a/Source/WebCore/editing/TextIterator.cpp
+++ b/Source/WebCore/editing/TextIterator.cpp
@@ -739,7 +739,7 @@ static bool shouldEmitNewlineForNode(Node* node, bool emitsOriginalText)
if (renderer ? !renderer->isBR() : !node->hasTagName(brTag))
return false;
- return emitsOriginalText || !(node->isInShadowTree() && node->shadowHost()->toInputElement());
+ return emitsOriginalText;
}
static bool shouldEmitNewlinesBeforeAndAfterNode(Node* node)

Powered by Google App Engine
This is Rietveld 408576698