Index: Source/core/html/HTMLInputElement.cpp |
diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp |
index 04bc9fff1b14ed4a1a5592744bce14c50084d036..2abd9cdd2d294a50777f97310aa7e439ec65d09e 100644 |
--- a/Source/core/html/HTMLInputElement.cpp |
+++ b/Source/core/html/HTMLInputElement.cpp |
@@ -1095,10 +1095,7 @@ void HTMLInputElement::setValueFromRenderer(const String& value) |
// Renderer and our event handler are responsible for sanitizing values. |
ASSERT(value == sanitizeValue(value) || sanitizeValue(value).isEmpty()); |
- // Workaround for bug where trailing \n is included in the result of textContent. |
- // The assert macro above may also be simplified to: value == constrainValue(value) |
- // http://bugs.webkit.org/show_bug.cgi?id=9661 |
- m_valueIfDirty = value == "\n" ? emptyString() : value; |
+ m_valueIfDirty = value; |
setFormControlValueMatchesRenderer(true); |
m_wasModifiedByUser = true; |