mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 20:01:50 +00:00
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:
parent
603db7a389
commit
f4225f1502
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user