| OLD | NEW |
| 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 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 832 if (RuntimeEnabledFeatures::cssCompositingEnabled()) | 832 if (RuntimeEnabledFeatures::cssCompositingEnabled()) |
| 833 return rareNonInheritedData->m_isolation != IsolationAuto; | 833 return rareNonInheritedData->m_isolation != IsolationAuto; |
| 834 return false; | 834 return false; |
| 835 } | 835 } |
| 836 | 836 |
| 837 bool RenderStyle::hasWillChangeCompositingHint() const | 837 bool RenderStyle::hasWillChangeCompositingHint() const |
| 838 { | 838 { |
| 839 for (size_t i = 0; i < rareNonInheritedData->m_willChange->m_properties.size
(); ++i) { | 839 for (size_t i = 0; i < rareNonInheritedData->m_willChange->m_properties.size
(); ++i) { |
| 840 switch (rareNonInheritedData->m_willChange->m_properties[i]) { | 840 switch (rareNonInheritedData->m_willChange->m_properties[i]) { |
| 841 case CSSPropertyOpacity: | 841 case CSSPropertyOpacity: |
| 842 case CSSPropertyTransform: |
| 842 case CSSPropertyWebkitTransform: | 843 case CSSPropertyWebkitTransform: |
| 843 case CSSPropertyLeft: | 844 case CSSPropertyLeft: |
| 844 case CSSPropertyTop: | 845 case CSSPropertyTop: |
| 845 case CSSPropertyRight: | 846 case CSSPropertyRight: |
| 846 case CSSPropertyBottom: | 847 case CSSPropertyBottom: |
| 847 case CSSPropertyWebkitFilter: | 848 case CSSPropertyWebkitFilter: |
| 848 return true; | 849 return true; |
| 849 default: | 850 default: |
| 850 break; | 851 break; |
| 851 } | 852 } |
| (...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1655 // right | 1656 // right |
| 1656 radiiSum = radii.topRight().height() + radii.bottomRight().height(); | 1657 radiiSum = radii.topRight().height() + radii.bottomRight().height(); |
| 1657 if (radiiSum > rect.height()) | 1658 if (radiiSum > rect.height()) |
| 1658 factor = std::min(rect.height() / radiiSum, factor); | 1659 factor = std::min(rect.height() / radiiSum, factor); |
| 1659 | 1660 |
| 1660 ASSERT(factor <= 1); | 1661 ASSERT(factor <= 1); |
| 1661 return factor; | 1662 return factor; |
| 1662 } | 1663 } |
| 1663 | 1664 |
| 1664 } // namespace WebCore | 1665 } // namespace WebCore |
| OLD | NEW |