Unverified Commit 12147ad7 authored by LongCatIsLooong's avatar LongCatIsLooong Committed by GitHub

Remove `RenderObject.rotate` (#103092)

parent ca176740
......@@ -2119,24 +2119,6 @@ abstract class RenderObject extends AbstractNode with DiagnosticableTreeMixin im
}
}
/// Rotate this render object (not yet implemented).
void rotate({
int? oldAngle, // 0..3
int? newAngle, // 0..3
Duration? time,
}) { }
// when the parent has rotated (e.g. when the screen has been turned
// 90 degrees), immediately prior to layout() being called for the
// new dimensions, rotate() is called with the old and new angles.
// The next time paint() is called, the coordinate space will have
// been rotated N quarter-turns clockwise, where:
// N = newAngle-oldAngle
// ...but the rendering is expected to remain the same, pixel for
// pixel, on the output device. Then, the layout() method or
// equivalent will be called.
// PAINTING
/// Whether [paint] for this render object is currently running.
......
......@@ -169,11 +169,6 @@ class RenderView extends RenderObject with RenderObjectWithChildMixin<RenderBox>
child!.layout(BoxConstraints.tight(_size));
}
@override
void rotate({ int? oldAngle, int? newAngle, Duration? time }) {
assert(false); // nobody tells the screen to rotate, the whole rotate() dance is started from our performResize()
}
/// Determines the set of render objects located at the given position.
///
/// Returns true if the given point is contained in this render object or one
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment