Web Inspector: Support smart-pasting in the Rules sidebar panel
[WebKit-https.git] / Source / WebInspectorUI / ChangeLog
index c9598a1..fd429ef 100644 (file)
@@ -1,3 +1,25 @@
+2015-07-30  Devin Rousso  <drousso@apple.com>
+
+        Web Inspector: Support smart-pasting in the Rules sidebar panel
+        https://bugs.webkit.org/show_bug.cgi?id=147362
+
+        Reviewed by Timothy Hatcher.
+
+        When pasting over the selector, if the pasted text matches CSS rule
+        formatting, replace the selected rule with the selector and text in
+        the pasted data.
+
+        * UserInterface/Models/DOMNodeStyles.js:
+        (WebInspector.DOMNodeStyles.prototype.changeRule.changeCompleted):
+        (WebInspector.DOMNodeStyles.prototype.changeRule.styleChanged):
+        (WebInspector.DOMNodeStyles.prototype.changeRule.changeText):
+        (WebInspector.DOMNodeStyles.prototype.changeRule.ruleSelectorChanged):
+        (WebInspector.DOMNodeStyles.prototype.changeRule):
+        * UserInterface/Views/CSSStyleDeclarationSection.js:
+        (WebInspector.CSSStyleDeclarationSection.prototype._handleSelectorPaste.parseTextForRule):
+        (WebInspector.CSSStyleDeclarationSection.prototype._handleSelectorPaste):
+        (WebInspector.CSSStyleDeclarationSection):
+
 2015-07-30  Matt Baker  <mattbaker@apple.com>
 
         Web Inspector: Fix typo in frame duration filtering console.assert message