Struct style::style_adjuster::StyleAdjuster [] [src]

pub struct StyleAdjuster<'a, 'b: 'a> { /* fields omitted */ }

A struct that implements all the adjustment methods.

NOTE(emilio): If new adjustments are introduced that depend on reset properties of the parent, you may need tweaking the ChildCascadeRequirement code in matching.rs.

Methods

impl<'a, 'b: 'a> StyleAdjuster<'a, 'b>
[src]

[src]

Trivially constructs a new StyleAdjuster.

[src]

Compute a few common flags for both text and element's style.

[src]

Adjusts the style to account for various fixups that don't fit naturally into the cascade.

When comparing to Gecko, this is similar to the work done by nsStyleContext::ApplyStyleFixups, plus some parts of nsStyleSet::GetContext.