mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Drop support for -moz-box-shadow and -moz-border-radius-* now that we've supported the unprefixed versions since Firefox 4. (Bug 693510) r=bzbarsky
This commit is contained in:
parent
a36ec05ea2
commit
b71be23363
@ -317,21 +317,17 @@ nsCSSProps::ReleaseTable(void)
|
||||
}
|
||||
}
|
||||
|
||||
#if 0 /* aliases code */
|
||||
struct CSSPropertyAlias {
|
||||
char name[sizeof("-moz-border-radius-bottomright")];
|
||||
char name[sizeof("-moz-...")];
|
||||
nsCSSProperty id;
|
||||
};
|
||||
|
||||
static const CSSPropertyAlias gAliases[] = {
|
||||
{ "-moz-border-radius", eCSSProperty_border_radius },
|
||||
{ "-moz-border-radius-bottomleft", eCSSProperty_border_bottom_left_radius },
|
||||
{ "-moz-border-radius-bottomright", eCSSProperty_border_bottom_right_radius },
|
||||
{ "-moz-border-radius-topleft", eCSSProperty_border_top_left_radius },
|
||||
{ "-moz-border-radius-topright", eCSSProperty_border_top_right_radius },
|
||||
{ "-moz-box-shadow", eCSSProperty_box_shadow },
|
||||
// Don't forget to update the sizeof in CSSPropertyAlias above with the
|
||||
// longest string when you add stuff here.
|
||||
};
|
||||
#endif
|
||||
|
||||
nsCSSProperty
|
||||
nsCSSProps::LookupProperty(const nsACString& aProperty)
|
||||
@ -339,6 +335,7 @@ nsCSSProps::LookupProperty(const nsACString& aProperty)
|
||||
NS_ABORT_IF_FALSE(gPropertyTable, "no lookup table, needs addref");
|
||||
|
||||
nsCSSProperty res = nsCSSProperty(gPropertyTable->Lookup(aProperty));
|
||||
#if 0 /* aliases code */
|
||||
if (res == eCSSProperty_UNKNOWN) {
|
||||
for (const CSSPropertyAlias *alias = gAliases,
|
||||
*alias_end = ArrayEnd(gAliases);
|
||||
@ -349,6 +346,7 @@ nsCSSProps::LookupProperty(const nsACString& aProperty)
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
return res;
|
||||
}
|
||||
|
||||
@ -360,6 +358,7 @@ nsCSSProps::LookupProperty(const nsAString& aProperty)
|
||||
// converting and avoid a PromiseFlatCString() call.
|
||||
NS_ABORT_IF_FALSE(gPropertyTable, "no lookup table, needs addref");
|
||||
nsCSSProperty res = nsCSSProperty(gPropertyTable->Lookup(aProperty));
|
||||
#if 0 /* aliases code */
|
||||
if (res == eCSSProperty_UNKNOWN) {
|
||||
for (const CSSPropertyAlias *alias = gAliases,
|
||||
*alias_end = ArrayEnd(gAliases);
|
||||
@ -370,6 +369,7 @@ nsCSSProps::LookupProperty(const nsAString& aProperty)
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user