DescriptionAlways call WasShown() before trying to paint.
See the bug link for details on the crash that this CL is attempting to fix.
Although I haven't been able to reproduce the crash locally, my intuition is
that, when we call window->ShowInstant(), sometimes it tries to paint, and
since the RenderWidgetHostView hasn't yet been told that it's being shown, it
fails the DCHECK(). So, reorder the calls so that WasShown() is always called
before any change to the Instant overlay layout (ShowInstant/HideInstant).
BUG=143207
R=sky@chromium.org
TEST=Watch try bots/waterfall; Instant shouldn't fire this DCHECK().
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=152348
Patch Set 1 #
Total comments: 5
Messages
Total messages: 6 (0 generated)
|