| Index: Source/core/inspector/DOMPatchSupport.cpp
|
| diff --git a/Source/core/inspector/DOMPatchSupport.cpp b/Source/core/inspector/DOMPatchSupport.cpp
|
| index eaaa8ed7487f2b717c3528437e4b0041af7ec6f7..39fb7cf4babb1d1d436517d57fc478843f15dbeb 100644
|
| --- a/Source/core/inspector/DOMPatchSupport.cpp
|
| +++ b/Source/core/inspector/DOMPatchSupport.cpp
|
| @@ -185,8 +185,8 @@ bool DOMPatchSupport::innerPatchNode(Digest* oldDigest, Digest* newDigest, Excep
|
| // FIXME: Create a function in Element for removing all properties. Take in account whether did/willModifyAttribute are important.
|
| if (oldElement->hasAttributesWithoutUpdate()) {
|
| while (oldElement->attributeCount()) {
|
| - const Attribute* attribute = oldElement->attributeItem(0);
|
| - if (!m_domEditor->removeAttribute(oldElement, attribute->localName(), exceptionState))
|
| + const Attribute& attribute = oldElement->attributeItem(0);
|
| + if (!m_domEditor->removeAttribute(oldElement, attribute.localName(), exceptionState))
|
| return false;
|
| }
|
| }
|
| @@ -195,8 +195,8 @@ bool DOMPatchSupport::innerPatchNode(Digest* oldDigest, Digest* newDigest, Excep
|
| if (newElement->hasAttributesWithoutUpdate()) {
|
| size_t numAttrs = newElement->attributeCount();
|
| for (size_t i = 0; i < numAttrs; ++i) {
|
| - const Attribute* attribute = newElement->attributeItem(i);
|
| - if (!m_domEditor->setAttribute(oldElement, attribute->name().localName(), attribute->value(), exceptionState))
|
| + const Attribute& attribute = newElement->attributeItem(i);
|
| + if (!m_domEditor->setAttribute(oldElement, attribute.name().localName(), attribute.value(), exceptionState))
|
| return false;
|
| }
|
| }
|
| @@ -428,9 +428,9 @@ PassOwnPtr<DOMPatchSupport::Digest> DOMPatchSupport::createDigest(Node* node, Un
|
| size_t numAttrs = element->attributeCount();
|
| SHA1 attrsSHA1;
|
| for (size_t i = 0; i < numAttrs; ++i) {
|
| - const Attribute* attribute = element->attributeItem(i);
|
| - addStringToSHA1(attrsSHA1, attribute->name().toString());
|
| - addStringToSHA1(attrsSHA1, attribute->value());
|
| + const Attribute& attribute = element->attributeItem(i);
|
| + addStringToSHA1(attrsSHA1, attribute.name().toString());
|
| + addStringToSHA1(attrsSHA1, attribute.value());
|
| }
|
| Vector<uint8_t, 20> attrsHash;
|
| attrsSHA1.computeHash(attrsHash);
|
|
|