Spaces:
Sleeping
Sleeping
File size: 840 Bytes
07c3cdd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | <?php
class BodyBox extends BlockBox {
function &create(&$root, &$pipeline) {
$box = new BodyBox();
$box->readCSS($pipeline->getCurrentCSSState());
$box->create_content($root, $pipeline);
return $box;
}
function get_bottom_background() {
return $this->get_bottom_margin();
}
function get_left_background() {
return $this->get_left_margin();
}
function get_right_background() {
return $this->get_right_margin();
}
function get_top_background() {
return $this->get_top_margin();
}
function reflow(&$parent, &$context) {
parent::reflow($parent, $context);
// Extend the body height to fit all contained floats
$float_bottom = $context->float_bottom();
if (!is_null($float_bottom)) {
$this->extend_height($float_bottom);
};
}
}
?> |