From fbd612e66267b07f8366bb08a12cf951c5dab460 Mon Sep 17 00:00:00 2001 From: Ian Hickson Date: Tue, 1 Dec 2015 01:46:30 -0800 Subject: [PATCH] Remove the assert when opening popup menus. Some paint bounds are in fact empty, e.g. at the start of a growing animation if there's also a fade, the initial 0x0 box will also be opacity:0, and might get a dedicated layer and PaintingContext. --- packages/flutter/lib/src/rendering/binding.dart | 2 +- packages/flutter/lib/src/rendering/object.dart | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/flutter/lib/src/rendering/binding.dart b/packages/flutter/lib/src/rendering/binding.dart index ac646d15b02..a2e6e3f7166 100644 --- a/packages/flutter/lib/src/rendering/binding.dart +++ b/packages/flutter/lib/src/rendering/binding.dart @@ -7,12 +7,12 @@ import 'dart:ui' as ui; import 'package:flutter/animation.dart'; import 'package:flutter/gestures.dart'; -import 'package:flutter/rendering.dart'; import 'package:mojo/bindings.dart' as bindings; import 'package:mojo/core.dart' as core; import 'package:sky_services/pointer/pointer.mojom.dart'; import 'box.dart'; +import 'debug.dart'; import 'hit_test.dart'; import 'object.dart'; import 'view.dart'; diff --git a/packages/flutter/lib/src/rendering/object.dart b/packages/flutter/lib/src/rendering/object.dart index e4199ec9a23..9c1c1f88962 100644 --- a/packages/flutter/lib/src/rendering/object.dart +++ b/packages/flutter/lib/src/rendering/object.dart @@ -62,7 +62,6 @@ class PaintingContext { PaintingContext._(this._containerLayer, this._paintBounds) { assert(_containerLayer != null); assert(_paintBounds != null); - assert(!_paintBounds.isEmpty); } final ContainerLayer _containerLayer;