X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=WebCore%2Fhtml%2FHTMLTextAreaElement.cpp;h=e19ac0af892b5560a844e1ca820d472e220d94f6;hp=8bda72bb10d390b2694417fcbed6123e9ae40494;hb=38e67496e4a857fcd90dd6f6a8fae63c9bc21f70;hpb=b8028f6a784dafb705a1311c62cfaa8028954da8 diff --git a/WebCore/html/HTMLTextAreaElement.cpp b/WebCore/html/HTMLTextAreaElement.cpp index 8bda72bb10d3..e19ac0af892b 100644 --- a/WebCore/html/HTMLTextAreaElement.cpp +++ b/WebCore/html/HTMLTextAreaElement.cpp @@ -27,7 +27,6 @@ #include "HTMLTextAreaElement.h" #include "ChromeClient.h" -#include "CSSValueKeywords.h" #include "Document.h" #include "Event.h" #include "EventNames.h" @@ -173,15 +172,6 @@ void HTMLTextAreaElement::parseMappedAttribute(MappedAttribute* attr) wrap = SoftWrap; if (wrap != m_wrap) { m_wrap = wrap; - - if (shouldWrapText()) { - addCSSProperty(attr, CSSPropertyWhiteSpace, CSSValuePreWrap); - addCSSProperty(attr, CSSPropertyWordWrap, CSSValueBreakWord); - } else { - addCSSProperty(attr, CSSPropertyWhiteSpace, CSSValuePre); - addCSSProperty(attr, CSSPropertyWordWrap, CSSValueNormal); - } - if (renderer()) renderer()->setNeedsLayoutAndPrefWidthsRecalc(); }