mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
style: Avoid allocating a unique nsStyleSVG and nsStyleBackground per element.
Should also help with https://bugzilla.mozilla.org/show_bug.cgi?id=1360881
This commit is contained in:
parent
3b857f1c4e
commit
54f33a6bfd
2 changed files with 23 additions and 9 deletions
|
@ -2774,10 +2774,6 @@ fn static_assert() {
|
|||
% for member in fill_fields.split():
|
||||
max_len = cmp::max(max_len, self.gecko.${image_layers_field}.${member}Count);
|
||||
% endfor
|
||||
|
||||
// XXXManishearth Gecko does an optimization here where it only
|
||||
// fills things in if any of the properties have been set
|
||||
|
||||
unsafe {
|
||||
// While we could do this manually, we'd need to also manually
|
||||
// run all the copy constructors, so we just delegate to gecko
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue