equal
deleted
inserted
replaced
555 IntSize positioningAreaSize; |
555 IntSize positioningAreaSize; |
556 |
556 |
557 // Determine the background positioning area and set destRect to the background painting area. |
557 // Determine the background positioning area and set destRect to the background painting area. |
558 // destRect will be adjusted later if the background is non-repeating. |
558 // destRect will be adjusted later if the background is non-repeating. |
559 bool fixedAttachment = fillLayer->attachment() == FixedBackgroundAttachment; |
559 bool fixedAttachment = fillLayer->attachment() == FixedBackgroundAttachment; |
|
560 |
|
561 #if ENABLE(FAST_MOBILE_SCROLLING) |
|
562 if (view()->frameView() && view()->frameView()->canBlitOnScroll()) { |
|
563 // As a side effect of an optimization to blit on scroll, we do not honor the CSS |
|
564 // property "background-attachment: fixed" because it may result in rendering |
|
565 // artifacts. Note, these artifacts only appear if we are blitting on scroll of |
|
566 // a page that has fixed background images. |
|
567 fixedAttachment = false; |
|
568 } |
|
569 #endif |
|
570 |
560 if (!fixedAttachment) { |
571 if (!fixedAttachment) { |
561 destRect = IntRect(tx, ty, w, h); |
572 destRect = IntRect(tx, ty, w, h); |
562 |
573 |
563 int right = 0; |
574 int right = 0; |
564 int bottom = 0; |
575 int bottom = 0; |