bug 1260178 null check pattern from -unico-border-gradient r=acomminos

MozReview-Commit-ID: HooAlTmINmq

--HG--
extra : rebase_source : c33c84917b919fbe5aae45223ddebf6a4f6dc713
This commit is contained in:
Karl Tomlinson 2016-03-29 17:50:47 +13:00
parent 603db7a389
commit f4225f1502

View File

@ -83,6 +83,8 @@ GetGradientColors(const GValue* aValue,
return false;
auto pattern = static_cast<cairo_pattern_t*>(g_value_get_boxed(aValue));
if (!pattern)
return false;
// Just picking the lightest and darkest colors as simple samples rather
// than trying to blend, which could get messy if there are many stops.