| 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 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 890 case CSSPropertyBottom: | 890 case CSSPropertyBottom: |
| 891 case CSSPropertyRight: | 891 case CSSPropertyRight: |
| 892 return true; | 892 return true; |
| 893 default: | 893 default: |
| 894 break; | 894 break; |
| 895 } | 895 } |
| 896 } | 896 } |
| 897 return false; | 897 return false; |
| 898 } | 898 } |
| 899 | 899 |
| 900 bool ComputedStyle::hasWillChangeTransformHint() const |
| 901 { |
| 902 for (const auto& property: rareNonInheritedData->m_willChange->m_properties)
{ |
| 903 switch (property) { |
| 904 case CSSPropertyTransform: |
| 905 case CSSPropertyAliasWebkitTransform: |
| 906 return true; |
| 907 default: |
| 908 break; |
| 909 } |
| 910 } |
| 911 return false; |
| 912 } |
| 913 |
| 900 bool ComputedStyle::requireTransformOrigin(ApplyTransformOrigin applyOrigin, App
lyMotionPath applyMotionPath) const | 914 bool ComputedStyle::requireTransformOrigin(ApplyTransformOrigin applyOrigin, App
lyMotionPath applyMotionPath) const |
| 901 { | 915 { |
| 902 const Vector<RefPtr<TransformOperation>>& transformOperations = transform().
operations(); | 916 const Vector<RefPtr<TransformOperation>>& transformOperations = transform().
operations(); |
| 903 | 917 |
| 904 // transform-origin brackets the transform with translate operations. | 918 // transform-origin brackets the transform with translate operations. |
| 905 // Optimize for the case where the only transform is a translation, since th
e transform-origin is irrelevant | 919 // Optimize for the case where the only transform is a translation, since th
e transform-origin is irrelevant |
| 906 // in that case. | 920 // in that case. |
| 907 if (applyOrigin != IncludeTransformOrigin) | 921 if (applyOrigin != IncludeTransformOrigin) |
| 908 return false; | 922 return false; |
| 909 | 923 |
| (...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1785 } | 1799 } |
| 1786 | 1800 |
| 1787 void ComputedStyle::copyChildDependentFlagsFrom(const ComputedStyle& other) | 1801 void ComputedStyle::copyChildDependentFlagsFrom(const ComputedStyle& other) |
| 1788 { | 1802 { |
| 1789 setEmptyState(other.emptyState()); | 1803 setEmptyState(other.emptyState()); |
| 1790 if (other.hasExplicitlyInheritedProperties()) | 1804 if (other.hasExplicitlyInheritedProperties()) |
| 1791 setHasExplicitlyInheritedProperties(); | 1805 setHasExplicitlyInheritedProperties(); |
| 1792 } | 1806 } |
| 1793 | 1807 |
| 1794 } // namespace blink | 1808 } // namespace blink |
| OLD | NEW |