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:
L. David Baron 2012-02-22 14:14:52 -08:00
parent a36ec05ea2
commit b71be23363

View File

@ -317,21 +317,17 @@ nsCSSProps::ReleaseTable(void)
} }
} }
#if 0 /* aliases code */
struct CSSPropertyAlias { struct CSSPropertyAlias {
char name[sizeof("-moz-border-radius-bottomright")]; char name[sizeof("-moz-...")];
nsCSSProperty id; nsCSSProperty id;
}; };
static const CSSPropertyAlias gAliases[] = { 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 // Don't forget to update the sizeof in CSSPropertyAlias above with the
// longest string when you add stuff here. // longest string when you add stuff here.
}; };
#endif
nsCSSProperty nsCSSProperty
nsCSSProps::LookupProperty(const nsACString& aProperty) nsCSSProps::LookupProperty(const nsACString& aProperty)
@ -339,6 +335,7 @@ nsCSSProps::LookupProperty(const nsACString& aProperty)
NS_ABORT_IF_FALSE(gPropertyTable, "no lookup table, needs addref"); NS_ABORT_IF_FALSE(gPropertyTable, "no lookup table, needs addref");
nsCSSProperty res = nsCSSProperty(gPropertyTable->Lookup(aProperty)); nsCSSProperty res = nsCSSProperty(gPropertyTable->Lookup(aProperty));
#if 0 /* aliases code */
if (res == eCSSProperty_UNKNOWN) { if (res == eCSSProperty_UNKNOWN) {
for (const CSSPropertyAlias *alias = gAliases, for (const CSSPropertyAlias *alias = gAliases,
*alias_end = ArrayEnd(gAliases); *alias_end = ArrayEnd(gAliases);
@ -349,6 +346,7 @@ nsCSSProps::LookupProperty(const nsACString& aProperty)
} }
} }
} }
#endif
return res; return res;
} }
@ -360,6 +358,7 @@ nsCSSProps::LookupProperty(const nsAString& aProperty)
// converting and avoid a PromiseFlatCString() call. // converting and avoid a PromiseFlatCString() call.
NS_ABORT_IF_FALSE(gPropertyTable, "no lookup table, needs addref"); NS_ABORT_IF_FALSE(gPropertyTable, "no lookup table, needs addref");
nsCSSProperty res = nsCSSProperty(gPropertyTable->Lookup(aProperty)); nsCSSProperty res = nsCSSProperty(gPropertyTable->Lookup(aProperty));
#if 0 /* aliases code */
if (res == eCSSProperty_UNKNOWN) { if (res == eCSSProperty_UNKNOWN) {
for (const CSSPropertyAlias *alias = gAliases, for (const CSSPropertyAlias *alias = gAliases,
*alias_end = ArrayEnd(gAliases); *alias_end = ArrayEnd(gAliases);
@ -370,6 +369,7 @@ nsCSSProps::LookupProperty(const nsAString& aProperty)
} }
} }
} }
#endif
return res; return res;
} }