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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 if (name().isEmpty()) | 205 if (name().isEmpty()) |
206 return false; | 206 return false; |
207 | 207 |
208 document().updateLayout(); | 208 document().updateLayout(); |
209 | 209 |
210 const String& text = (m_wrap == HardWrap) ? valueWithHardLineBreaks() : valu
e(); | 210 const String& text = (m_wrap == HardWrap) ? valueWithHardLineBreaks() : valu
e(); |
211 encoding.appendData(name(), text); | 211 encoding.appendData(name(), text); |
212 | 212 |
213 const AtomicString& dirnameAttrValue = fastGetAttribute(dirnameAttr); | 213 const AtomicString& dirnameAttrValue = fastGetAttribute(dirnameAttr); |
214 if (!dirnameAttrValue.isNull()) | 214 if (!dirnameAttrValue.isNull()) |
215 encoding.appendData(dirnameAttrValue, directionForFormData()); | 215 encoding.appendData(dirnameAttrValue, direction()); |
216 return true; | 216 return true; |
217 } | 217 } |
218 | 218 |
219 void HTMLTextAreaElement::resetImpl() | 219 void HTMLTextAreaElement::resetImpl() |
220 { | 220 { |
221 setNonDirtyValue(defaultValue()); | 221 setNonDirtyValue(defaultValue()); |
222 } | 222 } |
223 | 223 |
224 bool HTMLTextAreaElement::hasCustomFocusLogic() const | 224 bool HTMLTextAreaElement::hasCustomFocusLogic() const |
225 { | 225 { |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 { | 564 { |
565 return true; | 565 return true; |
566 } | 566 } |
567 | 567 |
568 bool HTMLTextAreaElement::supportsAutofocus() const | 568 bool HTMLTextAreaElement::supportsAutofocus() const |
569 { | 569 { |
570 return true; | 570 return true; |
571 } | 571 } |
572 | 572 |
573 } | 573 } |
OLD | NEW |