Lines Matching refs:i

67     for ($i=0, $size = count($this->content); $i < $size; $i++) {
68 $this->content[$i]->destroy();
103 for ($i=0, $size = count($this->content); $i < $size; $i++) {
104 $child =& $this->content[$i];
185 for ($i=0; $i < $size; $i++) {
195 $child =& $this->content[$i];
220 for ($i=0; $i<$size; $i++) {
221 if ($this->content[$i]->uid == $box->uid) {
222 return $i;
237 for ($i = count($this->content)-1; $i>= $index; $i--) {
238 $this->content[$i+1] =& $this->content[$i];
285 for ($i=0; $i<$size; $i++) {
286 if (!is_whitespace($this->content[$i]) &&
287 !$this->content[$i]->is_null()) {
288 return $this->content[$i];
306 for ($i=0; $i<$size; $i++) {
307 if (!is_whitespace($this->content[$i]) && !$this->content[$i]->is_null()) {
308 if (is_container($this->content[$i])) {
309 $data =& $this->content[$i]->get_first_data();
312 return $this->content[$i];
330 for ($i=count($this->content)-1; $i>=0; $i--) {
331 if (!is_whitespace($this->content[$i]) && !$this->content[$i]->is_null()) {
332 return $this->content[$i];
362 for ($i=0; $i < $size; $i++) {
363 $this->content[$i]->offset($dx, $dy);
447 for ($i=0; $i<$content_size; $i++) {
448 if (!$this->content[$i]->is_null()) {
451 $max_top = max($max_top, $this->content[$i]->get_top_margin());
459 if (!$this->content[$i]->is_container()) {
461 $this->content[$i]->get_bottom_margin());
463 $content_overflow = $this->content[$i]->get_css_property(CSS_OVERFLOW);
467 $this->content[$i]->get_bottom_margin());
470 $this->content[$i]->get_bottom_margin(),
471 $this->content[$i]->get_top_margin() -
472 $this->content[$i]->get_real_full_height());
487 for ($i=0; $i < $size; $i++) {
493 $element =& $this->_line[$i];
496 if ($i==0) {
588 for ($i=$start_index; $i<$content_size; $i++) {
589 $item =& $this->content[$i];
664 for ($i=0; $i < $size; $i++) {
665 $vertical_align = $this->_line[$i]->get_css_property(CSS_VERTICAL_ALIGN);
670 $baselined[] =& $this->_line[$i];
673 $this->_line[$i]->default_baseline);
678 for ($i=0; $i < $size_baselined; $i++) {
679 $baselined[$i]->baseline = $baseline;
682 $baselined[$i]->get_full_height() + $baselined[$i]->getBaselineOffset(),
683 $baselined[$i]->get_ascender() + $baselined[$i]->get_descender());
689 for ($i=0; $i < $size; $i++) {
690 $vertical_align = $this->_line[$i]->get_css_property(CSS_VERTICAL_ALIGN);
692 $this->_line[$i]->baseline =
693 $baseline + $this->_line[$i]->get_full_height()/2;
699 for ($i=0; $i < $size; $i++) {
700 $vertical_align = $this->_line[$i]->get_css_property(CSS_VERTICAL_ALIGN);
702 $this->_line[$i]->baseline = $this->_line[$i]->get_full_height()/2;
709 for ($i=0; $i < $size; $i++) {
710 $vertical_align = $this->_line[$i]->get_css_property(CSS_VERTICAL_ALIGN);
712 $middle = max($middle, $this->_line[$i]->get_full_height() / 2);
719 for ($i=0; $i < $size; $i++) {
720 $this->_line[$i]->baseline += ($middle - $height/2);
725 for ($i=0; $i < $size; $i++) {
726 $vertical_align = $this->_line[$i]->get_css_property(CSS_VERTICAL_ALIGN);
728 …$this->_line[$i]->baseline = $this->_line[$i]->default_baseline + ($height/2 - $this->_line[$i]->g…
735 for ($i=0; $i < $size; $i++) {
736 $vertical_align = $this->_line[$i]->get_css_property(CSS_VERTICAL_ALIGN);
738 $bottom = max($bottom, $this->_line[$i]->get_full_height());
745 for ($i=0; $i < $size; $i++) {
746 $this->_line[$i]->baseline += ($bottom - $height);
751 for ($i=0; $i < $size; $i++) {
752 $vertical_align = $this->_line[$i]->get_css_property(CSS_VERTICAL_ALIGN);
754 …$this->_line[$i]->baseline = $this->_line[$i]->default_baseline + $height - $this->_line[$i]->get_…
761 for ($i=0; $i < $size; $i++) {
762 $vertical_align = $this->_line[$i]->get_css_property(CSS_VERTICAL_ALIGN);
764 $bottom = max($bottom, $this->_line[$i]->get_full_height());
772 for ($i=0; $i < $size; $i++) {
773 $vertical_align = $this->_line[$i]->get_css_property(CSS_VERTICAL_ALIGN);
775 $this->_line[$i]->baseline = $this->_line[$i]->default_baseline;
812 for ($i = 0, $size = count($this->_deferred_floats); $i < $size; $i++) {
813 $this->_deferred_floats[$i]->reflow_static_float($this, $context);
836 for ($i=0; $i<$size; $i++) {
837 if (!is_whitespace($this->_line[$i]) &&
838 !$this->_line[$i]->is_null()) { return false; };
849 for ($i=0; $i<$size; $i++) {
850 $this->content[$i]->reflow_anchors($viewport, $anchors, $page_heights);
887 for ($i=0; $i < $size; $i++) {
888 $child =& $this->content[$i];
897 for ($i=0; $i<$size; $i++) {
898 $this->content[$i]->reflow_inline();
904 for ($i=0; $i<$size; $i++) {
905 if (is_null($this->content[$i]->reflow_text($viewport))) {
989 for ($i=0; $i<$size; $i++) {
990 $child =& $this->content[$i];
1012 $i = count($this->content)-1;
1013 $last = $this->content[$i];
1014 while ($i >= 0 && is_whitespace($this->content[$i])) {
1015 $this->remove($this->content[$i]);
1017 $i --;
1018 if ($i >= 0) {
1019 $last = $this->content[$i];
1023 if ($i >= 0) {
1024 if (is_container($this->content[$i])) {
1025 $this->content[$i]->remove_last_whitespace();
1032 for ($i=0; $i<$size; $i++) {
1033 if ($this->content[$i]->uid === $box->uid) {
1034 $this->content[$i] = NullBox::create();
1053 for ($i=0; $i<$size; $i++) {
1054 if (!$this->content[$i]->is_null()) { return false; };
1071 for ($i=0; $i<$size; $i++) {
1072 $this->content[$i]->pre_reflow_images();