summaryrefslogtreecommitdiffstats
path: root/WebCore/rendering/RenderTextControlMultiLine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/rendering/RenderTextControlMultiLine.cpp')
-rw-r--r--WebCore/rendering/RenderTextControlMultiLine.cpp16
1 files changed, 3 insertions, 13 deletions
diff --git a/WebCore/rendering/RenderTextControlMultiLine.cpp b/WebCore/rendering/RenderTextControlMultiLine.cpp
index 516d812..ac790e2 100644
--- a/WebCore/rendering/RenderTextControlMultiLine.cpp
+++ b/WebCore/rendering/RenderTextControlMultiLine.cpp
@@ -51,6 +51,9 @@ void RenderTextControlMultiLine::subtreeHasChanged()
if (!node()->focused())
return;
+ // Fire the "input" DOM event
+ node()->dispatchEvent(eventNames().inputEvent, true, false);
+
if (Frame* frame = document()->frame())
frame->textDidChangeInTextArea(static_cast<Element*>(node()));
}
@@ -106,19 +109,6 @@ PassRefPtr<RenderStyle> RenderTextControlMultiLine::createInnerTextStyle(const R
textBlockStyle->inheritFrom(startStyle);
adjustInnerTextStyle(startStyle, textBlockStyle.get());
-
- // FIXME: This code should just map wrap into CSS in the DOM code.
- // Then here we should set the textBlockStyle appropriately based off this
- // object's style()->whiteSpace() and style->wordWrap().
- // Set word wrap property based on wrap attribute.
- if (static_cast<HTMLTextAreaElement*>(node())->shouldWrapText()) {
- textBlockStyle->setWhiteSpace(PRE_WRAP);
- textBlockStyle->setWordWrap(BreakWordWrap);
- } else {
- textBlockStyle->setWhiteSpace(PRE);
- textBlockStyle->setWordWrap(NormalWordWrap);
- }
-
textBlockStyle->setDisplay(BLOCK);
return textBlockStyle.release();