Lines Matching refs:root

154 function execute_attrs_before($root, &$pipeline) { execute_attrs($root, '_before', $pipeline); }  argument
155 function execute_attrs_after($root, &$pipeline) { execute_attrs($root, '_after', $pipeline); } argument
156 function execute_attrs_after_styles($root, &$pipeline) { execute_attrs($root, '_after_styles', $pip… argument
158 function execute_attrs(&$root, $suffix, &$pipeline) { argument
162 if ($root->has_attribute($attr)) {
164 $fun($root, $pipeline);
168 if (array_key_exists($root->tagname(), $g_tag_attrs)) {
169 foreach ($g_tag_attrs[$root->tagname()] as $attr => $fun) {
170 if ($root->has_attribute($attr)) {
172 $fun($root, $pipeline);
181 function attr_name_before(&$root, &$pipeline) { argument
183 $handler->css($root->get_attribute('name'), $pipeline);
185 function attr_name_after_styles(&$root, &$pipeline) {}; argument
186 function attr_name_after(&$root, &$pipeline) {}; argument
189 function attr_id_before(&$root, &$pipeline) { argument
191 $handler->css($root->get_attribute('id'), $pipeline);
193 function attr_id_after_styles(&$root, &$pipeline) {}; argument
194 function attr_id_after(&$root, &$pipeline) {}; argument
198 function attr_href_before(&$root, &$pipeline) { argument
200 $handler->css($root->get_attribute('href'), $pipeline);
202 function attr_href_after_styles(&$root, &$pipeline) {}; argument
203 function attr_href_after(&$root, &$pipeline) {}; argument
206 function attr_frameborder_before(&$root, &$pipeline) { argument
210 switch ($root->get_attribute('frameborder')) {
219 function attr_frameborder_after_styles(&$root, &$pipeline) {}; argument
220 function attr_frameborder_after(&$root, &$pipeline) {}; argument
222 function attr_iframe_marginheight_before(&$root, &$pipeline) { argument
224 $handler->css((int)$root->get_attribute('marginheight').'px',$pipeline);
226 $handler->css((int)$root->get_attribute('marginheight').'px',$pipeline);
228 function attr_iframe_marginheight_after_styles(&$root, &$pipeline) {}; argument
229 function attr_iframe_marginheight_after(&$root, &$pipeline) {}; argument
231 function attr_iframe_marginwidth_before(&$root, &$pipeline) { argument
233 $handler->css((int)$root->get_attribute('marginwidth').'px',$pipeline);
235 $handler->css((int)$root->get_attribute('marginwidth').'px',$pipeline);
237 function attr_iframe_marginwidth_after_styles(&$root, &$pipeline) {}; argument
238 function attr_iframe_marginwidth_after(&$root, &$pipeline) {}; argument
242 function attr_body_text_before(&$root, &$pipeline) { argument
244 $handler->css($root->get_attribute('text'),$pipeline);
246 function attr_body_text_after_styles(&$root, &$pipeline) {}; argument
247 function attr_body_text_after(&$root, &$pipeline) {}; argument
249 function attr_body_link_before(&$root, &$pipeline) { argument
250 $color = $root->get_attribute('link');
266 function attr_body_link_after_styles(&$root, &$pipeline) {}; argument
267 function attr_body_link_after(&$root, &$pipeline) {}; argument
269 function attr_body_topmargin_before(&$root, &$pipeline) { argument
271 $handler->css((int)$root->get_attribute('topmargin').'px',$pipeline);
273 function attr_body_topmargin_after_styles(&$root, &$pipeline) {}; argument
274 function attr_body_topmargin_after(&$root, &$pipeline) {}; argument
276 function attr_body_leftmargin_before(&$root, &$pipeline) { argument
278 $handler->css((int)$root->get_attribute('leftmargin').'px',$pipeline);
280 function attr_body_leftmargin_after_styles(&$root, &$pipeline) {}; argument
281 function attr_body_leftmargin_after(&$root, &$pipeline) {}; argument
283 function attr_body_marginheight_before(&$root, &$pipeline) { argument
291 $h_bottom->css(((int)$root->get_attribute('marginheight') - $top->value).'px',$pipeline);
293 function attr_body_marginheight_after_styles(&$root, &$pipeline) {}; argument
294 function attr_body_marginheight_after(&$root, &$pipeline) {}; argument
296 function attr_body_marginwidth_before(&$root, &$pipeline) { argument
304 $h_right->css(((int)$root->get_attribute('marginwidth') - $left->value).'px',$pipeline);
306 function attr_body_marginwidth_after_styles(&$root, &$pipeline) {}; argument
307 function attr_body_marginwidth_after(&$root, &$pipeline) {}; argument
310 function attr_nowrap_before(&$root, &$pipeline) { argument
315 function attr_nowrap_after_styles(&$root, &$pipeline) {} argument
316 function attr_nowrap_after(&$root, &$pipeline) {} argument
320 function attr_hspace_before(&$root, &$pipeline) { argument
322 $handler->css((int)$root->get_attribute('hspace').'px',$pipeline);
324 $handler->css((int)$root->get_attribute('hspace').'px',$pipeline);
327 function attr_hspace_after_styles(&$root, &$pipeline) {} argument
329 function attr_hspace_after(&$root, &$pipeline) {} argument
333 function attr_vspace_before(&$root, &$pipeline) { argument
335 $handler->css((int)$root->get_attribute('vspace').'px',$pipeline);
337 $handler->css((int)$root->get_attribute('vspace').'px',$pipeline);
340 function attr_vspace_after_styles(&$root, &$pipeline) {} argument
341 function attr_vspace_after(&$root, &$pipeline) {} argument
345 function attr_background_before(&$root, &$pipeline) { argument
347 $handler->css('url('.$root->get_attribute('background').')',$pipeline);
349 function attr_background_after_styles(&$root, &$pipeline) {} argument
350 function attr_background_after(&$root, &$pipeline) {} argument
354 function attr_table_float_align_before(&$root, &$pipeline) {} argument
355 function attr_table_float_align_after_styles(&$root, &$pipeline) { argument
356 if ($root->get_attribute('align') === 'center') {
365 $float->replace($float->parse($root->get_attribute('align')),
369 function attr_table_float_align_after(&$root, &$pipeline) {} argument
371 function attr_img_align_before(&$root, &$pipeline) { argument
372 if (preg_match('/left|right/', $root->get_attribute('align'))) {
375 $float->replace($float->parse($root->get_attribute('align')),
380 $handler->replace($handler->parse($root->get_attribute('align')),
384 function attr_img_align_after_styles(&$root, &$pipeline) {} argument
385 function attr_img_align_after(&$root, &$pipeline) {} argument
387 function attr_self_align_before(&$root, &$pipeline) { argument
391 switch ($root->get_attribute('align')) {
411 function attr_self_align_after_styles(&$root, &$pipeline) {} argument
412 function attr_self_align_after(&$root, &$pipeline) {} argument
416 function attr_table_bordercolor_before(&$root, &$pipeline) { argument
417 $color = parse_color_declaration($root->get_attribute('bordercolor'));
435 function attr_table_bordercolor_after_styles(&$root, &$pipeline) { argument
440 function attr_table_bordercolor_after(&$root, &$pipeline) { argument
447 function attr_border_before(&$root, &$pipeline) { argument
448 $width = (int)$root->get_attribute('border');
467 function attr_border_after_styles(&$root, &$pipeline) {} argument
468 function attr_border_after(&$root, &$pipeline) {} argument
472 function attr_table_rules_before(&$root, &$pipeline) { argument
476 $rules = $root->get_attribute('rules');
506 function attr_table_rules_after_styles(&$root, &$pipeline) {} argument
507 function attr_table_rules_after(&$root, &$pipeline) {} argument
511 function attr_table_border_before(&$root, &$pipeline) { argument
512 $width = (int)$root->get_attribute('border');
535 function attr_table_border_after_styles(&$root, &$pipeline) {} argument
537 function attr_table_border_after(&$root, &$pipeline) { argument
543 function attr_dir_before(&$root, &$pipeline) { argument
545 switch (strtolower($root->get_attribute('dir'))) {
555 function attr_dir_after_styles(&$root, &$pipeline) {} argument
556 function attr_dir_after(&$root, &$pipeline) {} argument
559 function attr_align_before(&$root, &$pipeline) { argument
561 $handler->css($root->get_attribute('align'),$pipeline);
564 $handler->css($root->get_attribute('align'),$pipeline);
567 function attr_align_after_styles(&$root, &$pipeline) {} argument
569 function attr_align_after(&$root, &$pipeline) {} argument
573 function attr_row_valign_before(&$root, &$pipeline) { argument
575 $handler->css($root->get_attribute('valign'),$pipeline);
577 function attr_row_valign_after_styles(&$root, &$pipeline) {} argument
578 function attr_row_valign_after(&$root, &$pipeline) {} argument
581 function attr_valign_before(&$root, &$pipeline) { argument
583 $handler->css($root->get_attribute('valign'),
587 function attr_valign_after_styles(&$root, &$pipeline) {} argument
588 function attr_valign_after(&$root, &$pipeline) {} argument
592 function attr_bgcolor_before(&$root, &$pipeline) { argument
594 $handler->css($root->get_attribute('bgcolor'), $pipeline);
596 function attr_bgcolor_after_styles(&$root, &$pipeline) {} argument
597 function attr_bgcolor_after(&$root, &$pipeline) {} argument
601 function attr_width_before(&$root, &$pipeline) { argument
604 $value = $root->get_attribute('width');
610 function attr_width_after_styles(&$root, &$pipeline) {} argument
611 function attr_width_after(&$root, &$pipeline) {} argument
621 function attr_height_required_before(&$root, &$pipeline) { argument
624 $value = $root->get_attribute('height');
629 function attr_height_required_after_styles(&$root, &$pipeline) {} argument
631 function attr_height_required_after(&$root, &$pipeline) {} argument
633 function attr_height_before(&$root, &$pipeline) { argument
636 $value = $root->get_attribute('height');
641 function attr_height_after_styles(&$root, &$pipeline) {} argument
642 function attr_height_after(&$root, &$pipeline) {} argument
645 function attr_font_size_before(&$root, &$pipeline) { argument
646 $size = $root->get_attribute('size');
700 function attr_font_size_after_styles(&$root, &$pipeline) {} argument
701 function attr_font_size_after(&$root, &$pipeline) {} argument
703 function attr_font_color_before(&$root, &$pipeline) { argument
705 $handler->css($root->get_attribute('color'),$pipeline);
707 function attr_font_color_after_styles(&$root, &$pipeline) {} argument
708 function attr_font_color_after(&$root, &$pipeline) {} argument
710 function attr_font_face_before(&$root, &$pipeline) { argument
712 $handler->css($root->get_attribute('face'), $pipeline);
714 function attr_font_face_after_styles(&$root, &$pipeline) {} argument
715 function attr_font_face_after(&$root, &$pipeline) {} argument
717 function attr_form_action_before(&$root, &$pipeline) { argument
719 if ($root->has_attribute('action')) {
720 $handler->css($pipeline->guess_url($root->get_attribute('action')),$pipeline);
725 function attr_form_action_after_styles(&$root, &$pipeline) {} argument
726 function attr_form_action_after(&$root, &$pipeline) {} argument
728 function attr_input_name_before(&$root, &$pipeline) { argument
730 if ($root->has_attribute('name')) {
731 $handler->css($root->get_attribute('name'),$pipeline);
734 function attr_input_name_after_styles(&$root, &$pipeline) {} argument
735 function attr_input_name_after(&$root, &$pipeline) {} argument
737 function attr_input_size_before(&$root, &$pipeline) { argument
739 if (!$root->has_attribute('size')) {
742 $size = $root->get_attribute('size');
747 if ($root->has_attribute('type')) {
748 $type = strtolower($root->get_attribute('type'));
761 function attr_input_size_after_styles(&$root, &$pipeline) {} argument
762 function attr_input_size_after(&$root, &$pipeline) {} argument
766 function attr_cellspacing_before(&$root, &$pipeline) { argument
769 $handler->replace(Value::fromData((int)$root->get_attribute('cellspacing'), UNIT_PX),
772 function attr_cellspacing_after_styles(&$root, &$pipeline) {} argument
773 function attr_cellspacing_after(&$root, &$pipeline) {} argument
775 function attr_cellpadding_before(&$root, &$pipeline) { argument
778 $handler->replace(Value::fromData((int)$root->get_attribute('cellpadding'), UNIT_PX),
781 function attr_cellpadding_after_styles(&$root, &$pipeline) {} argument
782 function attr_cellpadding_after(&$root, &$pipeline) {} argument
785 function attr_start_before(&$root, &$pipeline) { argument
788 $handler->replace((int)$root->get_attribute('start'),
791 function attr_start_after_styles(&$root, &$pipeline) {} argument
792 function attr_start_after(&$root, &$pipeline) {} argument
805 function attr_ul_type_before(&$root, &$pipeline) { argument
806 $type = (string)$root->get_attribute('type');
822 function attr_ul_type_after_styles(&$root, &$pipeline) {} argument
823 function attr_ul_type_after(&$root, &$pipeline) {} argument
835 function attr_ol_type_before(&$root, &$pipeline) { argument
836 $type = (string)$root->get_attribute('type');
858 function attr_ol_type_after_styles(&$root, &$pipeline) {} argument
859 function attr_ol_type_after(&$root, &$pipeline) {} argument
863 function attr_textarea_rows_before(&$root, &$pipeline) { argument
865 $handler->css(sprintf('%dem', (int)$root->get_attribute('rows')*1.40),$pipeline);
867 function attr_textarea_rows_after_styles(&$root, &$pipeline) {} argument
868 function attr_textarea_rows_after(&$root, &$pipeline) {} argument
870 function attr_textarea_cols_before(&$root, &$pipeline) { argument
872 $handler->css(sprintf('%dem', (int)$root->get_attribute('cols')*0.675),$pipeline);
874 function attr_textarea_cols_after_styles(&$root, &$pipeline) {} argument
875 function attr_textarea_cols_after(&$root, &$pipeline) {} argument
880 function attr_hr_color_before(&$root, &$pipeline) { argument
882 $handler->css($root->get_attribute('color'), $pipeline);
884 function attr_hr_color_after_styles(&$root, &$pipeline) {} argument
885 function attr_hr_color_after(&$root, &$pipeline) {} argument