mirror of
https://github.com/servo/servo.git
synced 2025-06-18 22:34:30 +01:00
style: Separate out style structs into inherited and initial structs.
This doesn't make much of a difference in performance, but will be necessary for style struct sharing.
This commit is contained in:
parent
6b89cbf3c5
commit
758f5ba755
6 changed files with 251 additions and 175 deletions
|
@ -730,7 +730,7 @@ impl<'ln> NodeUtils for ThreadSafeLayoutNode<'ln> {
|
|||
//
|
||||
// If you implement other values for this property, you will almost certainly
|
||||
// want to update this check.
|
||||
match self.style().get().Text.white_space {
|
||||
match self.style().get().InheritedText.white_space {
|
||||
white_space::normal => true,
|
||||
_ => false,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue