WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
172226
[WK1] RenderElement::isVisibleInDocumentRect() always returns true when it's given FrameView::windowClipRect()
https://bugs.webkit.org/show_bug.cgi?id=172226
Summary
[WK1] RenderElement::isVisibleInDocumentRect() always returns true when it's ...
Said Abou-Hallawa
Reported
2017-05-17 09:38:12 PDT
The behavior is different on WK2 from WK1. We need a way to check whether the RenderElement is visible in the viewport or not. The accuracy of this check is needed to pause the animation and to destroy the decoded frames for the elements outside the viewport.
Attachments
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2017-05-17 10:04:13 PDT
Antti worked on this a long time ago iirc. I seem to remember we did not need to do anything special to pause images in WK1 because it worked differently somehow (e.g. GIF animation is triggered by painting and we never paint outside the viewport on WK1 or something like that).
Simon Fraser (smfr)
Comment 2
2017-05-17 12:07:36 PDT
This depends on FrameView::paintsEntireContents(), which is true if the WebHTMLView is layer-backed.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug