mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This is just another hack on top of the hack that is LayoutRoot. We will want to untangle Document ownership further as we iterate on LayoutRoot. For now LayoutRoot is both very inefficient (allocates a new Frame for each one!) as well as crashy like this (by not actually owning the document but rather grabbing it off the "rootElement" assigned to it). This at least fixes this common crasher for now. https://github.com/domokit/mojo/issues/206 R=abarth@chromium.org Review URL: https://codereview.chromium.org/1171643002