| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 // FIXME: If this layer's overlap bounds include its children, we don't
need to add its | 761 // FIXME: If this layer's overlap bounds include its children, we don't
need to add its |
| 762 // children's bounds to the overlap map. | 762 // children's bounds to the overlap map. |
| 763 layerBounds = enclosingIntRect(overlapMap.geometryMap().absoluteRect(lay
er->overlapBounds())); | 763 layerBounds = enclosingIntRect(overlapMap.geometryMap().absoluteRect(lay
er->overlapBounds())); |
| 764 // Empty rects never intersect, but we need them to for the purposes of
overlap testing. | 764 // Empty rects never intersect, but we need them to for the purposes of
overlap testing. |
| 765 if (layerBounds.isEmpty()) | 765 if (layerBounds.isEmpty()) |
| 766 layerBounds.setSize(IntSize(1, 1)); | 766 layerBounds.setSize(IntSize(1, 1)); |
| 767 boundsComputed = true; | 767 boundsComputed = true; |
| 768 } | 768 } |
| 769 | 769 |
| 770 IntRect clipRect = pixelSnappedIntRect(layer->backgroundClipRect(RenderLayer
::ClipRectsContext(rootRenderLayer(), 0, AbsoluteClipRects)).rect()); // FIXME:
Incorrect for CSS regions. | 770 IntRect clipRect = pixelSnappedIntRect(layer->backgroundClipRect(RenderLayer
::ClipRectsContext(rootRenderLayer(), 0, AbsoluteClipRects)).rect()); // FIXME:
Incorrect for CSS regions. |
| 771 clipRect.scale(pageScaleFactor()); | 771 if (Settings* settings = m_renderView->document()->settings()) |
| 772 if (!settings->applyPageScaleFactorInCompositor()) |
| 773 clipRect.scale(pageScaleFactor()); |
| 772 clipRect.intersect(layerBounds); | 774 clipRect.intersect(layerBounds); |
| 773 overlapMap.add(layer, clipRect); | 775 overlapMap.add(layer, clipRect); |
| 774 } | 776 } |
| 775 | 777 |
| 776 void RenderLayerCompositor::addToOverlapMapRecursive(OverlapMap& overlapMap, Ren
derLayer* layer, RenderLayer* ancestorLayer) | 778 void RenderLayerCompositor::addToOverlapMapRecursive(OverlapMap& overlapMap, Ren
derLayer* layer, RenderLayer* ancestorLayer) |
| 777 { | 779 { |
| 778 if (!canBeComposited(layer) || overlapMap.contains(layer)) | 780 if (!canBeComposited(layer) || overlapMap.contains(layer)) |
| 779 return; | 781 return; |
| 780 | 782 |
| 781 // A null ancestorLayer is an indication that 'layer' has already been pushe
d. | 783 // A null ancestorLayer is an indication that 'layer' has already been pushe
d. |
| (...skipping 2131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2913 #if ENABLE(RUBBER_BANDING) | 2915 #if ENABLE(RUBBER_BANDING) |
| 2914 info.addMember(m_layerForOverhangAreas, "layerForOverhangAreas"); | 2916 info.addMember(m_layerForOverhangAreas, "layerForOverhangAreas"); |
| 2915 info.addMember(m_contentShadowLayer, "contentShadowLayer"); | 2917 info.addMember(m_contentShadowLayer, "contentShadowLayer"); |
| 2916 #endif | 2918 #endif |
| 2917 info.addMember(m_layerUpdater, "layerUpdater"); | 2919 info.addMember(m_layerUpdater, "layerUpdater"); |
| 2918 } | 2920 } |
| 2919 | 2921 |
| 2920 } // namespace WebCore | 2922 } // namespace WebCore |
| 2921 | 2923 |
| 2922 #endif // USE(ACCELERATED_COMPOSITING) | 2924 #endif // USE(ACCELERATED_COMPOSITING) |
| OLD | NEW |