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 2177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2188 } | 2188 } |
2189 | 2189 |
2190 #if ENABLE(RUBBER_BANDING) | 2190 #if ENABLE(RUBBER_BANDING) |
2191 bool RenderLayerCompositor::requiresOverhangAreasLayer() const | 2191 bool RenderLayerCompositor::requiresOverhangAreasLayer() const |
2192 { | 2192 { |
2193 // We don't want a layer if this is a subframe. | 2193 // We don't want a layer if this is a subframe. |
2194 if (!isMainFrame()) | 2194 if (!isMainFrame()) |
2195 return false; | 2195 return false; |
2196 | 2196 |
2197 // We do want a layer if we have a scrolling coordinator and can scroll. | 2197 // We do want a layer if we have a scrolling coordinator and can scroll. |
2198 if (scrollingCoordinator() && m_renderView->frameView()->hasOpaqueBackground
() && !m_renderView->frameView()->prohibitsScrolling()) | 2198 if (scrollingCoordinator() && m_renderView->frameView()->hasOpaqueBackground
()) |
2199 return true; | 2199 return true; |
2200 | 2200 |
2201 // Chromium always wants a layer. | 2201 // Chromium always wants a layer. |
2202 return true; | 2202 return true; |
2203 } | 2203 } |
2204 | 2204 |
2205 bool RenderLayerCompositor::requiresContentShadowLayer() const | 2205 bool RenderLayerCompositor::requiresContentShadowLayer() const |
2206 { | 2206 { |
2207 // We don't want a layer if this is a subframe. | 2207 // We don't want a layer if this is a subframe. |
2208 if (!isMainFrame()) | 2208 if (!isMainFrame()) |
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2715 | 2715 |
2716 Page* RenderLayerCompositor::page() const | 2716 Page* RenderLayerCompositor::page() const |
2717 { | 2717 { |
2718 if (Frame* frame = m_renderView->frameView()->frame()) | 2718 if (Frame* frame = m_renderView->frameView()->frame()) |
2719 return frame->page(); | 2719 return frame->page(); |
2720 | 2720 |
2721 return 0; | 2721 return 0; |
2722 } | 2722 } |
2723 | 2723 |
2724 } // namespace WebCore | 2724 } // namespace WebCore |
OLD | NEW |