Lines Matching refs:box

18     $box =& new LineBox;
19 $box->top = $this->top;
20 $box->right = $this->right;
21 $box->bottom = $this->bottom;
22 $box->left = $this->left;
23 return $box;
33 function create(&$box) { argument
35 $lbox->top = $box->get_top();
36 $lbox->right = $box->get_right();
37 $lbox->bottom = $box->get_bottom();
38 $lbox->left = $box->get_left();
45 function extend(&$box) { argument
46 $base = $box->get_top() - $box->get_baseline();
48 $this->top = max($this->top, $base + $box->get_ascender());
49 $this->right = max($this->right, $box->get_right());
50 $this->bottom = min($this->bottom, $base - $box->get_descender());
55 function fake_box(&$box) { argument
68 $fake_box->put_top($this->top - $box->baseline);
72 $fake_box->setCSSProperty(CSS_PADDING, $box->get_css_property(CSS_PADDING));
75 $fake_box->setCSSProperty(CSS_BACKGROUND, $box->get_css_property(CSS_BACKGROUND));
76 $fake_box->setCSSProperty(CSS_BORDER, $box->get_css_property(CSS_BORDER));
97 $box = InlineBox::create_from_text($root->content,
100 return $box;
102 $box =& new InlineBox();
106 $box->readCSS($css_state);
112 $box->add_child($child_box);
120 if ($box->is_null()) {
127 $box->add_child($whitespace);
133 return $box;
137 $box =& new InlineBox();
138 $box->readCSS($pipeline->get_current_css_state());
146 $inline_content_builder->build($box, $text, $pipeline);
151 return $box;
290 function init_line(&$box, &$line_no) { argument
291 $line_box = LineBox::create($box);
302 function extend_line(&$box, $line_no) { argument
305 $this->init_line($box, $line_no);
311 if ($box->get_left() < $this->_lines[$line_no]->right) {
313 $this->init_line($box, $line_no);
317 $this->_lines[$line_no]->extend($box);
322 function merge_line(&$box, $line_no) { argument
325 if ($line_no > 0 && count($box->_lines) > 0) {
326 if ($this->_lines[$line_no-1]->right + EPSILON > $box->_lines[0]->left) {
327 …$this->_lines[$line_no-1]->right = max($box->_lines[0]->right, $this->_lines[$line_no-1]->right);
328 … $this->_lines[$line_no-1]->top = max($box->_lines[0]->top, $this->_lines[$line_no-1]->top);
329 …$this->_lines[$line_no-1]->bottom = min($box->_lines[0]->bottom, $this->_lines[$line_no-1]->bottom…
334 $size = count($box->_lines);
336 $this->_lines[] = $box->_lines[$i]->copy();