Skip to content

Commit

Permalink
Allow infinite cull rects. (flutter#3787)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hixie authored Jun 17, 2017
1 parent d2c77f9 commit 105cc35
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/ui/painting.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1350,9 +1350,6 @@ class Canvas extends NativeFieldWrapperClass2 {
throw new ArgumentError('"recorder" must not be null.');
if (recorder.isRecording)
throw new ArgumentError('"recorder" must not already be associated with another Canvas.');
if (!cullRect.isFinite)
throw new ArgumentError('"cullRect" must not contain infinite or NaN coordinates.');
// TODO(ianh): throw if recorder is defunct (https://github.com/flutter/flutter/issues/2531)
_constructor(recorder, cullRect.left, cullRect.top, cullRect.right, cullRect.bottom);
}
void _constructor(PictureRecorder recorder,
Expand Down

0 comments on commit 105cc35

Please sign in to comment.