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 2082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2093 | RenderLayer::ExcludeHiddenDescendants | RenderLayer::DontConstrain
ForMask | RenderLayer::IncludeCompositedDescendants); | 2093 | RenderLayer::ExcludeHiddenDescendants | RenderLayer::DontConstrain
ForMask | RenderLayer::IncludeCompositedDescendants); |
2094 layerBounds.scale(frameView->frame()->frameScaleFactor()); | 2094 layerBounds.scale(frameView->frame()->frameScaleFactor()); |
2095 if (!viewBounds.intersects(enclosingIntRect(layerBounds))) { | 2095 if (!viewBounds.intersects(enclosingIntRect(layerBounds))) { |
2096 if (viewportConstrainedNotCompositedReason) | 2096 if (viewportConstrainedNotCompositedReason) |
2097 *viewportConstrainedNotCompositedReason = RenderLayer::NotCompos
itedForBoundsOutOfView; | 2097 *viewportConstrainedNotCompositedReason = RenderLayer::NotCompos
itedForBoundsOutOfView; |
2098 return false; | 2098 return false; |
2099 } | 2099 } |
2100 } | 2100 } |
2101 | 2101 |
2102 bool paintsContent = layer->isVisuallyNonEmpty() || layer->hasVisibleDescend
ant(); | 2102 bool paintsContent = layer->isVisuallyNonEmpty() || layer->hasVisibleDescend
ant(); |
2103 if (!paintsContent) | 2103 if (!paintsContent) { |
| 2104 if (viewportConstrainedNotCompositedReason) |
| 2105 *viewportConstrainedNotCompositedReason = RenderLayer::NotComposited
ForNoVisibleContent; |
2104 return false; | 2106 return false; |
| 2107 } |
2105 | 2108 |
2106 return true; | 2109 return true; |
2107 } | 2110 } |
2108 | 2111 |
2109 bool RenderLayerCompositor::requiresCompositingForOverflowScrolling(const Render
Layer* layer) const | 2112 bool RenderLayerCompositor::requiresCompositingForOverflowScrolling(const Render
Layer* layer) const |
2110 { | 2113 { |
2111 return layer->needsCompositedScrolling(); | 2114 return layer->needsCompositedScrolling(); |
2112 } | 2115 } |
2113 | 2116 |
2114 bool RenderLayerCompositor::isRunningAcceleratedTransformAnimation(RenderObject*
renderer) const | 2117 bool RenderLayerCompositor::isRunningAcceleratedTransformAnimation(RenderObject*
renderer) const |
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2915 #if ENABLE(RUBBER_BANDING) | 2918 #if ENABLE(RUBBER_BANDING) |
2916 info.addMember(m_layerForOverhangAreas, "layerForOverhangAreas"); | 2919 info.addMember(m_layerForOverhangAreas, "layerForOverhangAreas"); |
2917 info.addMember(m_contentShadowLayer, "contentShadowLayer"); | 2920 info.addMember(m_contentShadowLayer, "contentShadowLayer"); |
2918 #endif | 2921 #endif |
2919 info.addMember(m_layerUpdater, "layerUpdater"); | 2922 info.addMember(m_layerUpdater, "layerUpdater"); |
2920 } | 2923 } |
2921 | 2924 |
2922 } // namespace WebCore | 2925 } // namespace WebCore |
2923 | 2926 |
2924 #endif // USE(ACCELERATED_COMPOSITING) | 2927 #endif // USE(ACCELERATED_COMPOSITING) |
OLD | NEW |