mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Resolve counter style during parallel traversal when possible.
This commit is contained in:
parent
5b3fb62b09
commit
08c12062c7
4 changed files with 20 additions and 12 deletions
|
@ -344,6 +344,8 @@
|
|||
<%
|
||||
maybe_wm = ", wm" if property.logical else ""
|
||||
maybe_cacheable = ", cacheable" if property.has_uncacheable_values == "True" else ""
|
||||
props_need_device = "content list_style_type".split() if product == "gecko" else []
|
||||
maybe_device = ", context.device" if property.ident in props_need_device else ""
|
||||
%>
|
||||
match *value {
|
||||
DeclaredValue::Value(ref specified_value) => {
|
||||
|
@ -375,7 +377,8 @@
|
|||
inherited_style.get_font());
|
||||
% else:
|
||||
context.mutate_style().mutate_${data.current_style_struct.name_lower}()
|
||||
.set_${property.ident}(computed ${maybe_cacheable} ${maybe_wm});
|
||||
.set_${property.ident}(computed ${maybe_device}
|
||||
${maybe_cacheable} ${maybe_wm});
|
||||
% endif
|
||||
% endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue