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

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

Issue 347773002: Implement select listbox using shadow DOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: White background Created 6 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: Source/core/editing/TextIterator.cpp
diff --git a/Source/core/editing/TextIterator.cpp b/Source/core/editing/TextIterator.cpp
index 5b9f97f748344323c603952bb8c464aa0e263092..356105f0a55af3eb4f75c067456d76cdee67cd5d 100644
--- a/Source/core/editing/TextIterator.cpp
+++ b/Source/core/editing/TextIterator.cpp
@@ -900,6 +900,11 @@ static bool shouldEmitNewlinesBeforeAndAfterNode(Node& node)
|| node.hasTagName(ulTag));
}
+ // Need to make an exception for option and optgroup, because we want to
+ // keep the legacy behavior before we added renderers to them.
+ if (isHTMLOptionElement(&node) || isHTMLOptGroupElement(&node))
tkent 2014/07/08 04:43:45 &s are unnecessary.
keishi 2014/07/10 09:48:03 Done.
+ return false;
+
// Need to make an exception for table cells, because they are blocks, but we
// want them tab-delimited rather than having newlines before and after.
if (isTableCell(&node))

Powered by Google App Engine
This is Rietveld 408576698