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 1647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1658 subtreeReasons |= CompositingReasonPerspectiveWith3DDescendants; | 1658 subtreeReasons |= CompositingReasonPerspectiveWith3DDescendants; |
1659 } | 1659 } |
1660 | 1660 |
1661 return subtreeReasons; | 1661 return subtreeReasons; |
1662 } | 1662 } |
1663 | 1663 |
1664 bool RenderLayerCompositor::isRunningAcceleratedTransformAnimation(RenderObject*
renderer) const | 1664 bool RenderLayerCompositor::isRunningAcceleratedTransformAnimation(RenderObject*
renderer) const |
1665 { | 1665 { |
1666 if (!m_compositingReasonFinder.hasAnimationTrigger()) | 1666 if (!m_compositingReasonFinder.hasAnimationTrigger()) |
1667 return false; | 1667 return false; |
1668 return hasActiveAnimations(*renderer, CSSPropertyWebkitTransform); | 1668 return hasActiveAnimations(*renderer, CSSPropertyTransform); |
1669 } | 1669 } |
1670 | 1670 |
1671 // If an element has negative z-index children, those children render in front o
f the | 1671 // If an element has negative z-index children, those children render in front o
f the |
1672 // layer background, so we need an extra 'contents' layer for the foreground of
the layer | 1672 // layer background, so we need an extra 'contents' layer for the foreground of
the layer |
1673 // object. | 1673 // object. |
1674 bool RenderLayerCompositor::needsContentsCompositingLayer(const RenderLayer* lay
er) const | 1674 bool RenderLayerCompositor::needsContentsCompositingLayer(const RenderLayer* lay
er) const |
1675 { | 1675 { |
1676 return layer->stackingNode()->hasNegativeZOrderList(); | 1676 return layer->stackingNode()->hasNegativeZOrderList(); |
1677 } | 1677 } |
1678 | 1678 |
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2243 } else if (graphicsLayer == m_scrollLayer.get()) { | 2243 } else if (graphicsLayer == m_scrollLayer.get()) { |
2244 name = "LocalFrame Scrolling Layer"; | 2244 name = "LocalFrame Scrolling Layer"; |
2245 } else { | 2245 } else { |
2246 ASSERT_NOT_REACHED(); | 2246 ASSERT_NOT_REACHED(); |
2247 } | 2247 } |
2248 | 2248 |
2249 return name; | 2249 return name; |
2250 } | 2250 } |
2251 | 2251 |
2252 } // namespace WebCore | 2252 } // namespace WebCore |
OLD | NEW |