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

Unified Diff: Source/core/rendering/RenderObject.cpp

Issue 187793005: Make RenderObject::compositorDrivenAcceleratedScrollingEnabled smarter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/RenderObject.cpp
diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp
index 4f22b7c2f34e4954a536e256676ab9171f9ee50d..2b6ae7a1b380aa24cd0a05fc8ac3a1fc2914f332 100644
--- a/Source/core/rendering/RenderObject.cpp
+++ b/Source/core/rendering/RenderObject.cpp
@@ -2765,11 +2765,10 @@ bool RenderObject::acceleratedCompositingForOverflowScrollEnabled() const
// overflow scroll is ready (crbug.com/254111).
bool RenderObject::compositorDrivenAcceleratedScrollingEnabled() const
{
- if (!acceleratedCompositingForOverflowScrollEnabled())
- return false;
-
const Settings* settings = document().settings();
- return settings && settings->compositorDrivenAcceleratedScrollingEnabled();
+ if (!settings)
+ return false;
+ return settings->acceleratedCompositingForOverflowScrollEnabled() && settings->compositorDrivenAcceleratedScrollingEnabled();
}
bool RenderObject::hitTest(const HitTestRequest& request, HitTestResult& result, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestFilter hitTestFilter)
« 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