Remove some unnecessary page cache checks in render tree code.
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Jan 2017 16:17:22 +0000 (16:17 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Jan 2017 16:17:22 +0000 (16:17 +0000)
commit0d6bc33c6c00269cff08c9a2aebcf71cca84d84d
treea40752ac061a673f43bea175adf98c9812b2628e
parenta0b6c45dc2570380124ff05244b23688c3443f0c
Remove some unnecessary page cache checks in render tree code.
<https://webkit.org/b/166728>

Reviewed by Antti Koivisto.

There is no render tree in the page cache, so we don't need to be checking
for it in renderer code.

* rendering/RenderElement.cpp:
(WebCore::shouldRepaintForImageAnimation):
(WebCore::RenderElement::newImageAnimationFrameAvailable):
* rendering/RenderImage.cpp:
(WebCore::RenderImage::imageChanged):
* rendering/RenderObject.cpp:
(WebCore::printRenderTreeForLiveDocuments):
(WebCore::printLayerTreeForLiveDocuments):
* rendering/RenderView.cpp:
(WebCore::RenderView::lazyRepaintTimerFired):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@210330 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderElement.cpp
Source/WebCore/rendering/RenderImage.cpp
Source/WebCore/rendering/RenderObject.cpp
Source/WebCore/rendering/RenderView.cpp