| Index: Source/core/dom/Attr.cpp
|
| diff --git a/Source/core/dom/Attr.cpp b/Source/core/dom/Attr.cpp
|
| index bf990a3aa22f46677fe0ffb861c39a491175c871..0930c00d9896faf5fd5c1fb42a5343cee83191c8 100644
|
| --- a/Source/core/dom/Attr.cpp
|
| +++ b/Source/core/dom/Attr.cpp
|
| @@ -38,7 +38,7 @@ namespace WebCore {
|
| using namespace HTMLNames;
|
|
|
| Attr::Attr(Element* element, const QualifiedName& name)
|
| - : ContainerNode(element->document())
|
| + : ContainerNode(&element->document())
|
| , m_element(element)
|
| , m_name(name)
|
| , m_ignoreChildrenChanged(0)
|
| @@ -80,7 +80,7 @@ void Attr::createTextChild()
|
| {
|
| ASSERT(refCount());
|
| if (!value().isEmpty()) {
|
| - RefPtr<Text> textNode = document()->createTextNode(value().string());
|
| + RefPtr<Text> textNode = document().createTextNode(value().string());
|
|
|
| // This does everything appendChild() would do in this situation (assuming m_ignoreChildrenChanged was set),
|
| // but much more efficiently.
|
| @@ -143,7 +143,7 @@ void Attr::setNodeValue(const String& v)
|
|
|
| PassRefPtr<Node> Attr::cloneNode(bool /*deep*/)
|
| {
|
| - RefPtr<Attr> clone = adoptRef(new Attr(document(), qualifiedName(), value()));
|
| + RefPtr<Attr> clone = adoptRef(new Attr(&document(), qualifiedName(), value()));
|
| cloneChildNodes(clone.get());
|
| return clone.release();
|
| }
|
| @@ -182,7 +182,7 @@ void Attr::childrenChanged(bool, Node*, Node*, int)
|
|
|
| bool Attr::isId() const
|
| {
|
| - return qualifiedName().matches(document()->idAttributeName());
|
| + return qualifiedName().matches(document().idAttributeName());
|
| }
|
|
|
| const AtomicString& Attr::value() const
|
|
|