зеркало из https://github.com/mozilla/gecko-dev.git
servo: Merge #2660 - Remove compiler warnings from generated mako templates (from glennw:mako-warnings); r=jdm
Source-Repo: https://github.com/servo/servo Source-Revision: bace9fb485438b9b61831d6013c07a273213c7fa
This commit is contained in:
Родитель
6777d980f9
Коммит
dfd7cf15fd
|
@ -1655,7 +1655,7 @@ fn cascade_with_cached_declarations(applicable_declarations: &[MatchedProperty],
|
|||
% for style_struct in STYLE_STRUCTS:
|
||||
% for property in style_struct.longhands:
|
||||
% if property.derived_from is None:
|
||||
${property.camel_case}Declaration(ref declared_value) => {
|
||||
${property.camel_case}Declaration(ref ${'_' if not style_struct.inherited else ''}declared_value) => {
|
||||
% if style_struct.inherited:
|
||||
if seen.get_${property.ident}() {
|
||||
continue
|
||||
|
|
Загрузка…
Ссылка в новой задаче