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

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

Issue 98663004: Add support for unprefixed CSS Transforms (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 6 years, 9 months 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
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 1678 matching lines...) Expand 10 before | Expand all | Expand 10 after
1689 subtreeReasons |= CompositingReasonPerspectiveWith3DDescendants; 1689 subtreeReasons |= CompositingReasonPerspectiveWith3DDescendants;
1690 } 1690 }
1691 1691
1692 return subtreeReasons; 1692 return subtreeReasons;
1693 } 1693 }
1694 1694
1695 bool RenderLayerCompositor::isRunningAcceleratedTransformAnimation(RenderObject* renderer) const 1695 bool RenderLayerCompositor::isRunningAcceleratedTransformAnimation(RenderObject* renderer) const
1696 { 1696 {
1697 if (!m_compositingReasonFinder.hasAnimationTrigger()) 1697 if (!m_compositingReasonFinder.hasAnimationTrigger())
1698 return false; 1698 return false;
1699 return hasActiveAnimations(*renderer, CSSPropertyWebkitTransform); 1699 return hasActiveAnimations(*renderer, CSSPropertyTransform);
1700 } 1700 }
1701 1701
1702 // If an element has negative z-index children, those children render in front o f the 1702 // If an element has negative z-index children, those children render in front o f the
1703 // layer background, so we need an extra 'contents' layer for the foreground of the layer 1703 // layer background, so we need an extra 'contents' layer for the foreground of the layer
1704 // object. 1704 // object.
1705 bool RenderLayerCompositor::needsContentsCompositingLayer(const RenderLayer* lay er) const 1705 bool RenderLayerCompositor::needsContentsCompositingLayer(const RenderLayer* lay er) const
1706 { 1706 {
1707 return layer->stackingNode()->hasNegativeZOrderList(); 1707 return layer->stackingNode()->hasNegativeZOrderList();
1708 } 1708 }
1709 1709
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
2187 } else if (graphicsLayer == m_scrollLayer.get()) { 2187 } else if (graphicsLayer == m_scrollLayer.get()) {
2188 name = "LocalFrame Scrolling Layer"; 2188 name = "LocalFrame Scrolling Layer";
2189 } else { 2189 } else {
2190 ASSERT_NOT_REACHED(); 2190 ASSERT_NOT_REACHED();
2191 } 2191 }
2192 2192
2193 return name; 2193 return name;
2194 } 2194 }
2195 2195
2196 } // namespace WebCore 2196 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/compositing/CompositingReasonFinder.cpp ('k') | Source/core/rendering/style/RenderStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698