[Pkg-mozext-commits] [firebug] 03/16: Preview of 'currentcolor' within gradients is incorrect in Style side panel (issue 7776)

David Prévot taffit at moszumanska.debian.org
Fri Apr 10 02:19:01 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository firebug.

commit 9b297010f101ef64e7ee560155db036d338333e9
Author: SebastianZ <sebastianzartner at gmail.com>
Date:   Mon Mar 16 09:43:50 2015 +0100

    Preview of 'currentcolor' within gradients is incorrect in Style side
    panel (issue 7776)
---
 extension/content/firebug/css/cssPanel.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/extension/content/firebug/css/cssPanel.js b/extension/content/firebug/css/cssPanel.js
index b6e9023..62bc174 100644
--- a/extension/content/firebug/css/cssPanel.js
+++ b/extension/content/firebug/css/cssPanel.js
@@ -1450,9 +1450,10 @@ Firebug.CSSStyleSheetPanel.prototype = Obj.extend(Panel,
             if (!cssValueInfo)
                 return false;
 
-            if (cssValueInfo.value === "currentcolor")
+            if (cssValueInfo.type === "colorKeyword" || cssValueInfo.type === "gradient")
             {
-                cssValueInfo.value = this.getCurrentColor();
+                var currentColor = this.getCurrentColor();
+                cssValueInfo.value = cssValueInfo.value.replace(/currentcolor/gi, currentColor);
                 if (cssValueInfo.value === "")
                     return false;
             }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firebug.git



More information about the Pkg-mozext-commits mailing list