| Index: Source/core/dom/Element.cpp
|
| diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
|
| index 6cb67b9fa1bd8983a19a7548382bfb5bcafcd199..ca4da46f8bb878c2fb1bed29ef2d031aec7408e2 100644
|
| --- a/Source/core/dom/Element.cpp
|
| +++ b/Source/core/dom/Element.cpp
|
| @@ -336,7 +336,7 @@ PassRefPtr<Attr> Element::detachAttribute(size_t index)
|
| if (attrNode)
|
| detachAttrNodeAtIndex(attrNode.get(), index);
|
| else {
|
| - attrNode = Attr::create(&document(), attribute->name(), attribute->value());
|
| + attrNode = Attr::create(document(), attribute->name(), attribute->value());
|
| removeAttributeInternal(index, NotInSynchronizationOfLazyAttribute);
|
| }
|
| return attrNode.release();
|
| @@ -1842,7 +1842,7 @@ PassRefPtr<Attr> Element::setAttributeNode(Attr* attrNode, ExceptionState& es)
|
| if (oldAttrNode)
|
| detachAttrNodeFromElementWithValue(oldAttrNode.get(), elementData->attributeItem(index)->value());
|
| else
|
| - oldAttrNode = Attr::create(&document(), attrNode->qualifiedName(), elementData->attributeItem(index)->value());
|
| + oldAttrNode = Attr::create(document(), attrNode->qualifiedName(), elementData->attributeItem(index)->value());
|
| }
|
|
|
| setAttributeInternal(index, attrNode->qualifiedName(), attrNode->value(), NotInSynchronizationOfLazyAttribute);
|
| @@ -2963,7 +2963,7 @@ PassRefPtr<Attr> Element::ensureAttr(const QualifiedName& name)
|
| AttrNodeList* attrNodeList = ensureAttrNodeListForElement(this);
|
| RefPtr<Attr> attrNode = findAttrNodeInList(attrNodeList, name);
|
| if (!attrNode) {
|
| - attrNode = Attr::create(this, name);
|
| + attrNode = Attr::create(*this, name);
|
| treeScope().adoptIfNeeded(attrNode.get());
|
| attrNodeList->append(attrNode);
|
| }
|
|
|