diff options
author | Moonchild <mcwerewolf@wolfbeast.com> | 2019-04-03 19:51:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-03 19:51:52 +0200 |
commit | a04fdfd890ca64988b4fd43a30c284cb994e7ddc (patch) | |
tree | 5ad603af31162b324d76d6e510bbc5146c5a12ff /gfx/2d/2D.h | |
parent | 352121c2a31c70cb1aa3effda88138ec94291464 (diff) | |
parent | 00baf283622b47ad7926c6e62364854d3dfbc00a (diff) | |
download | UXP-a04fdfd890ca64988b4fd43a30c284cb994e7ddc.tar UXP-a04fdfd890ca64988b4fd43a30c284cb994e7ddc.tar.gz UXP-a04fdfd890ca64988b4fd43a30c284cb994e7ddc.tar.lz UXP-a04fdfd890ca64988b4fd43a30c284cb994e7ddc.tar.xz UXP-a04fdfd890ca64988b4fd43a30c284cb994e7ddc.zip |
Merge pull request #1035 from kn-yami/bug1360343
Fix SVG mask crashes
Diffstat (limited to 'gfx/2d/2D.h')
-rw-r--r-- | gfx/2d/2D.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gfx/2d/2D.h b/gfx/2d/2D.h index c1fba3463..e2020dc9e 100644 --- a/gfx/2d/2D.h +++ b/gfx/2d/2D.h @@ -488,6 +488,9 @@ public: /** * Returns a DataSourceSurface with the same data as this one, but * guaranteed to have surface->GetType() == SurfaceType::DATA. + * + * The returning surface might be null, because of OOM or gfx device reset. + * The caller needs to do null-check before using it. */ virtual already_AddRefed<DataSourceSurface> GetDataSurface() override; |