mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 17:24:29 +00:00
Backout d22512e72e42 (bug 798990) for reftest failures in empty-transaction-1.html
This commit is contained in:
parent
9422806f42
commit
8b7c0e18e0
@ -4630,11 +4630,8 @@ nsCanvasRenderingContext2DAzure::GetCanvasLayer(nsDisplayListBuilder* aBuilder,
|
||||
CanvasLayer *aOldLayer,
|
||||
LayerManager *aManager)
|
||||
{
|
||||
// Don't call EnsureTarget() ... if there isn't already a surface, then
|
||||
// we have nothing to paint and there is no need to create a surface just
|
||||
// to paint nothing. Also, EnsureTarget() can cause creation of a persistent
|
||||
// layer manager which must NOT happen during a paint.
|
||||
if (!mTarget || !IsTargetValid()) {
|
||||
EnsureTarget();
|
||||
if (!IsTargetValid()) {
|
||||
// No DidTransactionCallback will be received, so mark the context clean
|
||||
// now so future invalidations will be dispatched.
|
||||
MarkContextClean();
|
||||
|
Loading…
x
Reference in New Issue
Block a user