style: Remove -servo-text-decorations-in-effect.

It is bogus, because it depends on the display property as it's cascaded, but
the display property can change afterwards, for example, if we get blockified
because we're the root element or a flex item.

Replace it with a normal field instead.

Also, it carries some weight, because it's the last property that uses this
concept of "derived" property, and "custom cascade". So we can remove some code
after this.

Compute it after the cascade process in StyleAdjuster.
This commit is contained in:
Emilio Cobos Álvarez 2018-01-13 10:38:52 +01:00
parent 1b46e2e759
commit 8732a1d7de
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
10 changed files with 78 additions and 96 deletions

View file

@ -2172,9 +2172,8 @@ impl FragmentDisplayListBuilding for Fragment {
}
// Create display items for text decorations.
let text_decorations = self.style()
.get_inheritedtext()
._servo_text_decorations_in_effect;
let text_decorations =
self.style().get_inheritedtext().text_decorations_in_effect;
let stacking_relative_content_box = LogicalRect::from_physical(
self.style.writing_mode,