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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
89 if (useElement) { | 89 if (useElement) { |
90 SVGLengthContext lengthContext(useElement); | 90 SVGLengthContext lengthContext(useElement); |
91 FloatSize translation( | 91 FloatSize translation( |
92 useElement->x()->currentValue()->value(lengthContext), | 92 useElement->x()->currentValue()->value(lengthContext), |
93 useElement->y()->currentValue()->value(lengthContext)); | 93 useElement->y()->currentValue()->value(lengthContext)); |
94 if (translation != m_lastTranslation) | 94 if (translation != m_lastTranslation) |
95 m_needsTransformUpdate = true; | 95 m_needsTransformUpdate = true; |
96 m_lastTranslation = translation; | 96 m_lastTranslation = translation; |
97 } | 97 } |
98 | 98 |
99 m_didTransformToRootUpdate = m_needsTransformUpdate || SVGRenderSupport::tra nsformToRootChanged(parent()); | 99 if (m_needsTransformUpdate || SVGRenderSupport::transformToRootChanged(paren t())) |
100 m_didTransformToRootUpdate = true; | |
dsinclair
2014/07/23 19:20:59
I don't think we want to do this. We use this flag
Xianzhu
2014/07/23 19:39:04
I think the full invalidation on transform change
Julien - ping for review
2014/07/23 20:05:24
I agree with Xianzhu on this one, it's conceptuall
fs
2014/07/24 08:43:56
If there's N layouts to one repaint, and the conta
| |
101 | |
100 if (!m_needsTransformUpdate) | 102 if (!m_needsTransformUpdate) |
101 return false; | 103 return false; |
102 | 104 |
103 m_localTransform = element->animatedLocalTransform(); | 105 m_localTransform = element->animatedLocalTransform(); |
104 m_localTransform.translate(m_lastTranslation.width(), m_lastTranslation.heig ht()); | 106 m_localTransform.translate(m_lastTranslation.width(), m_lastTranslation.heig ht()); |
105 m_needsTransformUpdate = false; | 107 m_needsTransformUpdate = false; |
106 return true; | 108 return true; |
107 } | 109 } |
108 | 110 |
111 void RenderSVGTransformableContainer::clearPaintInvalidationState() | |
112 { | |
113 RenderSVGContainer::clearPaintInvalidationState(); | |
114 | |
115 ASSERT(!m_needsTransformUpdate); | |
116 m_didTransformToRootUpdate = false; | |
109 } | 117 } |
118 | |
119 } | |
OLD | NEW |