notifyBlinkStyleSyncStarted method
void
notifyBlinkStyleSyncStarted()
Implementation
void notifyBlinkStyleSyncStarted() {
final bool wasDeferred = _blinkDeferFirstPaint;
_blinkHasSeenStyleSync = true;
if (!wasDeferred) return;
_blinkDeferFirstPaint = false;
// If we were previously hidden, there may be no paired render objects yet
// (because the adapter built a SizedBox.shrink). Force the adapter state to
// rebuild so the element can create its render tree in the next frame.
final reason = BlinkFirstPaintReadyReason();
if (renderStyle.hasRenderBox()) {
renderStyle.requestWidgetToRebuild(reason);
} else {
forEachState((state) {
if (state is WebFElementWidgetState) {
state.requestForChildNodeUpdate(reason);
} else if (state is WebFReplacedElementWidgetState) {
state.requestForChildNodeUpdate(reason);
}
});
}
}