function reflow(Frame_Decorator $block = null) { $page = $this->_frame->get_root(); $page->check_forced_page_break($this->_frame); if ($page->is_full()) { return; } $this->_block_parent = $this->_frame->find_block_parent(); // Left trim the text if this is the first text on the line and we're // collapsing white space // if ( $this->_block_parent->get_current_line("w") == 0 && // ($this->_frame->get_style()->white_space !== "pre" || // $this->_frame->get_style()->white_space !== "pre-wrap") ) { // $this->_frame->set_text( ltrim( $this->_frame->get_text() ) ); // } $this->_frame->position(); $this->_layout_line(); if ($block) { $block->add_frame_to_line($this->_frame); } }