mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Make IndependentFormattingContext a struct that owns styles
… and has a private enum for its contents. Privacy forces the rest of the code to go through methods rather than matching on the enum, reducing accidental layout-mode-specific behavior.
This commit is contained in:
parent
799057f1e6
commit
b2b3ea992c
9 changed files with 149 additions and 123 deletions
|
@ -30,7 +30,7 @@ pub(super) enum Contents<Node> {
|
|||
/// <https://drafts.csswg.org/css2/conform.html#replaced-element>
|
||||
Replaced(ReplacedContent),
|
||||
|
||||
/// Content of a `::before` or `::after` pseudo-element this is being generated.
|
||||
/// Content of a `::before` or `::after` pseudo-element that is being generated.
|
||||
/// <https://drafts.csswg.org/css2/generate.html#content>
|
||||
OfPseudoElement(Vec<PseudoElementContentItem>),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue