| 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);
|
|
|