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 2195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2206 } | 2206 } |
2207 | 2207 |
2208 #if ENABLE(RUBBER_BANDING) | 2208 #if ENABLE(RUBBER_BANDING) |
2209 bool RenderLayerCompositor::requiresOverhangAreasLayer() const | 2209 bool RenderLayerCompositor::requiresOverhangAreasLayer() const |
2210 { | 2210 { |
2211 // We don't want a layer if this is a subframe. | 2211 // We don't want a layer if this is a subframe. |
2212 if (!isMainFrame()) | 2212 if (!isMainFrame()) |
2213 return false; | 2213 return false; |
2214 | 2214 |
2215 // We do want a layer if we have a scrolling coordinator and can scroll. | 2215 // We do want a layer if we have a scrolling coordinator and can scroll. |
2216 if (scrollingCoordinator() && m_renderView->frameView()->hasOpaqueBackground
() && !m_renderView->frameView()->prohibitsScrolling()) | 2216 if (scrollingCoordinator() && m_renderView->frameView()->hasOpaqueBackground
()) |
2217 return true; | 2217 return true; |
2218 | 2218 |
2219 // Chromium always wants a layer. | 2219 // Chromium always wants a layer. |
2220 return true; | 2220 return true; |
2221 } | 2221 } |
2222 | 2222 |
2223 bool RenderLayerCompositor::requiresContentShadowLayer() const | 2223 bool RenderLayerCompositor::requiresContentShadowLayer() const |
2224 { | 2224 { |
2225 // We don't want a layer if this is a subframe. | 2225 // We don't want a layer if this is a subframe. |
2226 if (!isMainFrame()) | 2226 if (!isMainFrame()) |
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2733 | 2733 |
2734 Page* RenderLayerCompositor::page() const | 2734 Page* RenderLayerCompositor::page() const |
2735 { | 2735 { |
2736 if (Frame* frame = m_renderView->frameView()->frame()) | 2736 if (Frame* frame = m_renderView->frameView()->frame()) |
2737 return frame->page(); | 2737 return frame->page(); |
2738 | 2738 |
2739 return 0; | 2739 return 0; |
2740 } | 2740 } |
2741 | 2741 |
2742 } // namespace WebCore | 2742 } // namespace WebCore |
OLD | NEW |