• Hixie's avatar
    Port clipping to the new layer world. · e4ac5189
    Hixie authored
    - Add Canvas.getSaveCount()
    - Make RenderClipRect call context.paintChildWithClip instead of doing the clipping itself
    - Make ClipLayer take a Rect instead of a Size
    - Make PaintingContext.canvas read-only
    - Add PaintingContext.paintChildWithClip()
    - Minor rearrangings of code and style tweaks
    e4ac5189
layer.dart 5.39 KB