Chromium Code Reviews| 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)) |