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 1977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1988 return renderer->hasFilter(); | 1988 return renderer->hasFilter(); |
1989 } | 1989 } |
1990 | 1990 |
1991 bool RenderLayerCompositor::requiresCompositingForBlending(RenderObject* rendere
r) const | 1991 bool RenderLayerCompositor::requiresCompositingForBlending(RenderObject* rendere
r) const |
1992 { | 1992 { |
1993 return renderer->hasBlendMode(); | 1993 return renderer->hasBlendMode(); |
1994 } | 1994 } |
1995 | 1995 |
1996 bool RenderLayerCompositor::requiresCompositingForOverflowScrollingParent(const
RenderLayer* layer) const | 1996 bool RenderLayerCompositor::requiresCompositingForOverflowScrollingParent(const
RenderLayer* layer) const |
1997 { | 1997 { |
1998 if (!layer->compositorDrivenAcceleratedScrollingEnabled()) | 1998 if (!layer->useCompositorDrivenAcceleratedScrolling()) |
1999 return false; | 1999 return false; |
2000 | 2000 |
2001 TRACE_EVENT0("comp-scroll", "RenderLayerCompositor::requiresCompositingForOv
erflowScrollingParent"); | 2001 TRACE_EVENT0("comp-scroll", "RenderLayerCompositor::requiresCompositingForOv
erflowScrollingParent"); |
2002 | 2002 |
2003 // A layer scrolls with its containing block. So to find the overflow scroll
ing layer | 2003 // A layer scrolls with its containing block. So to find the overflow scroll
ing layer |
2004 // that we scroll with respect to, we must ascend the layer tree until we re
ach the | 2004 // that we scroll with respect to, we must ascend the layer tree until we re
ach the |
2005 // first overflow scrolling div at or above our containing block. I will ref
er to this | 2005 // first overflow scrolling div at or above our containing block. I will ref
er to this |
2006 // layer as our 'scrolling ancestor'. | 2006 // layer as our 'scrolling ancestor'. |
2007 // | 2007 // |
2008 // Now, if we reside in a normal flow list, then we will naturally scroll wi
th our scrolling | 2008 // Now, if we reside in a normal flow list, then we will naturally scroll wi
th our scrolling |
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2738 | 2738 |
2739 Page* RenderLayerCompositor::page() const | 2739 Page* RenderLayerCompositor::page() const |
2740 { | 2740 { |
2741 if (Frame* frame = m_renderView->frameView()->frame()) | 2741 if (Frame* frame = m_renderView->frameView()->frame()) |
2742 return frame->page(); | 2742 return frame->page(); |
2743 | 2743 |
2744 return 0; | 2744 return 0; |
2745 } | 2745 } |
2746 | 2746 |
2747 } // namespace WebCore | 2747 } // namespace WebCore |
OLD | NEW |