Created attachment 230905 [details]
Comment on attachment 230905 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=230905&action=review
> + hasRepaintRects = window.internals.hasRepaintRectsIncludingSublayers();
Couldn't you have just got the repaint rects in JS and checked their emptiness?
(In reply to comment #3)
> Couldn't you have just got the repaint rects in JS and checked their emptiness?
That's what I tried first. There is currently no API for getting repaint rects except for sublayers and implementing one sensibly would have been more complicated than this.
I mean "no API for getting repaint rects for sublayers"
Ah right. Switched the test case to use that.