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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 FormControlState HTMLTextAreaElement::saveFormControlState() const | 122 FormControlState HTMLTextAreaElement::saveFormControlState() const |
123 { | 123 { |
124 return m_isDirty ? FormControlState(value()) : FormControlState(); | 124 return m_isDirty ? FormControlState(value()) : FormControlState(); |
125 } | 125 } |
126 | 126 |
127 void HTMLTextAreaElement::restoreFormControlState(const FormControlState& state) | 127 void HTMLTextAreaElement::restoreFormControlState(const FormControlState& state) |
128 { | 128 { |
129 setValue(state[0]); | 129 setValue(state[0]); |
130 } | 130 } |
131 | 131 |
132 void HTMLTextAreaElement::childrenChanged(bool changedByParser, Node* beforeChan
ge, Node* afterChange, int childCountDelta) | 132 void HTMLTextAreaElement::childrenChanged(bool changedByParser, const Handle<Nod
e>& beforeChange, const Handle<Node>& afterChange, int childCountDelta) |
133 { | 133 { |
134 HTMLElement::childrenChanged(changedByParser, beforeChange, afterChange, chi
ldCountDelta); | 134 HTMLElement::childrenChanged(changedByParser, beforeChange, afterChange, chi
ldCountDelta); |
135 setLastChangeWasNotUserEdit(); | 135 setLastChangeWasNotUserEdit(); |
136 if (m_isDirty) | 136 if (m_isDirty) |
137 setInnerTextValue(value()); | 137 setInnerTextValue(value()); |
138 else | 138 else |
139 setNonDirtyValue(defaultValue()); | 139 setNonDirtyValue(defaultValue()); |
140 } | 140 } |
141 | 141 |
142 bool HTMLTextAreaElement::isPresentationAttribute(const QualifiedName& name) con
st | 142 bool HTMLTextAreaElement::isPresentationAttribute(const QualifiedName& name) con
st |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 fixPlaceholderRenderer(m_placeholder, innerTextElement()); | 562 fixPlaceholderRenderer(m_placeholder, innerTextElement()); |
563 } | 563 } |
564 | 564 |
565 void HTMLTextAreaElement::accept(Visitor* visitor) const | 565 void HTMLTextAreaElement::accept(Visitor* visitor) const |
566 { | 566 { |
567 visitor->visit(m_placeholder); | 567 visitor->visit(m_placeholder); |
568 HTMLTextFormControlElement::accept(visitor); | 568 HTMLTextFormControlElement::accept(visitor); |
569 } | 569 } |
570 | 570 |
571 } | 571 } |
OLD | NEW |