Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: Source/core/rendering/RenderLayerCompositor.cpp

Issue 85463002: Web Animations: Remove WebAnimations runtime feature in favor of WebAnimationsCSS (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderLayer.cpp ('k') | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderLayer.cpp ('k') | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698