Commit Graph

2 Commits

Author SHA1 Message Date
Hiroyuki Ikezoe
b72782d3c1 Bug 1409657 - Wait for one more frame after MozAfterPaint is received to avoid intermittent failures. r=birtles
Because of bug 1341294, we sometimes receive other MozAfterPaint event that
what we are not waiting for.

MozReview-Commit-ID: 5ltrPv1igs7
2017-10-23 07:04:03 +09:00
Hiroyuki Ikezoe
5ddf2667fa Bug 1385013 - Check all vertexes for the target frame are outside of the parent frame if the target frame is empty. r=birtles
We create empty rectangle (zero-height or zero-width) frame for element which
has no content inside it, e.g.  '<p></p>'.  And nsRect.Intersects returns false
if either of the rectangles are empty, so if we check
!transformedRect.Intersects(scrollableRect) and transformedRect is empty, we
will end up returning true from IsFrameScrolledOutOfView even though the point
represented by the empty transformedRect might be inside the
scrollableRect.

The reftest causes timeout without this fix since the animation never updates
after the initial paint.

MozReview-Commit-ID: FymFJfjxyGc
2017-10-18 10:43:22 +09:00