pub struct CssStyleSheetHeaderBuilder { /* private fields */ }experimental and CSS and DOM and Page only.Implementations§
Source§impl CssStyleSheetHeaderBuilder
impl CssStyleSheetHeaderBuilder
Sourcepub fn style_sheet_id(&mut self, v: StyleSheetId) -> &mut Self
pub fn style_sheet_id(&mut self, v: StyleSheetId) -> &mut Self
The stylesheet identifier.
Sourcepub fn source_url(&mut self, v: String) -> &mut Self
pub fn source_url(&mut self, v: String) -> &mut Self
Stylesheet resource URL.
Sourcepub fn source_map_url(&mut self, v: String) -> &mut Self
pub fn source_map_url(&mut self, v: String) -> &mut Self
URL of source map associated with the stylesheet (if any).
Sourcepub fn origin(&mut self, v: StyleSheetOrigin) -> &mut Self
pub fn origin(&mut self, v: StyleSheetOrigin) -> &mut Self
Stylesheet origin.
Sourcepub fn owner_node(&mut self, v: BackendNodeId) -> &mut Self
pub fn owner_node(&mut self, v: BackendNodeId) -> &mut Self
The backend id for the owner node of the stylesheet.
Sourcepub fn has_source_url(&mut self, v: bool) -> &mut Self
pub fn has_source_url(&mut self, v: bool) -> &mut Self
Whether the sourceURL field value comes from the sourceURL comment.
Sourcepub fn is_inline(&mut self, v: bool) -> &mut Self
pub fn is_inline(&mut self, v: bool) -> &mut Self
Whether this stylesheet is created for STYLE tag by parser. This flag is not set for document.written STYLE tags.
Sourcepub fn is_mutable(&mut self, v: bool) -> &mut Self
pub fn is_mutable(&mut self, v: bool) -> &mut Self
Whether this stylesheet is mutable. Inline stylesheets become mutable after they have been modified via CSSOM API.
element's stylesheets become mutable only if DevTools modifies them. Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation.Sourcepub fn is_constructed(&mut self, v: bool) -> &mut Self
pub fn is_constructed(&mut self, v: bool) -> &mut Self
Whether this stylesheet is a constructed stylesheet (created using new CSSStyleSheet()).
Sourcepub fn start_line(&mut self, v: f64) -> &mut Self
pub fn start_line(&mut self, v: f64) -> &mut Self
Line offset of the stylesheet within the resource (zero based).
Sourcepub fn start_column(&mut self, v: f64) -> &mut Self
pub fn start_column(&mut self, v: f64) -> &mut Self
Column offset of the stylesheet within the resource (zero based).
Sourcepub fn end_line(&mut self, v: f64) -> &mut Self
pub fn end_line(&mut self, v: f64) -> &mut Self
Line offset of the end of the stylesheet within the resource (zero based).
Sourcepub fn end_column(&mut self, v: f64) -> &mut Self
pub fn end_column(&mut self, v: f64) -> &mut Self
Column offset of the end of the stylesheet within the resource (zero based).
pub fn build(&mut self) -> Result<CssStyleSheetHeader, &'static str>
Trait Implementations§
Source§impl Clone for CssStyleSheetHeaderBuilder
impl Clone for CssStyleSheetHeaderBuilder
Source§fn clone(&self) -> CssStyleSheetHeaderBuilder
fn clone(&self) -> CssStyleSheetHeaderBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more