Commit e6f34f86 authored by Hixie's avatar Hixie

Abstract out syncChildren().

The core of MultiChildRenderObjectWrapper.syncRenderObject() could
apply to any subclass that uses a flat child list, so this abstracts
it out into the superclass.

(Also, instead of requiring the callbacks of RenderBlockViewport to
constrain their results, we just constrain it for them. Makes things a
bit easier for users of that class.)
parent 07d96a23
......@@ -272,7 +272,8 @@ class RenderBlockViewport extends RenderBlockBase {
result = intrinsicCallback(constraints);
if (result == null)
result = constrainer(0.0);
assert(constrainer(result) == result);
else
result = constrainer(result);
} finally {
_inCallback = false;
}
......
This diff is collapsed.
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