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
8 namespace Dompdf\FrameReflower
;
10 use Dompdf\FrameDecorator\Block
as BlockFrameDecorator
;
11 use Dompdf\FrameDecorator\AbstractFrameDecorator
;
14 * Reflows list bullets
18 class ListBullet
extends AbstractFrameReflower
21 function __construct(AbstractFrameDecorator
$frame)
23 parent
::__construct($frame);
26 //........................................................................
28 function reflow(BlockFrameDecorator
$block = null)
30 $style = $this->_frame
->get_style();
32 $style->width
= $this->_frame
->get_width();
33 $this->_frame
->position();
35 if ($style->list_style_position
=== "inside") {
36 $p = $this->_frame
->find_block_parent();
37 $p->add_frame_to_line($this->_frame
);