OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2009 Google, Inc. | 4 * Copyright (C) 2009 Google, Inc. |
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // broken...) | 98 // broken...) |
99 if (translation != m_additionalTranslation) | 99 if (translation != m_additionalTranslation) |
100 setNeedsTransformUpdate(); | 100 setNeedsTransformUpdate(); |
101 m_additionalTranslation = translation; | 101 m_additionalTranslation = translation; |
102 } | 102 } |
103 | 103 |
104 if (!m_needsTransformUpdate) | 104 if (!m_needsTransformUpdate) |
105 return SVGTransformChange::None; | 105 return SVGTransformChange::None; |
106 | 106 |
107 SVGTransformChangeDetector changeDetector(m_localTransform); | 107 SVGTransformChangeDetector changeDetector(m_localTransform); |
108 m_localTransform = element->calculateAnimatedLocalTransform(); | 108 m_localTransform = |
| 109 element->calculateTransform(SVGElement::IncludeMotionTransform); |
109 m_localTransform.translate(m_additionalTranslation.width(), | 110 m_localTransform.translate(m_additionalTranslation.width(), |
110 m_additionalTranslation.height()); | 111 m_additionalTranslation.height()); |
111 m_needsTransformUpdate = false; | 112 m_needsTransformUpdate = false; |
112 return changeDetector.computeChange(m_localTransform); | 113 return changeDetector.computeChange(m_localTransform); |
113 } | 114 } |
114 | 115 |
115 } // namespace blink | 116 } // namespace blink |
OLD | NEW |