芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/bit-alphas-ltd.com/user/project/vendor/dompdf/dompdf/src/FrameDecorator/TableRow.php
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License */ namespace Dompdf\FrameDecorator; use Dompdf\Dompdf; use Dompdf\Frame; use Dompdf\FrameDecorator\Table as TableFrameDecorator; /** * Decorates Frames for table row layout * * @package dompdf */ class TableRow extends AbstractFrameDecorator { /** * TableRow constructor. * @param Frame $frame * @param Dompdf $dompdf */ function __construct(Frame $frame, Dompdf $dompdf) { parent::__construct($frame, $dompdf); } //........................................................................ /** * Remove all non table-cell frames from this row and move them after * the table. */ function normalise() { // Find our table parent $p = TableFrameDecorator::find_parent_table($this); $erroneous_frames = []; foreach ($this->get_children() as $child) { $display = $child->get_style()->display; if ($display !== "table-cell") { $erroneous_frames[] = $child; } } // dump the extra nodes after the table. foreach ($erroneous_frames as $frame) { $p->move_after($frame); } } }