Web Inspector: Editing non-inspector-stylesheet rule selectors fails after the first...
authordrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Jul 2015 18:48:17 +0000 (18:48 +0000)
committerdrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Jul 2015 18:48:17 +0000 (18:48 +0000)
commitf53af1fda2af7cc8cd72f3a4e41389aa51e52f9d
treead492244e92217ae72c79ace35abf195a3cb21f3
parentae7632b3b70ea25e95a9d4cfcb6f8efccc675aa4
Web Inspector: Editing non-inspector-stylesheet rule selectors fails after the first change
https://bugs.webkit.org/show_bug.cgi?id=147229

Reviewed by Timothy Hatcher.

Source/WebCore:

Test: inspector/css/modify-rule-selector.html

* inspector/InspectorStyleSheet.cpp:
(WebCore::InspectorStyleSheet::setRuleSelector):
Now checks to see if the stylesheet is not mutated before making the change to the
rule's selector, and if so mark it as not mutated to allow future edits.

LayoutTests:

* inspector/css/modify-rule-selector-expected.txt: Added.
* inspector/css/modify-rule-selector.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@187352 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/inspector/css/modify-rule-selector-expected.txt [new file with mode: 0644]
LayoutTests/inspector/css/modify-rule-selector.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/inspector/InspectorStyleSheet.cpp