Chromium Code Reviews
DescriptionAvoid calling isFocusable() during updateLayout.
isFocusable() expects the layout is up-to-date, but in the updateLayout code path
one callsite has existed. The call could be delayed after the update layout
is complete, and the delayed callback already does the check again.
So it is safe to remove the callsite without breaking the whole logic.
This removes pre-condition to make a callback request, so there could be
extra callbacks could be created which might impact performance. Considering
the assertion was added 5+months ago and this is the first report,
hitting the code path should be very infrequent and performance impact
should be negligible.
BUG=627074
TEST=fast/dom/focus-and-update-layout-crash.html
Patch Set 1 #Patch Set 2 : layout test #
Total comments: 3
Messages
Total messages: 12 (6 generated)
|
||||||||||||||||||||||||||||