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 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
997 if (motionPath.isClosed() && pathLength > 0) { | 997 if (motionPath.isClosed() && pathLength > 0) { |
998 computedDistance = fmod(distance, pathLength); | 998 computedDistance = fmod(distance, pathLength); |
999 if (computedDistance < 0) | 999 if (computedDistance < 0) |
1000 computedDistance += pathLength; | 1000 computedDistance += pathLength; |
1001 } else { | 1001 } else { |
1002 computedDistance = clampTo<float>(distance, 0, pathLength); | 1002 computedDistance = clampTo<float>(distance, 0, pathLength); |
1003 } | 1003 } |
1004 | 1004 |
1005 FloatPoint point; | 1005 FloatPoint point; |
1006 float angle; | 1006 float angle; |
1007 if (!motionPath.path().pointAndNormalAtLength(computedDistance, point, angle
)) | 1007 motionPath.path().pointAndNormalAtLength(computedDistance, point, angle); |
1008 return; | 1008 |
1009 if (motionData.m_rotationType == MotionRotationFixed) | 1009 if (motionData.m_rotationType == MotionRotationFixed) |
1010 angle = 0; | 1010 angle = 0; |
1011 | 1011 |
1012 transform.translate(point.x() - originX, point.y() - originY); | 1012 transform.translate(point.x() - originX, point.y() - originY); |
1013 transform.rotate(angle + motionData.m_rotation); | 1013 transform.rotate(angle + motionData.m_rotation); |
1014 } | 1014 } |
1015 | 1015 |
1016 void ComputedStyle::setTextShadow(PassRefPtr<ShadowList> s) | 1016 void ComputedStyle::setTextShadow(PassRefPtr<ShadowList> s) |
1017 { | 1017 { |
1018 rareInheritedData.access()->textShadow = s; | 1018 rareInheritedData.access()->textShadow = s; |
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1827 } | 1827 } |
1828 | 1828 |
1829 void ComputedStyle::copyChildDependentFlagsFrom(const ComputedStyle& other) | 1829 void ComputedStyle::copyChildDependentFlagsFrom(const ComputedStyle& other) |
1830 { | 1830 { |
1831 setEmptyState(other.emptyState()); | 1831 setEmptyState(other.emptyState()); |
1832 if (other.hasExplicitlyInheritedProperties()) | 1832 if (other.hasExplicitlyInheritedProperties()) |
1833 setHasExplicitlyInheritedProperties(); | 1833 setHasExplicitlyInheritedProperties(); |
1834 } | 1834 } |
1835 | 1835 |
1836 } // namespace blink | 1836 } // namespace blink |
OLD | NEW |