table_row_group_renderer.cls.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * @package dompdf
  4. * @link http://dompdf.github.com/
  5. * @author Benj Carson <benjcarson@digitaljunkies.ca>
  6. * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
  7. */
  8. /**
  9. * Renders block frames
  10. *
  11. * @access private
  12. * @package dompdf
  13. */
  14. class Table_Row_Group_Renderer extends Block_Renderer {
  15. //........................................................................
  16. function render(Frame $frame) {
  17. $style = $frame->get_style();
  18. $this->_set_opacity( $frame->get_opacity( $style->opacity ) );
  19. $this->_render_border($frame);
  20. $this->_render_outline($frame);
  21. if (DEBUG_LAYOUT && DEBUG_LAYOUT_BLOCKS) {
  22. $this->_debug_layout($frame->get_border_box(), "red");
  23. if (DEBUG_LAYOUT_PADDINGBOX) {
  24. $this->_debug_layout($frame->get_padding_box(), "red", array(0.5, 0.5));
  25. }
  26. }
  27. if (DEBUG_LAYOUT && DEBUG_LAYOUT_LINES && $frame->get_decorator()) {
  28. foreach ($frame->get_decorator()->get_line_boxes() as $line) {
  29. $frame->_debug_layout(array($line->x, $line->y, $line->w, $line->h), "orange");
  30. }
  31. }
  32. }
  33. }