| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* @package dompdf |
| 5 |
* @link https://github.com/dompdf/dompdf |
| 6 |
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License |
| 7 |
*/ |
| 8 |
namespace WCPOS\Vendor\Dompdf\Renderer; |
| 9 |
|
| 10 |
use WCPOS\Vendor\Dompdf\Frame; |
| 11 |
/** |
| 12 |
* @package dompdf |
| 13 |
*/ |
| 14 |
class TableRow extends Block |
| 15 |
{ |
| 16 |
/** |
| 17 |
* @param Frame $frame |
| 18 |
*/ |
| 19 |
function render(Frame $frame) |
| 20 |
{ |
| 21 |
$style = $frame->get_style(); |
| 22 |
$node = $frame->get_node(); |
| 23 |
$this->_set_opacity($frame->get_opacity($style->opacity)); |
| 24 |
$border_box = $frame->get_border_box(); |
| 25 |
// FIXME: Render background onto the area consisting of all spanned |
| 26 |
// cells. In the separated border model, the border-spacing area should |
| 27 |
// be left out. Currently, the background is inherited by the table |
| 28 |
// cells instead, which does not handle transparent backgrounds and |
| 29 |
// background images correctly. |
| 30 |
// See https://www.w3.org/TR/CSS21/tables.html#table-layers |
| 31 |
$this->_render_outline($frame, $border_box); |
| 32 |
$this->addNamedDest($node); |
| 33 |
$this->addHyperlink($node, $border_box); |
| 34 |
} |
| 35 |
} |
| 36 |
|