| 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 1678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1689 subtreeReasons |= CompositingReasonPerspectiveWith3DDescendants; | 1689 subtreeReasons |= CompositingReasonPerspectiveWith3DDescendants; |
| 1690 } | 1690 } |
| 1691 | 1691 |
| 1692 return subtreeReasons; | 1692 return subtreeReasons; |
| 1693 } | 1693 } |
| 1694 | 1694 |
| 1695 bool RenderLayerCompositor::isRunningAcceleratedTransformAnimation(RenderObject*
renderer) const | 1695 bool RenderLayerCompositor::isRunningAcceleratedTransformAnimation(RenderObject*
renderer) const |
| 1696 { | 1696 { |
| 1697 if (!m_compositingReasonFinder.hasAnimationTrigger()) | 1697 if (!m_compositingReasonFinder.hasAnimationTrigger()) |
| 1698 return false; | 1698 return false; |
| 1699 return hasActiveAnimations(*renderer, CSSPropertyWebkitTransform); | 1699 return hasActiveAnimations(*renderer, CSSPropertyTransform); |
| 1700 } | 1700 } |
| 1701 | 1701 |
| 1702 // If an element has negative z-index children, those children render in front o
f the | 1702 // If an element has negative z-index children, those children render in front o
f the |
| 1703 // layer background, so we need an extra 'contents' layer for the foreground of
the layer | 1703 // layer background, so we need an extra 'contents' layer for the foreground of
the layer |
| 1704 // object. | 1704 // object. |
| 1705 bool RenderLayerCompositor::needsContentsCompositingLayer(const RenderLayer* lay
er) const | 1705 bool RenderLayerCompositor::needsContentsCompositingLayer(const RenderLayer* lay
er) const |
| 1706 { | 1706 { |
| 1707 return layer->stackingNode()->hasNegativeZOrderList(); | 1707 return layer->stackingNode()->hasNegativeZOrderList(); |
| 1708 } | 1708 } |
| 1709 | 1709 |
| (...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2187 } else if (graphicsLayer == m_scrollLayer.get()) { | 2187 } else if (graphicsLayer == m_scrollLayer.get()) { |
| 2188 name = "LocalFrame Scrolling Layer"; | 2188 name = "LocalFrame Scrolling Layer"; |
| 2189 } else { | 2189 } else { |
| 2190 ASSERT_NOT_REACHED(); | 2190 ASSERT_NOT_REACHED(); |
| 2191 } | 2191 } |
| 2192 | 2192 |
| 2193 return name; | 2193 return name; |
| 2194 } | 2194 } |
| 2195 | 2195 |
| 2196 } // namespace WebCore | 2196 } // namespace WebCore |
| OLD | NEW |