зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1380431 - fix DrawTargetCairo::Snapshot error note to check for surface before accessing status. r=mchang
MozReview-Commit-ID: DNTHv4NKjzq
This commit is contained in:
Родитель
26b59ebfb5
Коммит
f3982ad525
|
@ -703,7 +703,9 @@ already_AddRefed<SourceSurface>
|
|||
DrawTargetCairo::Snapshot()
|
||||
{
|
||||
if (!IsValid()) {
|
||||
gfxCriticalNote << "DrawTargetCairo::Snapshot with bad surface " << cairo_surface_status(mSurface);
|
||||
gfxCriticalNote << "DrawTargetCairo::Snapshot with bad surface " << hexa(mSurface)
|
||||
<< ", context " << hexa(mContext)
|
||||
<< ", status " << (mSurface ? cairo_surface_status(mSurface) : -1);
|
||||
return nullptr;
|
||||
}
|
||||
if (mSnapshot) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче