Title: [96589] trunk/Source/WebCore
Revision
96589
Author
[email protected]
Date
2011-10-04 07:09:06 -0700 (Tue, 04 Oct 2011)

Log Message

2011-10-04  Andrey Kosyakov  <[email protected]>

        Web Inspector: [Extensions API] extension panel's toolbar icon is incorrect when inspector window is docked
        https://bugs.webkit.org/show_bug.cgi?id=69336

        Reviewed by Pavel Feldman.

        * inspector/front-end/ExtensionPanel.js:
        (WebInspector.ExtensionPanel):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (96588 => 96589)


--- trunk/Source/WebCore/ChangeLog	2011-10-04 13:24:01 UTC (rev 96588)
+++ trunk/Source/WebCore/ChangeLog	2011-10-04 14:09:06 UTC (rev 96589)
@@ -1,3 +1,13 @@
+2011-10-04  Andrey Kosyakov  <[email protected]>
+
+        Web Inspector: [Extensions API] extension panel's toolbar icon is incorrect when inspector window is docked
+        https://bugs.webkit.org/show_bug.cgi?id=69336
+
+        Reviewed by Pavel Feldman.
+
+        * inspector/front-end/ExtensionPanel.js:
+        (WebInspector.ExtensionPanel):
+
 2011-10-04  Pavel Podivilov  <[email protected]>
 
         Web Inspector: update call frame location when source mapping is changed.

Modified: trunk/Source/WebCore/inspector/front-end/ExtensionPanel.js (96588 => 96589)


--- trunk/Source/WebCore/inspector/front-end/ExtensionPanel.js	2011-10-04 13:24:01 UTC (rev 96588)
+++ trunk/Source/WebCore/inspector/front-end/ExtensionPanel.js	2011-10-04 14:09:06 UTC (rev 96589)
@@ -28,11 +28,13 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-WebInspector.ExtensionPanel = function(id, label, iconURL, options)
+WebInspector.ExtensionPanel = function(id, label, iconURL)
 {
     this._toolbarItemLabel = label;
-    if (iconURL)
+    if (iconURL) {
         this._addStyleRule(".toolbar-item." + id + " .toolbar-icon", "background-image: url(" + iconURL + ");");
+        this._addStyleRule(".toolbar-small .toolbar-item." + id + " .toolbar-icon", "background-position-x: -32px;");
+    }
     WebInspector.Panel.call(this, id);
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to