WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
188459
Cleanup: Remove unnecessary code to resume animations from CachedFrameBase::restore()
https://bugs.webkit.org/show_bug.cgi?id=188459
Summary
Cleanup: Remove unnecessary code to resume animations from CachedFrameBase::r...
Daniel Bates
Reported
2018-08-09 17:08:08 PDT
CachedFrameBase::restore() starts off as: [[ void CachedFrameBase::restore() { ASSERT(m_document->view() == m_view); ... if (RuntimeEnabledFeatures::sharedFeatures().webAnimationsCSSIntegrationEnabled()) m_document->timeline().resumeAnimations(); else frame.animation().resumeAnimationsForDocument(m_document.get()); m_document->resume(ReasonForSuspension::PageCache); ... ]]] <
https://trac.webkit.org/browser/trunk/Source/WebCore/history/CachedFrame.cpp?rev=234703#L88
> And Document::resume() starts off as: [[ void Document::resume(ReasonForSuspension reason) { if (!m_isSuspended) return; ... if (RuntimeEnabledFeatures::sharedFeatures().webAnimationsCSSIntegrationEnabled()) timeline().resumeAnimations(); else m_frame->animation().resumeAnimationsForDocument(this); ... ]] <
https://trac.webkit.org/browser/trunk/Source/WebCore/dom/Document.cpp?rev=234703#L4942
> It is not necessary for CachedFrameBase::restore() to explicitly resume animations because Document will do this for us when Document::resume() is called.
Attachments
Patch
(1.74 KB, patch)
2018-08-09 17:13 PDT
,
Daniel Bates
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Daniel Bates
Comment 1
2018-08-09 17:13:01 PDT
Created
attachment 346877
[details]
Patch
Daniel Bates
Comment 2
2018-08-10 14:53:10 PDT
Comment on
attachment 346877
[details]
Patch Clearing flags on attachment: 346877 Committed
r234771
: <
https://trac.webkit.org/changeset/234771
>
Daniel Bates
Comment 3
2018-08-10 14:53:12 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 4
2018-08-10 14:54:16 PDT
<
rdar://problem/43158193
>
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