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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 { | 147 { |
148 ASSERT(!needsLayout()); | 148 ASSERT(!needsLayout()); |
149 | 149 |
150 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) | 150 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) |
151 return; | 151 return; |
152 | 152 |
153 PaintInvalidationState newPaintInvalidationState(paintInvalidationState, *th
is); | 153 PaintInvalidationState newPaintInvalidationState(paintInvalidationState, *th
is); |
154 PaintInvalidationReason reason = invalidatePaintIfNeeded(newPaintInvalidatio
nState); | 154 PaintInvalidationReason reason = invalidatePaintIfNeeded(newPaintInvalidatio
nState); |
155 clearPaintInvalidationFlags(newPaintInvalidationState); | 155 clearPaintInvalidationFlags(newPaintInvalidationState); |
156 | 156 |
157 newPaintInvalidationState.updateForChildren(reason); | 157 if (reason == PaintInvalidationDelayedFull) |
| 158 paintInvalidationState.pushDelayedPaintInvalidationTarget(*this); |
| 159 |
| 160 if (reason == PaintInvalidationSVGResourceChange) |
| 161 newPaintInvalidationState.setForceSubtreeInvalidationWithinContainer(); |
| 162 |
| 163 newPaintInvalidationState.updateForChildren(); |
158 invalidatePaintOfSubtreesIfNeeded(newPaintInvalidationState); | 164 invalidatePaintOfSubtreesIfNeeded(newPaintInvalidationState); |
159 } | 165 } |
160 | 166 |
161 } // namespace blink | 167 } // namespace blink |
OLD | NEW |