Lines Matching refs:root
14 function parse_style_node($root, &$pipeline) { argument
24 if ($root->has_attribute("media")) {
26 $media_list = preg_split("/\s*,\s*/",trim($root->get_attribute("media")));
40 $GLOBALS['g_stylesheet_title'] = $root->get_attribute("title");
43 …if (!$root->has_attribute("title") || $root->get_attribute("title") === $GLOBALS['g_stylesheet_tit…
47 $content = trim($root->get_content());
54 function scan_styles($root, &$pipeline) { argument
55 switch ($root->node_type()) {
57 $tagname = strtolower($root->tagname());
62 $this->parse_style_node($root, $pipeline);
67 $rel = strtolower($root->get_attribute("rel"));
69 $type = strtolower($root->get_attribute("type"));
70 if ($root->has_attribute("media")) {
71 $media = explode(",",$root->get_attribute("media"));
81 $src = $url_autofix->apply(trim($root->get_attribute('href')));
93 $child = $root->first_child();
239 function apply(&$root, &$state, &$pipeline) { argument
242 if (isset($this->tag_filtered[strtolower($root->tagname())])) {
243 $local_css = $this->tag_filtered[strtolower($root->tagname())];
253 if ($rule->match($root)) {
271 $rule->apply($root, $state, $pipeline);
277 function apply_pseudoelement($element_type, &$root, &$state, &$pipeline) { argument
280 if (isset($this->tag_filtered[strtolower($root->tagname())])) {
281 $local_css = $this->tag_filtered[strtolower($root->tagname())];
293 if ($rule->match($root)) {
304 $rule->apply($root, $state, $pipeline);