Chromium Code Reviews| 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 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 862 return false; | 862 return false; |
| 863 } | 863 } |
| 864 | 864 |
| 865 bool RenderStyle::hasWillChangeCompositingHint() const | 865 bool RenderStyle::hasWillChangeCompositingHint() const |
| 866 { | 866 { |
| 867 for (size_t i = 0; i < rareNonInheritedData->m_willChange->m_properties.size (); ++i) { | 867 for (size_t i = 0; i < rareNonInheritedData->m_willChange->m_properties.size (); ++i) { |
| 868 switch (rareNonInheritedData->m_willChange->m_properties[i]) { | 868 switch (rareNonInheritedData->m_willChange->m_properties[i]) { |
| 869 case CSSPropertyOpacity: | 869 case CSSPropertyOpacity: |
| 870 case CSSPropertyTransform: | 870 case CSSPropertyTransform: |
| 871 case CSSPropertyWebkitTransform: | 871 case CSSPropertyWebkitTransform: |
| 872 case CSSPropertyLeft: | |
| 873 case CSSPropertyTop: | |
| 874 case CSSPropertyRight: | |
| 875 case CSSPropertyBottom: | |
| 876 case CSSPropertyWebkitFilter: | |
|
ajuma
2014/05/07 20:16:43
Are these removals still needed for correctness gi
abarth-chromium
2014/05/07 20:19:59
As I wrote in the change description, I think we s
| |
| 877 return true; | 872 return true; |
| 878 default: | 873 default: |
| 879 break; | 874 break; |
| 880 } | 875 } |
| 881 } | 876 } |
| 882 return false; | 877 return false; |
| 883 } | 878 } |
| 884 | 879 |
| 885 inline bool requireTransformOrigin(const Vector<RefPtr<TransformOperation> >& tr ansformOperations, RenderStyle::ApplyTransformOrigin applyOrigin) | 880 inline bool requireTransformOrigin(const Vector<RefPtr<TransformOperation> >& tr ansformOperations, RenderStyle::ApplyTransformOrigin applyOrigin) |
| 886 { | 881 { |
| (...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1652 // right | 1647 // right |
| 1653 radiiSum = radii.topRight().height() + radii.bottomRight().height(); | 1648 radiiSum = radii.topRight().height() + radii.bottomRight().height(); |
| 1654 if (radiiSum > rect.height()) | 1649 if (radiiSum > rect.height()) |
| 1655 factor = std::min(rect.height() / radiiSum, factor); | 1650 factor = std::min(rect.height() / radiiSum, factor); |
| 1656 | 1651 |
| 1657 ASSERT(factor <= 1); | 1652 ASSERT(factor <= 1); |
| 1658 return factor; | 1653 return factor; |
| 1659 } | 1654 } |
| 1660 | 1655 |
| 1661 } // namespace WebCore | 1656 } // namespace WebCore |
| OLD | NEW |