Came up in #128910
This part of the API was added in #74402 and could use more context as to what it means. The PR that added it stated the EditableTextState will access RenderBox.size during rebuilding but it is not clear whether it strictly means rebuild is happening.
From @matthew-carroll #128910 (comment)
invokeLayoutCallback is quite a bit more diverse than just the concept of "rebuild", I believe.
invokeLayoutCallback may run by a RenderObject any number of times within that RenderObject's layout() behavior. Inside of that callback, you're permitted to mutate the element and render tree during layout, which is otherwise prohibited.
The double and triple negatives are throwing me, so I still can't tell the intention. It looks like if we're in a layout callback, we don't bother checking any conditions? We let the size access go through no matter what? This is the kind of stuff I was trying to improve. The intention of these conditions is really hard to figure out.
Came up in #128910
This part of the API was added in #74402 and could use more context as to what it means. The PR that added it stated
the EditableTextState will access RenderBox.size during rebuildingbut it is not clear whether it strictly means rebuild is happening.From @matthew-carroll #128910 (comment)