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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 LayoutObject* HTMLTextAreaElement::createLayoutObject(const ComputedStyle&) | 203 LayoutObject* HTMLTextAreaElement::createLayoutObject(const ComputedStyle&) |
204 { | 204 { |
205 return new LayoutTextControlMultiLine(this); | 205 return new LayoutTextControlMultiLine(this); |
206 } | 206 } |
207 | 207 |
208 void HTMLTextAreaElement::appendToFormData(FormData& formData) | 208 void HTMLTextAreaElement::appendToFormData(FormData& formData) |
209 { | 209 { |
210 if (name().isEmpty()) | 210 if (name().isEmpty()) |
211 return; | 211 return; |
212 | 212 |
213 document().updateLayout(); | 213 document().updateStyleAndLayout(); |
214 | 214 |
215 const String& text = (m_wrap == HardWrap) ? valueWithHardLineBreaks() : valu
e(); | 215 const String& text = (m_wrap == HardWrap) ? valueWithHardLineBreaks() : valu
e(); |
216 formData.append(name(), text); | 216 formData.append(name(), text); |
217 | 217 |
218 const AtomicString& dirnameAttrValue = fastGetAttribute(dirnameAttr); | 218 const AtomicString& dirnameAttrValue = fastGetAttribute(dirnameAttr); |
219 if (!dirnameAttrValue.isNull()) | 219 if (!dirnameAttrValue.isNull()) |
220 formData.append(dirnameAttrValue, directionForFormData()); | 220 formData.append(dirnameAttrValue, directionForFormData()); |
221 } | 221 } |
222 | 222 |
223 void HTMLTextAreaElement::resetImpl() | 223 void HTMLTextAreaElement::resetImpl() |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
670 | 670 |
671 void HTMLTextAreaElement::copyNonAttributePropertiesFromElement(const Element& s
ource) | 671 void HTMLTextAreaElement::copyNonAttributePropertiesFromElement(const Element& s
ource) |
672 { | 672 { |
673 const HTMLTextAreaElement& sourceElement = static_cast<const HTMLTextAreaEle
ment&>(source); | 673 const HTMLTextAreaElement& sourceElement = static_cast<const HTMLTextAreaEle
ment&>(source); |
674 setValueCommon(sourceElement.value(), DispatchNoEvent, SetSeletion); | 674 setValueCommon(sourceElement.value(), DispatchNoEvent, SetSeletion); |
675 m_isDirty = sourceElement.m_isDirty; | 675 m_isDirty = sourceElement.m_isDirty; |
676 HTMLTextFormControlElement::copyNonAttributePropertiesFromElement(source); | 676 HTMLTextFormControlElement::copyNonAttributePropertiesFromElement(source); |
677 } | 677 } |
678 | 678 |
679 } // namespace blink | 679 } // namespace blink |
OLD | NEW |