| 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 1691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1702 bool RenderLayerCompositor::requiresCompositingForBackfaceVisibilityHidden(Rende
rObject* renderer) const | 1702 bool RenderLayerCompositor::requiresCompositingForBackfaceVisibilityHidden(Rende
rObject* renderer) const |
| 1703 { | 1703 { |
| 1704 return canRender3DTransforms() && renderer->style()->backfaceVisibility() ==
BackfaceVisibilityHidden; | 1704 return canRender3DTransforms() && renderer->style()->backfaceVisibility() ==
BackfaceVisibilityHidden; |
| 1705 } | 1705 } |
| 1706 | 1706 |
| 1707 bool RenderLayerCompositor::requiresCompositingForAnimation(RenderObject* render
er) const | 1707 bool RenderLayerCompositor::requiresCompositingForAnimation(RenderObject* render
er) const |
| 1708 { | 1708 { |
| 1709 if (!(m_compositingTriggers & ChromeClient::AnimationTrigger)) | 1709 if (!(m_compositingTriggers & ChromeClient::AnimationTrigger)) |
| 1710 return false; | 1710 return false; |
| 1711 | 1711 |
| 1712 if (!RuntimeEnabledFeatures::webAnimationsEnabled()) { | 1712 if (!RuntimeEnabledFeatures::webAnimationsCSSEnabled()) { |
| 1713 // FIXME: Remove this condition once force-compositing-mode is enabled o
n all platforms. | 1713 // FIXME: Remove this condition once force-compositing-mode is enabled o
n all platforms. |
| 1714 bool shouldAccelerateOpacity = inCompositingMode(); | 1714 bool shouldAccelerateOpacity = inCompositingMode(); |
| 1715 return renderer->animation().isRunningAcceleratableAnimationOnRenderer(r
enderer, shouldAccelerateOpacity); | 1715 return renderer->animation().isRunningAcceleratableAnimationOnRenderer(r
enderer, shouldAccelerateOpacity); |
| 1716 } | 1716 } |
| 1717 | 1717 |
| 1718 return shouldCompositeForActiveAnimations(*renderer, inCompositingMode()); | 1718 return shouldCompositeForActiveAnimations(*renderer, inCompositingMode()); |
| 1719 } | 1719 } |
| 1720 | 1720 |
| 1721 bool RenderLayerCompositor::requiresCompositingForTransition(RenderObject* rende
rer) const | 1721 bool RenderLayerCompositor::requiresCompositingForTransition(RenderObject* rende
rer) const |
| 1722 { | 1722 { |
| (...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2484 } else if (graphicsLayer == m_scrollLayer.get()) { | 2484 } else if (graphicsLayer == m_scrollLayer.get()) { |
| 2485 name = "Frame Scrolling Layer"; | 2485 name = "Frame Scrolling Layer"; |
| 2486 } else { | 2486 } else { |
| 2487 ASSERT_NOT_REACHED(); | 2487 ASSERT_NOT_REACHED(); |
| 2488 } | 2488 } |
| 2489 | 2489 |
| 2490 return name; | 2490 return name; |
| 2491 } | 2491 } |
| 2492 | 2492 |
| 2493 } // namespace WebCore | 2493 } // namespace WebCore |
| OLD | NEW |