Changeset 74038 in webkit
- Timestamp:
- Dec 14, 2010 10:06:03 AM (13 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r74035 r74038 1 2010-12-14 Alexander Pavlov <apavlov@chromium.org> 2 3 Reviewed by Yury Semikhatsky. 4 5 Web Inspector: Rule data not updated in Styles pane after stylesheet gets reverted 6 https://bugs.webkit.org/show_bug.cgi?id=51034 7 8 * inspector/front-end/CSSStyleModel.js: 9 (WebInspector.CSSStyleModel.prototype._onRevert): 10 * inspector/front-end/ElementsPanel.js: 11 (WebInspector.ElementsPanel): 12 (WebInspector.ElementsPanel.prototype._metricsPaneEdited): 13 (WebInspector.ElementsPanel.prototype._stylesPaneEdited): 14 (WebInspector.ElementsPanel.prototype._styleSheetChanged): 15 1 16 2010-12-14 Andreas Kling <andreas.kling@nokia.com> 2 17 -
trunk/WebCore/inspector/front-end/CSSStyleModel.js
r72938 r74038 175 175 { 176 176 this._styleSheetChanged(styleSheetId, true); 177 this.dispatchEventToListeners("stylesheet changed"); 177 178 } 178 179 InspectorBackend.setStyleSheetText2(styleSheetId, contentToRevertTo, callback.bind(this)); 179 180 } 180 181 } 182 183 WebInspector.CSSStyleModel.prototype.__proto__ = WebInspector.Object.prototype; 181 184 182 185 WebInspector.CSSStyleDeclaration = function(payload) -
trunk/WebCore/inspector/front-end/ElementsPanel.js
r72733 r74038 89 89 this.sidebarPanes.styles.addEventListener("style property toggled", this._stylesPaneEdited, this); 90 90 this.sidebarPanes.metrics.addEventListener("metrics edited", this._metricsPaneEdited, this); 91 WebInspector.cssModel.addEventListener("stylesheet changed", this._styleSheetChanged, this); 91 92 92 93 this.sidebarElement = document.createElement("div"); … … 446 447 }, 447 448 448 _ stylesPaneEdited: function()449 _metricsPaneEdited: function() 449 450 { 450 451 this.sidebarPanes.metrics.needsUpdate = true; … … 452 453 }, 453 454 454 _ metricsPaneEdited: function()455 _stylesPaneEdited: function() 455 456 { 456 457 this.sidebarPanes.styles.needsUpdate = true; 457 458 this.updateStyles(true); 459 }, 460 461 _styleSheetChanged: function() 462 { 463 this._stylesPaneEdited(); 458 464 }, 459 465
Note: See TracChangeset
for help on using the changeset viewer.