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:
Patrick Walton 2014-02-07 10:28:22 -08:00
parent 6b89cbf3c5
commit 758f5ba755
6 changed files with 251 additions and 175 deletions

View file

@ -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,
}