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 2172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2183 } | 2183 } |
2184 | 2184 |
2185 #if ENABLE(RUBBER_BANDING) | 2185 #if ENABLE(RUBBER_BANDING) |
2186 bool RenderLayerCompositor::requiresOverhangAreasLayer() const | 2186 bool RenderLayerCompositor::requiresOverhangAreasLayer() const |
2187 { | 2187 { |
2188 // We don't want a layer if this is a subframe. | 2188 // We don't want a layer if this is a subframe. |
2189 if (!isMainFrame()) | 2189 if (!isMainFrame()) |
2190 return false; | 2190 return false; |
2191 | 2191 |
2192 // We do want a layer if we have a scrolling coordinator and can scroll. | 2192 // We do want a layer if we have a scrolling coordinator and can scroll. |
2193 if (scrollingCoordinator() && m_renderView->frameView()->hasOpaqueBackground
() && !m_renderView->frameView()->prohibitsScrolling()) | 2193 if (scrollingCoordinator() && m_renderView->frameView()->hasOpaqueBackground
()) |
2194 return true; | 2194 return true; |
2195 | 2195 |
2196 // Chromium always wants a layer. | 2196 // Chromium always wants a layer. |
2197 return true; | 2197 return true; |
2198 } | 2198 } |
2199 | 2199 |
2200 bool RenderLayerCompositor::requiresContentShadowLayer() const | 2200 bool RenderLayerCompositor::requiresContentShadowLayer() const |
2201 { | 2201 { |
2202 // We don't want a layer if this is a subframe. | 2202 // We don't want a layer if this is a subframe. |
2203 if (!isMainFrame()) | 2203 if (!isMainFrame()) |
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2751 info.addMember(m_layerForScrollCorner, "layerForScrollCorner"); | 2751 info.addMember(m_layerForScrollCorner, "layerForScrollCorner"); |
2752 #if ENABLE(RUBBER_BANDING) | 2752 #if ENABLE(RUBBER_BANDING) |
2753 info.addMember(m_layerForOverhangAreas, "layerForOverhangAreas"); | 2753 info.addMember(m_layerForOverhangAreas, "layerForOverhangAreas"); |
2754 info.addMember(m_contentShadowLayer, "contentShadowLayer"); | 2754 info.addMember(m_contentShadowLayer, "contentShadowLayer"); |
2755 info.addMember(m_layerForTopOverhangArea, "layerForTopOverhangArea"); | 2755 info.addMember(m_layerForTopOverhangArea, "layerForTopOverhangArea"); |
2756 info.addMember(m_layerForBottomOverhangArea, "layerForBottomOverhangArea"); | 2756 info.addMember(m_layerForBottomOverhangArea, "layerForBottomOverhangArea"); |
2757 #endif | 2757 #endif |
2758 } | 2758 } |
2759 | 2759 |
2760 } // namespace WebCore | 2760 } // namespace WebCore |
OLD | NEW |