OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) | 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) |
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) |
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
7 * Copyright (C) 2010 Google Inc. All rights reserved. | 7 * Copyright (C) 2010 Google Inc. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
996 LayoutUnit left = 0; | 996 LayoutUnit left = 0; |
997 LayoutUnit top = 0; | 997 LayoutUnit top = 0; |
998 IntSize positioningAreaSize; | 998 IntSize positioningAreaSize; |
999 IntRect snappedPaintRect = pixelSnappedIntRect(paintRect); | 999 IntRect snappedPaintRect = pixelSnappedIntRect(paintRect); |
1000 | 1000 |
1001 // Determine the background positioning area and set destRect to the backgro
und painting area. | 1001 // Determine the background positioning area and set destRect to the backgro
und painting area. |
1002 // destRect will be adjusted later if the background is non-repeating. | 1002 // destRect will be adjusted later if the background is non-repeating. |
1003 // FIXME: transforms spec says that fixed backgrounds behave like scroll ins
ide transforms. | 1003 // FIXME: transforms spec says that fixed backgrounds behave like scroll ins
ide transforms. |
1004 bool fixedAttachment = fillLayer->attachment() == FixedBackgroundAttachment; | 1004 bool fixedAttachment = fillLayer->attachment() == FixedBackgroundAttachment; |
1005 | 1005 |
1006 #if ENABLE(FAST_MOBILE_SCROLLING) | 1006 if (RuntimeEnabledFeatures::fastMobileScrollingEnabled() |
1007 if (view()->frameView() && view()->frameView()->shouldAttemptToScrollUsingFa
stPath()) { | 1007 && view()->frameView() |
| 1008 && view()->frameView()->shouldAttemptToScrollUsingFastPath()) { |
1008 // As a side effect of an optimization to blit on scroll, we do not hono
r the CSS | 1009 // As a side effect of an optimization to blit on scroll, we do not hono
r the CSS |
1009 // property "background-attachment: fixed" because it may result in rend
ering | 1010 // property "background-attachment: fixed" because it may result in rend
ering |
1010 // artifacts. Note, these artifacts only appear if we are blitting on sc
roll of | 1011 // artifacts. Note, these artifacts only appear if we are blitting on sc
roll of |
1011 // a page that has fixed background images. | 1012 // a page that has fixed background images. |
1012 fixedAttachment = false; | 1013 fixedAttachment = false; |
1013 } | 1014 } |
1014 #endif | |
1015 | 1015 |
1016 if (!fixedAttachment) { | 1016 if (!fixedAttachment) { |
1017 geometry.setDestRect(snappedPaintRect); | 1017 geometry.setDestRect(snappedPaintRect); |
1018 | 1018 |
1019 LayoutUnit right = 0; | 1019 LayoutUnit right = 0; |
1020 LayoutUnit bottom = 0; | 1020 LayoutUnit bottom = 0; |
1021 // Scroll and Local. | 1021 // Scroll and Local. |
1022 if (fillLayer->origin() != BorderFillBox) { | 1022 if (fillLayer->origin() != BorderFillBox) { |
1023 left = borderLeft(); | 1023 left = borderLeft(); |
1024 right = borderRight(); | 1024 right = borderRight(); |
(...skipping 1811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2836 ASSERT(!beforeChild || toBoxModelObject == beforeChild->parent()); | 2836 ASSERT(!beforeChild || toBoxModelObject == beforeChild->parent()); |
2837 for (RenderObject* child = startChild; child && child != endChild; ) { | 2837 for (RenderObject* child = startChild; child && child != endChild; ) { |
2838 // Save our next sibling as moveChildTo will clear it. | 2838 // Save our next sibling as moveChildTo will clear it. |
2839 RenderObject* nextSibling = child->nextSibling(); | 2839 RenderObject* nextSibling = child->nextSibling(); |
2840 moveChildTo(toBoxModelObject, child, beforeChild, fullRemoveInsert); | 2840 moveChildTo(toBoxModelObject, child, beforeChild, fullRemoveInsert); |
2841 child = nextSibling; | 2841 child = nextSibling; |
2842 } | 2842 } |
2843 } | 2843 } |
2844 | 2844 |
2845 } // namespace WebCore | 2845 } // namespace WebCore |
OLD | NEW |