28 lines
589 B
PHP
28 lines
589 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
class RenderStackingContext {
|
||
|
|
var $_stacking_levels;
|
||
|
|
|
||
|
|
function RenderStackingContext() {
|
||
|
|
$this->set_stacking_levels(array());
|
||
|
|
|
||
|
|
$level =& new StackingLevel('in-flow-non-inline');
|
||
|
|
$this->add_stacking_level($level);
|
||
|
|
|
||
|
|
$level =& new StackingLevel('in-flow-floats');
|
||
|
|
$this->add_stacking_level($level);
|
||
|
|
|
||
|
|
$level =& new StackingLevel('in-flow-inline');
|
||
|
|
$this->add_stacking_level($level);
|
||
|
|
}
|
||
|
|
|
||
|
|
function get_stacking_levels() {
|
||
|
|
return $this->_stacking_levels;
|
||
|
|
}
|
||
|
|
|
||
|
|
function set_stacking_levels($levels) {
|
||
|
|
$this->_stacking_levels = $levels;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
?>
|