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

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

Issue 323123004: Replace compile time guard with runtime flag in blink and remove ENABLE_FAST_MOBILE_SCROLLING in gy… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix gni file. Created 6 years, 6 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 | « Source/config.gni ('k') | Source/core/rendering/RenderObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderBoxModelObject.cpp
diff --git a/Source/core/rendering/RenderBoxModelObject.cpp b/Source/core/rendering/RenderBoxModelObject.cpp
index 38c08e4008cdcd7d69132dbf8e0f63a0ec4dedd6..105395045960224f21122c57062e5cabf4c047df 100644
--- a/Source/core/rendering/RenderBoxModelObject.cpp
+++ b/Source/core/rendering/RenderBoxModelObject.cpp
@@ -1003,15 +1003,15 @@ void RenderBoxModelObject::calculateBackgroundImageGeometry(const RenderLayerMod
// FIXME: transforms spec says that fixed backgrounds behave like scroll inside transforms.
bool fixedAttachment = fillLayer->attachment() == FixedBackgroundAttachment;
-#if ENABLE(FAST_MOBILE_SCROLLING)
- if (view()->frameView() && view()->frameView()->shouldAttemptToScrollUsingFastPath()) {
+ if (RuntimeEnabledFeatures::fastMobileScrollingEnabled()
+ && view()->frameView()
+ && view()->frameView()->shouldAttemptToScrollUsingFastPath()) {
// As a side effect of an optimization to blit on scroll, we do not honor the CSS
// property "background-attachment: fixed" because it may result in rendering
// artifacts. Note, these artifacts only appear if we are blitting on scroll of
// a page that has fixed background images.
fixedAttachment = false;
}
-#endif
if (!fixedAttachment) {
geometry.setDestRect(snappedPaintRect);
« no previous file with comments | « Source/config.gni ('k') | Source/core/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698