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

Side by Side Diff: Source/core/rendering/style/RenderStyle.cpp

Issue 212543003: CSS Transforms: Implement transform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 6 years, 8 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) 1999 Antti Koivisto (koivisto@kde.org) 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
4 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. 4 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 if (RuntimeEnabledFeatures::cssCompositingEnabled()) 831 if (RuntimeEnabledFeatures::cssCompositingEnabled())
832 return rareNonInheritedData->m_isolation != IsolationAuto; 832 return rareNonInheritedData->m_isolation != IsolationAuto;
833 return false; 833 return false;
834 } 834 }
835 835
836 bool RenderStyle::hasWillChangeCompositingHint() const 836 bool RenderStyle::hasWillChangeCompositingHint() const
837 { 837 {
838 for (size_t i = 0; i < rareNonInheritedData->m_willChange->m_properties.size (); ++i) { 838 for (size_t i = 0; i < rareNonInheritedData->m_willChange->m_properties.size (); ++i) {
839 switch (rareNonInheritedData->m_willChange->m_properties[i]) { 839 switch (rareNonInheritedData->m_willChange->m_properties[i]) {
840 case CSSPropertyOpacity: 840 case CSSPropertyOpacity:
841 case CSSPropertyTransform:
841 case CSSPropertyWebkitTransform: 842 case CSSPropertyWebkitTransform:
842 case CSSPropertyLeft: 843 case CSSPropertyLeft:
843 case CSSPropertyTop: 844 case CSSPropertyTop:
844 case CSSPropertyRight: 845 case CSSPropertyRight:
845 case CSSPropertyBottom: 846 case CSSPropertyBottom:
846 case CSSPropertyWebkitFilter: 847 case CSSPropertyWebkitFilter:
847 return true; 848 return true;
848 default: 849 default:
849 break; 850 break;
850 } 851 }
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after
1654 // right 1655 // right
1655 radiiSum = radii.topRight().height() + radii.bottomRight().height(); 1656 radiiSum = radii.topRight().height() + radii.bottomRight().height();
1656 if (radiiSum > rect.height()) 1657 if (radiiSum > rect.height())
1657 factor = std::min(rect.height() / radiiSum, factor); 1658 factor = std::min(rect.height() / radiiSum, factor);
1658 1659
1659 ASSERT(factor <= 1); 1660 ASSERT(factor <= 1);
1660 return factor; 1661 return factor;
1661 } 1662 }
1662 1663
1663 } // namespace WebCore 1664 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/compositing/RenderLayerCompositor.cpp ('k') | Source/platform/animation/KeyframeValueList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698