| 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 1641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1652 subtreeReasons |= CompositingReasonPerspectiveWith3DDescendants; | 1652 subtreeReasons |= CompositingReasonPerspectiveWith3DDescendants; |
| 1653 } | 1653 } |
| 1654 | 1654 |
| 1655 return subtreeReasons; | 1655 return subtreeReasons; |
| 1656 } | 1656 } |
| 1657 | 1657 |
| 1658 bool RenderLayerCompositor::isRunningAcceleratedTransformAnimation(RenderObject*
renderer) const | 1658 bool RenderLayerCompositor::isRunningAcceleratedTransformAnimation(RenderObject*
renderer) const |
| 1659 { | 1659 { |
| 1660 if (!m_compositingReasonFinder.hasAnimationTrigger()) | 1660 if (!m_compositingReasonFinder.hasAnimationTrigger()) |
| 1661 return false; | 1661 return false; |
| 1662 return hasActiveAnimations(*renderer, CSSPropertyWebkitTransform); | 1662 return hasActiveAnimations(*renderer, CSSPropertyTransform); |
| 1663 } | 1663 } |
| 1664 | 1664 |
| 1665 // If an element has negative z-index children, those children render in front o
f the | 1665 // If an element has negative z-index children, those children render in front o
f the |
| 1666 // layer background, so we need an extra 'contents' layer for the foreground of
the layer | 1666 // layer background, so we need an extra 'contents' layer for the foreground of
the layer |
| 1667 // object. | 1667 // object. |
| 1668 bool RenderLayerCompositor::needsContentsCompositingLayer(const RenderLayer* lay
er) const | 1668 bool RenderLayerCompositor::needsContentsCompositingLayer(const RenderLayer* lay
er) const |
| 1669 { | 1669 { |
| 1670 return layer->stackingNode()->hasNegativeZOrderList(); | 1670 return layer->stackingNode()->hasNegativeZOrderList(); |
| 1671 } | 1671 } |
| 1672 | 1672 |
| (...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2150 } else if (graphicsLayer == m_scrollLayer.get()) { | 2150 } else if (graphicsLayer == m_scrollLayer.get()) { |
| 2151 name = "LocalFrame Scrolling Layer"; | 2151 name = "LocalFrame Scrolling Layer"; |
| 2152 } else { | 2152 } else { |
| 2153 ASSERT_NOT_REACHED(); | 2153 ASSERT_NOT_REACHED(); |
| 2154 } | 2154 } |
| 2155 | 2155 |
| 2156 return name; | 2156 return name; |
| 2157 } | 2157 } |
| 2158 | 2158 |
| 2159 } // namespace WebCore | 2159 } // namespace WebCore |
| OLD | NEW |