mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
Bug 1574148 - Cherry-pick some Servo build/formatting fixes.
Differential Revision: https://phabricator.services.mozilla.com/D42128 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
e03dc2a770
commit
7455082edb
@ -195,7 +195,7 @@ ${helpers.predefined_type(
|
||||
spec="https://drafts.csswg.org/css-text/#propdef-white-space"
|
||||
servo_restyle_damage="rebuild_and_reflow"
|
||||
>
|
||||
% if engine == "servo-2013":
|
||||
% if engine in ["servo-2013", "servo-2020"]:
|
||||
impl SpecifiedValue {
|
||||
pub fn allow_wrap(&self) -> bool {
|
||||
match *self {
|
||||
|
@ -505,8 +505,10 @@ impl NonCustomPropertyId {
|
||||
% if engine == "gecko":
|
||||
unsafe { structs::nsCSSProps_gPropertyEnabled[self.0] }
|
||||
% else:
|
||||
static PREF_NAME: [Option< &str>; ${len(data.longhands) + len(data.shorthands)}] = [
|
||||
% for property in data.longhands + data.shorthands:
|
||||
static PREF_NAME: [Option< &str>; ${
|
||||
len(data.longhands) + len(data.shorthands) + len(data.all_aliases())
|
||||
}] = [
|
||||
% for property in data.longhands + data.shorthands + data.all_aliases():
|
||||
<%
|
||||
attrs = {"servo-2013": "servo_2013_pref", "servo-2020": "servo_2020_pref"}
|
||||
pref = getattr(property, attrs[engine])
|
||||
|
@ -971,7 +971,6 @@ mod gecko_leak_checking {
|
||||
NS_LogDtor(ptr as *mut c_void, s, size_of::<RuleNode>() as u32);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
|
Loading…
Reference in New Issue
Block a user