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 1683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1694 bool RenderLayerCompositor::requiresCompositingForBackfaceVisibilityHidden(Rende
rObject* renderer) const | 1694 bool RenderLayerCompositor::requiresCompositingForBackfaceVisibilityHidden(Rende
rObject* renderer) const |
1695 { | 1695 { |
1696 return canRender3DTransforms() && renderer->style()->backfaceVisibility() ==
BackfaceVisibilityHidden; | 1696 return canRender3DTransforms() && renderer->style()->backfaceVisibility() ==
BackfaceVisibilityHidden; |
1697 } | 1697 } |
1698 | 1698 |
1699 bool RenderLayerCompositor::requiresCompositingForAnimation(RenderObject* render
er) const | 1699 bool RenderLayerCompositor::requiresCompositingForAnimation(RenderObject* render
er) const |
1700 { | 1700 { |
1701 if (!(m_compositingTriggers & ChromeClient::AnimationTrigger)) | 1701 if (!(m_compositingTriggers & ChromeClient::AnimationTrigger)) |
1702 return false; | 1702 return false; |
1703 | 1703 |
1704 if (!RuntimeEnabledFeatures::webAnimationsEnabled()) { | 1704 if (!RuntimeEnabledFeatures::webAnimationsCSSEnabled()) { |
1705 // FIXME: Remove this condition once force-compositing-mode is enabled o
n all platforms. | 1705 // FIXME: Remove this condition once force-compositing-mode is enabled o
n all platforms. |
1706 bool shouldAccelerateOpacity = inCompositingMode(); | 1706 bool shouldAccelerateOpacity = inCompositingMode(); |
1707 return renderer->animation().isRunningAcceleratableAnimationOnRenderer(r
enderer, shouldAccelerateOpacity); | 1707 return renderer->animation().isRunningAcceleratableAnimationOnRenderer(r
enderer, shouldAccelerateOpacity); |
1708 } | 1708 } |
1709 | 1709 |
1710 return shouldCompositeForActiveAnimations(*renderer, inCompositingMode()); | 1710 return shouldCompositeForActiveAnimations(*renderer, inCompositingMode()); |
1711 } | 1711 } |
1712 | 1712 |
1713 bool RenderLayerCompositor::requiresCompositingForTransition(RenderObject* rende
rer) const | 1713 bool RenderLayerCompositor::requiresCompositingForTransition(RenderObject* rende
rer) const |
1714 { | 1714 { |
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2476 } else if (graphicsLayer == m_scrollLayer.get()) { | 2476 } else if (graphicsLayer == m_scrollLayer.get()) { |
2477 name = "Frame Scrolling Layer"; | 2477 name = "Frame Scrolling Layer"; |
2478 } else { | 2478 } else { |
2479 ASSERT_NOT_REACHED(); | 2479 ASSERT_NOT_REACHED(); |
2480 } | 2480 } |
2481 | 2481 |
2482 return name; | 2482 return name; |
2483 } | 2483 } |
2484 | 2484 |
2485 } // namespace WebCore | 2485 } // namespace WebCore |
OLD | NEW |