<?php

/**
 * @package dompdf
 * @link    https://github.com/dompdf/dompdf
 * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
 */
namespace PlantShopWcDeps\Dompdf\Renderer;

use PlantShopWcDeps\Dompdf\Frame;
/**
 * @package dompdf
 */
class TableRow extends Block
{
    /**
     * @param Frame $frame
     */
    function render(Frame $frame)
    {
        $style = $frame->get_style();
        $node = $frame->get_node();
        $this->_set_opacity($frame->get_opacity($style->opacity));
        $border_box = $frame->get_border_box();
        // FIXME: Render background onto the area consisting of all spanned
        // cells. In the separated border model, the border-spacing area should
        // be left out. Currently, the background is inherited by the table
        // cells instead, which does not handle transparent backgrounds and
        // background images correctly.
        // See https://www.w3.org/TR/CSS21/tables.html#table-layers
        $this->_render_outline($frame, $border_box);
        $this->addNamedDest($node);
        $this->addHyperlink($node, $border_box);
    }
}
