The goog.cssom.iframe.style.ruleSetCache_ Namespace

.getRuleSetsForDocument(doc)

Retrieves the array of css rulesets for this document. A cached version will be used when possible.

doc {Document}
The document for which to get rulesets.
returns {Array.<goog.cssom.iframe.style.CssRuleSet_>}
An array of CssRuleSet objects representing the css rule sets in the supplied document.

.loadRuleSetsForDocument(doc)

Loads ruleset definitions from a document. If the cache already has rulesets for this document the cached version will be replaced.

doc {Document}
The document from which to load rulesets.