Bug 1844195 - Avoid duplicating rust and C++ display definitions. r=layout-reviewers,jfkthame

We need to inline Self::new() so cbindgen generates the constants, which
is kinda lame, but seems better than duplicating the values and type
definitions.

Differential Revision: https://phabricator.services.mozilla.com/D183921
This commit is contained in:
Emilio Cobos Álvarez
2023-07-25 18:40:30 +00:00
parent 71e47356f0
commit 3e03187a1e
13 changed files with 194 additions and 252 deletions

View File

@@ -1314,7 +1314,7 @@ void nsGenericHTMLElement::MapCommonAttributesInto(
MapCommonAttributesIntoExceptHidden(aBuilder);
if (!aBuilder.PropertyIsSet(eCSSProperty_display)) {
if (aBuilder.GetAttr(nsGkAtoms::hidden)) {
aBuilder.SetKeywordValue(eCSSProperty_display, StyleDisplay::None);
aBuilder.SetKeywordValue(eCSSProperty_display, StyleDisplay::None._0);
}
}
}