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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user