src/LiveDevelopment/Agents/CSSAgent.js
function styleForURL(url) {
        var styleSheetId, styles = {};
        url = _canonicalize(url);
        for (styleSheetId in _styleSheetDetails) {
            if (_styleSheetDetails[styleSheetId].canonicalizedURL === url) {
                styles[styleSheetId] = _styleSheetDetails[styleSheetId];
            }
        }
        return styles;
    }
function styleForURL(url) {
        var styleSheetId, styles = {};
        url = _canonicalize(url);
        for (styleSheetId in _styleSheetDetails) {
            if (_styleSheetDetails[styleSheetId].canonicalizedURL === url) {
                styles[styleSheetId] = _styleSheetDetails[styleSheetId];
            }
        }
        return styles;
    }
function styleForURL ( url ) { var styleSheetId , styles = { } ; url = _canonicalize ( url ) ; for ( styleSheetId in _styleSheetDetails ) { if ( _styleSheetDetails [ styleSheetId ] . canonicalizedURL === url ) { styles [ styleSheetId ] = _styleSheetDetails [ styleSheetId ] ; } } return styles ; }
Get the style sheets for a url
@param {string} url
@return {Object.<string, CSSStyleSheetHeader>}
Get the style sheets for a url