Name Description Size
moz.build 455
style-utils.js Helper function for getting an image preview of the given font. @param font {string} Name of font to preview @param doc {Document} Document to use to render font @param options {object} Object with options 'previewText' and 'previewFontSize' @return {object} An object with the following properties: - dataUrl {string}: The data URI of the font preview image - size {Number}: The optimal width of preview image - ctx {CanvasRenderingContext2D}: The canvas context (returned for tests) 7362
stylesheet-utils.js For imported stylesheets, `ownerNode` is null. To resolve the ownerNode for an imported stylesheet, loop on `parentStylesheet` until we reach the topmost stylesheet, which should have a valid ownerNode. Constructable stylesheets do not have an owner node and this method will return null. @param {StyleSheet} The stylesheet for which we want to retrieve the ownerNode. @return {DOMNode|null} The ownerNode or null for constructable stylesheets. 4830
stylesheets-manager.js Manage stylesheets related to a given Target Actor. @fires stylesheet-updated: emitted when there was changes in a stylesheet First arg is an object with the following properties: - resourceId {String}: The id that was assigned to the stylesheet - updateKind {String}: Which kind of update it is ("style-applied", "at-rules-changed", "matches-change", "property-change") - updates {Object}: The update data 34787