commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / civicrm / vendor / dompdf / dompdf / src / FrameReflower / ListBullet.php
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 namespace Dompdf\FrameReflower;
9
10 use Dompdf\FrameDecorator\Block as BlockFrameDecorator;
11 use Dompdf\FrameDecorator\AbstractFrameDecorator;
12
13 /**
14 * Reflows list bullets
15 *
16 * @package dompdf
17 */
18 class ListBullet extends AbstractFrameReflower
19 {
20
21 function __construct(AbstractFrameDecorator $frame)
22 {
23 parent::__construct($frame);
24 }
25
26 //........................................................................
27
28 function reflow(BlockFrameDecorator $block = null)
29 {
30 $style = $this->_frame->get_style();
31
32 $style->width = $this->_frame->get_width();
33 $this->_frame->position();
34
35 if ($style->list_style_position === "inside") {
36 $p = $this->_frame->find_block_parent();
37 $p->add_frame_to_line($this->_frame);
38 }
39
40 }
41 }