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); |
pdr.
2015/10/30 00:52:05
There are only a few callers of these functions an
Eric Willigers
2015/11/20 07:49:53
Done.
| |
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 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1799 } | 1799 } |
1800 | 1800 |
1801 void ComputedStyle::copyChildDependentFlagsFrom(const ComputedStyle& other) | 1801 void ComputedStyle::copyChildDependentFlagsFrom(const ComputedStyle& other) |
1802 { | 1802 { |
1803 setEmptyState(other.emptyState()); | 1803 setEmptyState(other.emptyState()); |
1804 if (other.hasExplicitlyInheritedProperties()) | 1804 if (other.hasExplicitlyInheritedProperties()) |
1805 setHasExplicitlyInheritedProperties(); | 1805 setHasExplicitlyInheritedProperties(); |
1806 } | 1806 } |
1807 | 1807 |
1808 } // namespace blink | 1808 } // namespace blink |
OLD | NEW |