Web Inspector: do not issue attributes modified event if actual values were not changed.
authorpfeldman@chromium.org <pfeldman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 30 Mar 2012 15:44:38 +0000 (15:44 +0000)
committerpfeldman@chromium.org <pfeldman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 30 Mar 2012 15:44:38 +0000 (15:44 +0000)
commit7ae36790a9451fcd62b2b5d08e38aed59d8b3c98
treeebd2fc21544ed84931736682fd4f9ffa46ed31d5
parent2ade0c7ce42eb1eaf031adb5473a2125f7854268
Web Inspector: do not issue attributes modified event if actual values were not changed.
https://bugs.webkit.org/show_bug.cgi?id=82726

Reviewed by Yury Semikhatsky.

Source/WebCore:

When style attribute is invalidated, we re-fetch the attributes values. There is no
point in further dispatching attrs modified event if model stays the same.

Test: inspector/elements/edit-style-attribute.html

* inspector/front-end/DOMAgent.js:
(WebInspector.DOMNode.prototype._setAttributesPayload):
(WebInspector.DOMAgent.prototype._loadNodeAttributes):

LayoutTests:

* inspector/elements/edit-style-attribute-expected.txt: Added.
* inspector/elements/edit-style-attribute.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112668 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/inspector/elements/edit-style-attribute-expected.txt [new file with mode: 0644]
LayoutTests/inspector/elements/edit-style-attribute.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/inspector/front-end/DOMAgent.js