/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "nsISupports.idl" interface nsIArray; interface nsIArrayExtensions; interface nsIDOMCharacterData; interface nsIDOMElement; interface nsIDOMDocument; interface nsIDOMCSSRule; interface nsIDOMCSSStyleRule; interface nsIDOMNode; interface nsIDOMNodeList; interface nsIDOMFontFaceList; interface nsIDOMRange; interface nsIDOMCSSStyleSheet; [scriptable, uuid(362e98c3-82c2-4ad8-8dcb-00e8e4eab497)] interface inIDOMUtils : nsISupports { // CSS utilities void getAllStyleSheets (in nsIDOMDocument aDoc, [optional] out unsigned long aLength, [array, size_is (aLength), retval] out nsISupports aSheets); nsIArrayExtensions getCSSStyleRules(in nsIDOMElement aElement, [optional] in DOMString aPseudo); /** * Get the line number of a rule. * * @param nsIDOMCSSRule aRule The rule. * @return The rule's line number. Line numbers are 1-based. */ unsigned long getRuleLine(in nsIDOMCSSRule aRule); /** * Get the column number of a rule. * * @param nsIDOMCSSRule aRule The rule. * @return The rule's column number. Column numbers are 1-based. */ unsigned long getRuleColumn(in nsIDOMCSSRule aRule); /** * Like getRuleLine, but if the rule is in a