[Pkg-mozext-commits] [firebug] 48/68: Show @-moz-document rules inside the DOM panel

David Prévot taffit at moszumanska.debian.org
Mon Mar 31 22:45:53 UTC 2014


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

taffit pushed a commit to tag fbtest-1.11.4
in repository firebug.

commit 7cc41a91e5b89df5a2c782f0007c5200a2292c23
Author: Sebastian Zartner <sebastianzartner at gmail.com>
Date:   Thu May 2 02:01:03 2013 +0200

    Show @-moz-document rules inside the DOM panel
---
 extension/content/firebug/chrome/reps.js | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/extension/content/firebug/chrome/reps.js b/extension/content/firebug/chrome/reps.js
index bce38d8..054336d 100644
--- a/extension/content/firebug/chrome/reps.js
+++ b/extension/content/firebug/chrome/reps.js
@@ -1625,6 +1625,11 @@ FirebugReps.CSSRule = domplate(Firebug.Rep,
         {
             return "CSSStyleRule";
         }
+        else if ((window.CSSMozDocumentRule && rule instanceof window.CSSMozDocumentRule) ||
+            rule instanceof window.CSSDocumentRule)
+        {
+            return "CSSDocumentRule";
+        }
         else if (rule instanceof window.CSSFontFaceRule)
         {
             return "CSSFontFaceRule";
@@ -1669,6 +1674,11 @@ FirebugReps.CSSRule = domplate(Firebug.Rep,
         {
             return rule.selectorText;
         }
+        else if ((window.CSSMozDocumentRule && rule instanceof window.CSSMozDocumentRule) ||
+            rule instanceof window.CSSDocumentRule)
+        {
+            return rule.conditionText;
+        }
         else if (rule instanceof window.CSSFontFaceRule)
         {
             return rule.style.getPropertyValue("font-family");

-- 
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