Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1495)

Unified Diff: Source/core/rendering/compositing/RenderLayerCompositor.cpp

Issue 233963002: Remove null-check for page. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/compositing/RenderLayerCompositor.cpp
diff --git a/Source/core/rendering/compositing/RenderLayerCompositor.cpp b/Source/core/rendering/compositing/RenderLayerCompositor.cpp
index daa0cdfb5dd2afebe9fbed3eddf9334432e7cf17..cc6f362f9ffcbd80e43ccdbf93611c94941d4bc5 100644
--- a/Source/core/rendering/compositing/RenderLayerCompositor.cpp
+++ b/Source/core/rendering/compositing/RenderLayerCompositor.cpp
@@ -152,10 +152,8 @@ void RenderLayerCompositor::cacheAcceleratedCompositingFlags()
// We allow the chrome to override the settings, in case the page is rendered
// on a chrome that doesn't allow accelerated compositing.
if (hasAcceleratedCompositing) {
- if (page()) {
- m_compositingReasonFinder.updateTriggers();
- hasAcceleratedCompositing = m_compositingReasonFinder.hasTriggers();
- }
+ m_compositingReasonFinder.updateTriggers();
+ hasAcceleratedCompositing = m_compositingReasonFinder.hasTriggers();
}
showRepaintCounter = settings->showRepaintCounter();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698