mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Split LengthPercentage again.
This is needed to support min() / max() / clamp(), etc, as those need to be a tree of values and thus need heap storage. This unfortunately grows LengthPercentage to be two pointers, which is bad as it blows up the size of nsStylePosition enough to trigger the size assertions. This patch comments out the assertion for now, the follow-up patches will uncomment them. Differential Revision: https://phabricator.services.mozilla.com/D58700
This commit is contained in:
parent
ec37e7a5b8
commit
61f3ff1de3
6 changed files with 304 additions and 177 deletions
|
@ -138,8 +138,7 @@ impl Device {
|
|||
|
||||
/// Set the font size of the root element (for rem)
|
||||
pub fn set_root_font_size(&self, size: Au) {
|
||||
self.root_font_size
|
||||
.store(size.0 as isize, Ordering::Relaxed)
|
||||
self.root_font_size.store(size.0 as isize, Ordering::Relaxed)
|
||||
}
|
||||
|
||||
/// Sets the body text color for the "inherit color from body" quirk.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue