| Index: third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp b/third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp
|
| index 3cb4c6e774b708b134af2de98f96c7aa9e8731ed..7d1782c48ec5bfc0e61b3cdb0e78c22eefd48664 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp
|
| @@ -273,6 +273,19 @@ void HTMLTextAreaElement::handleFocusEvent(Element*, WebFocusType)
|
|
|
| void HTMLTextAreaElement::subtreeHasChanged()
|
| {
|
| +#if ENABLE(ASSERT)
|
| + // The innerEditor should have either Text nodes or a placeholder break
|
| + // element. If we see other nodes, it's a bug in editing code and we should
|
| + // fix it.
|
| + Element* innerEditor = innerEditorElement();
|
| + for (Node& node : NodeTraversal::descendantsOf(*innerEditor)) {
|
| + if (node.isTextNode())
|
| + continue;
|
| + ASSERT(isHTMLBRElement(node));
|
| + ASSERT(&node == innerEditor->lastChild());
|
| + }
|
| +#endif
|
| + addPlaceholderBreakElementIfNecessary();
|
| setChangedSinceLastFormControlChangeEvent(true);
|
| m_valueIsUpToDate = false;
|
| setNeedsValidityCheck();
|
|
|