Refactor Document::suspend/resume
authorkrollin@apple.com <krollin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Dec 2016 01:04:07 +0000 (01:04 +0000)
committerkrollin@apple.com <krollin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Dec 2016 01:04:07 +0000 (01:04 +0000)
commit7bdc892fa2c6942e31f573d8c93782b4f2fce7d3
treefa305770bb32a9fc84ec200eb6a93f6e288edd83
parent87d5cf8f2b31d54b9e272d6a409d20ded96354d5
Refactor Document::suspend/resume
https://bugs.webkit.org/show_bug.cgi?id=165921

Reviewed by Chris Dumez.

Update Document::suspend to call Document::suspendScheduledTasks
rather than duplicating the latter's code within itself. Similar
treatment of Document::resume and Document::resumeScheduledTasks.

No new tests -- no new functionality, just refactoring existing code.

* dom/Document.cpp:
(WebCore::Document::suspend):
(WebCore::Document::resume):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@209890 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/dom/Document.cpp