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 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2012 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2012 Apple Inc. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
134 { | 134 { |
135 if (m_element) | 135 if (m_element) |
136 m_element->willModifyAttribute(qualifiedName(), this->value(), value); | 136 m_element->willModifyAttribute(qualifiedName(), this->value(), value); |
137 | 137 |
138 setValue(value); | 138 setValue(value); |
139 | 139 |
140 if (m_element) | 140 if (m_element) |
141 m_element->didModifyAttribute(qualifiedName(), value); | 141 m_element->didModifyAttribute(qualifiedName(), value); |
142 } | 142 } |
143 | 143 |
144 void Attr::setNodeValue(const String& v) | 144 void Attr::setNodeValue(const String& v) |
eseidel
2013/12/15 16:51:26
Does this eventually change to AtomicString too?
Inactive
2013/12/16 14:26:27
The reason I did not update setNodeValue() to take
eseidel
2013/12/30 17:19:27
But why are values atomic in the first place? Wha
Inactive
2013/12/30 19:53:34
Node values are not atomic, they are Strings and I
| |
145 { | 145 { |
146 setValue(v, IGNORE_EXCEPTION); | 146 setValue(AtomicString(v), IGNORE_EXCEPTION); |
147 } | 147 } |
148 | 148 |
149 PassRefPtr<Node> Attr::cloneNode(bool /*deep*/) | 149 PassRefPtr<Node> Attr::cloneNode(bool /*deep*/) |
150 { | 150 { |
151 RefPtr<Attr> clone = adoptRef(new Attr(document(), qualifiedName(), value()) ); | 151 RefPtr<Attr> clone = adoptRef(new Attr(document(), qualifiedName(), value()) ); |
152 cloneChildNodes(clone.get()); | 152 cloneChildNodes(clone.get()); |
153 return clone.release(); | 153 return clone.release(); |
154 } | 154 } |
155 | 155 |
156 // DOM Section 1.1.1 | 156 // DOM Section 1.1.1 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
213 } | 213 } |
214 | 214 |
215 void Attr::attachToElement(Element* element) | 215 void Attr::attachToElement(Element* element) |
216 { | 216 { |
217 ASSERT(!m_element); | 217 ASSERT(!m_element); |
218 m_element = element; | 218 m_element = element; |
219 m_standaloneValue = nullAtom; | 219 m_standaloneValue = nullAtom; |
220 } | 220 } |
221 | 221 |
222 } | 222 } |
OLD | NEW |