| Methods |
public
|
__construct(AbstractFrameDecorator $frame)
AbstractFrameReflower constructor.
AbstractFrameReflower constructor.
|
#
|
public
|
get_dompdf(): Dompdf
|
#
|
public
|
reset(): void
|
#
|
protected
|
determine_absolute_containing_block(): void
Determine the actual containing block for absolute and fixed position.
|
#
|
protected
|
_collapse_margins(): void
Collapse frames margins
http://www.w3.org/TR/CSS21/box.html#collapsing-margins
|
#
|
private
|
get_collapsed_margin_length(float $l1, float $l2): float
Get the combined (collapsed) length of two adjoining margins.
|
#
|
protected
|
position_relative(AbstractFrameDecorator $frame): void
Handle relative positioning according to
https://www.w3.org/TR/CSS21/visuren.html#relative-positioning.
Parameters
| $frame |
The frame to handle.
|
|
#
|
abstract
public
|
reflow(Block|null $block = null)
|
#
|
protected
|
resolve_min_width(float|null $cbw): float
Resolve the `min-width` property.
Resolve the min-width property.
Resolves to 0 if not set or if a percentage and the containing-block
width is not defined.
Parameters
| $cbw |
Width of the containing block.
|
|
#
|
protected
|
resolve_max_width(float|null $cbw): float
Resolve the `max-width` property.
Resolve the max-width property.
Resolves to INF if not set or if a percentage and the containing-block
width is not defined.
Parameters
| $cbw |
Width of the containing block.
|
|
#
|
protected
|
resolve_min_height(float|null $cbh): float
Resolve the `min-height` property.
Resolve the min-height property.
Resolves to 0 if not set or if a percentage and the containing-block
height is not defined.
Parameters
| $cbh |
Height of the containing block.
|
|
#
|
protected
|
resolve_max_height(float|null $cbh): float
Resolve the `max-height` property.
Resolve the max-height property.
Resolves to INF if not set or if a percentage and the containing-block
height is not defined.
Parameters
| $cbh |
Height of the containing block.
|
|
#
|
public
|
get_min_max_child_width(): array
Get the minimum and maximum preferred width of the contents of the frame,
as requested by its children.
Get the minimum and maximum preferred width of the contents of the frame,
as requested by its children.
Returns
A two-element array of min and max width.
|
#
|
public
|
get_min_max_content_width(): array
Get the minimum and maximum preferred content-box width of the frame.
Get the minimum and maximum preferred content-box width of the frame.
Returns
A two-element array of min and max width.
|
#
|
public
|
get_min_max_width(): array
Get the minimum and maximum preferred border-box width of the frame.
Get the minimum and maximum preferred border-box width of the frame.
Required for shrink-to-fit width calculation, as used in automatic table
layout, absolute positioning, float and inline-block. This provides a
basic implementation. Child classes should override this or
get_min_max_content_width as necessary.
Returns
An array [0 => min, 1 => max, "min" => min, "max" => max]
of min and max width.
|
#
|
protected
|
_parse_string($string, $single_trim = false): string
Parses a CSS string containing quotes and escaped hex characters
Parses a CSS string containing quotes and escaped hex characters
|
#
|
protected
|
_parse_quotes(): array
Parses a CSS "quotes" property
Returns
An array of pairs of quotes
|
#
|
protected
|
_parse_content(): string
Parses the CSS "content" property
|
#
|
protected
|
_set_content(): void
Handle counters and set generated content if the frame is a
generated-content frame.
Handle counters and set generated content if the frame is a
generated-content frame.
|
#
|