MCPcopy Create free account
hub / github.com/Stranger6667/css-inline / add_linked_stylesheet

Method add_linked_stylesheet

css-inline/src/html/document.rs:136–138  ·  view source on GitHub ↗

Add a new linked stylesheet location.

(&mut self, node: NodeId)

Source from the content-addressed store, hash-verified

134
135 /// Add a new linked stylesheet location.
136 pub(super) fn add_linked_stylesheet(&mut self, node: NodeId) {
137 self.linked_stylesheets.push(node);
138 }
139
140 /// Add a new node to the nodes vector, returning its index.
141 pub(super) fn push_node(&mut self, node: NodeData) -> NodeId {

Callers 1

create_elementMethod · 0.80

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected