OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> | 2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> |
3 * Copyright (C) 2006 Apple Inc. All rights reserved. | 3 * Copyright (C) 2006 Apple Inc. All rights reserved. |
4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2010. 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 if (!textLayoutObject) { | 143 if (!textLayoutObject) { |
144 LayoutInline::removeChild(child); | 144 LayoutInline::removeChild(child); |
145 return; | 145 return; |
146 } | 146 } |
147 Vector<SVGTextLayoutAttributes*, 2> affectedAttributes; | 147 Vector<SVGTextLayoutAttributes*, 2> affectedAttributes; |
148 textLayoutObject->subtreeChildWillBeRemoved(child, affectedAttributes); | 148 textLayoutObject->subtreeChildWillBeRemoved(child, affectedAttributes); |
149 LayoutInline::removeChild(child); | 149 LayoutInline::removeChild(child); |
150 textLayoutObject->subtreeChildWasRemoved(affectedAttributes); | 150 textLayoutObject->subtreeChildWasRemoved(affectedAttributes); |
151 } | 151 } |
152 | 152 |
| 153 void LayoutSVGInline::invalidateTreeIfNeeded(PaintInvalidationState& paintInvali
dationState) |
| 154 { |
| 155 ASSERT(!needsLayout()); |
| 156 |
| 157 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) |
| 158 return; |
| 159 |
| 160 PaintInvalidationReason reason = invalidatePaintIfNeeded(paintInvalidationSt
ate, paintInvalidationState.paintInvalidationContainer()); |
| 161 clearPaintInvalidationState(paintInvalidationState); |
| 162 |
| 163 if (reason == PaintInvalidationDelayedFull) |
| 164 paintInvalidationState.pushDelayedPaintInvalidationTarget(*this); |
| 165 |
| 166 PaintInvalidationState childTreeWalkState(paintInvalidationState, *this, pai
ntInvalidationState.paintInvalidationContainer()); |
| 167 if (reason == PaintInvalidationSVGResourceChange) |
| 168 childTreeWalkState.setForceSubtreeInvalidationWithinContainer(); |
| 169 invalidatePaintOfSubtreesIfNeeded(childTreeWalkState); |
153 } | 170 } |
| 171 |
| 172 } |
OLD | NEW |