OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights reserv
ed. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights reserv
ed. |
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) | 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 28 matching lines...) Expand all Loading... |
39 #include "core/editing/iterators/TextIterator.h" | 39 #include "core/editing/iterators/TextIterator.h" |
40 #include "core/events/BeforeTextInsertedEvent.h" | 40 #include "core/events/BeforeTextInsertedEvent.h" |
41 #include "core/events/Event.h" | 41 #include "core/events/Event.h" |
42 #include "core/frame/FrameHost.h" | 42 #include "core/frame/FrameHost.h" |
43 #include "core/frame/LocalFrame.h" | 43 #include "core/frame/LocalFrame.h" |
44 #include "core/html/FormDataList.h" | 44 #include "core/html/FormDataList.h" |
45 #include "core/html/forms/FormController.h" | 45 #include "core/html/forms/FormController.h" |
46 #include "core/html/parser/HTMLParserIdioms.h" | 46 #include "core/html/parser/HTMLParserIdioms.h" |
47 #include "core/html/shadow/ShadowElementNames.h" | 47 #include "core/html/shadow/ShadowElementNames.h" |
48 #include "core/html/shadow/TextControlInnerElements.h" | 48 #include "core/html/shadow/TextControlInnerElements.h" |
| 49 #include "core/layout/LayoutTextControlMultiLine.h" |
49 #include "core/page/Chrome.h" | 50 #include "core/page/Chrome.h" |
50 #include "core/page/ChromeClient.h" | 51 #include "core/page/ChromeClient.h" |
51 #include "core/rendering/RenderTextControlMultiLine.h" | |
52 #include "platform/text/PlatformLocale.h" | 52 #include "platform/text/PlatformLocale.h" |
53 #include "wtf/StdLibExtras.h" | 53 #include "wtf/StdLibExtras.h" |
54 #include "wtf/text/StringBuilder.h" | 54 #include "wtf/text/StringBuilder.h" |
55 | 55 |
56 namespace blink { | 56 namespace blink { |
57 | 57 |
58 using namespace HTMLNames; | 58 using namespace HTMLNames; |
59 | 59 |
60 static const int defaultRows = 2; | 60 static const int defaultRows = 2; |
61 static const int defaultCols = 20; | 61 static const int defaultCols = 20; |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 } else if (name == maxlengthAttr) { | 193 } else if (name == maxlengthAttr) { |
194 setNeedsValidityCheck(); | 194 setNeedsValidityCheck(); |
195 } else if (name == minlengthAttr) { | 195 } else if (name == minlengthAttr) { |
196 setNeedsValidityCheck(); | 196 setNeedsValidityCheck(); |
197 } else | 197 } else |
198 HTMLTextFormControlElement::parseAttribute(name, value); | 198 HTMLTextFormControlElement::parseAttribute(name, value); |
199 } | 199 } |
200 | 200 |
201 LayoutObject* HTMLTextAreaElement::createRenderer(const LayoutStyle&) | 201 LayoutObject* HTMLTextAreaElement::createRenderer(const LayoutStyle&) |
202 { | 202 { |
203 return new RenderTextControlMultiLine(this); | 203 return new LayoutTextControlMultiLine(this); |
204 } | 204 } |
205 | 205 |
206 bool HTMLTextAreaElement::appendFormData(FormDataList& encoding, bool) | 206 bool HTMLTextAreaElement::appendFormData(FormDataList& encoding, bool) |
207 { | 207 { |
208 if (name().isEmpty()) | 208 if (name().isEmpty()) |
209 return false; | 209 return false; |
210 | 210 |
211 document().updateLayout(); | 211 document().updateLayout(); |
212 | 212 |
213 const String& text = (m_wrap == HardWrap) ? valueWithHardLineBreaks() : valu
e(); | 213 const String& text = (m_wrap == HardWrap) ? valueWithHardLineBreaks() : valu
e(); |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 { | 626 { |
627 return true; | 627 return true; |
628 } | 628 } |
629 | 629 |
630 bool HTMLTextAreaElement::supportsAutofocus() const | 630 bool HTMLTextAreaElement::supportsAutofocus() const |
631 { | 631 { |
632 return true; | 632 return true; |
633 } | 633 } |
634 | 634 |
635 } | 635 } |
OLD | NEW |