OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 3 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 setLastChild(newChild); | 154 setLastChild(newChild); |
155 } | 155 } |
156 | 156 |
157 if (!owner->documentBeingDestroyed() && notifyRenderer) | 157 if (!owner->documentBeingDestroyed() && notifyRenderer) |
158 newChild->insertedIntoTree(); | 158 newChild->insertedIntoTree(); |
159 | 159 |
160 if (!owner->documentBeingDestroyed()) { | 160 if (!owner->documentBeingDestroyed()) { |
161 RenderCounter::rendererSubtreeAttached(newChild); | 161 RenderCounter::rendererSubtreeAttached(newChild); |
162 } | 162 } |
163 | 163 |
164 newChild->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(); | 164 newChild->setNeedsLayoutAndPrefWidthsRecalc(); |
| 165 newChild->setShouldDoFullPaintInvalidationWithReason(InvalidationRendererIns
ertion); |
165 if (!owner->normalChildNeedsLayout()) | 166 if (!owner->normalChildNeedsLayout()) |
166 owner->setChildNeedsLayout(); // We may supply the static position for a
n absolute positioned child. | 167 owner->setChildNeedsLayout(); // We may supply the static position for a
n absolute positioned child. |
167 | 168 |
168 if (AXObjectCache* cache = owner->document().axObjectCache()) | 169 if (AXObjectCache* cache = owner->document().axObjectCache()) |
169 cache->childrenChanged(owner); | 170 cache->childrenChanged(owner); |
170 } | 171 } |
171 | 172 |
172 void RenderObjectChildList::invalidatePaintOnRemoval(const RenderObject& oldChil
d) | 173 void RenderObjectChildList::invalidatePaintOnRemoval(const RenderObject& oldChil
d) |
173 { | 174 { |
174 if (!oldChild.isRooted()) | 175 if (!oldChild.isRooted()) |
175 return; | 176 return; |
176 if (oldChild.isBody()) { | 177 if (oldChild.isBody()) { |
177 oldChild.view()->setShouldDoFullPaintInvalidation(true); | 178 oldChild.view()->setShouldDoFullPaintInvalidation(true); |
178 return; | 179 return; |
179 } | 180 } |
180 if (oldChild.isText()) { | 181 if (oldChild.isText()) { |
181 oldChild.parent()->setShouldDoFullPaintInvalidation(true); | 182 oldChild.parent()->setShouldDoFullPaintInvalidation(true); |
182 return; | 183 return; |
183 } | 184 } |
184 DisableCompositingQueryAsserts disabler; | 185 DisableCompositingQueryAsserts disabler; |
185 oldChild.invalidatePaintUsingContainer(oldChild.containerForPaintInvalidatio
n(), oldChild.previousPaintInvalidationRect(), InvalidationRendererRemoval); | 186 oldChild.invalidatePaintUsingContainer(oldChild.containerForPaintInvalidatio
n(), oldChild.previousPaintInvalidationRect(), InvalidationRendererRemoval); |
186 } | 187 } |
187 | 188 |
188 } // namespace blink | 189 } // namespace blink |
OLD | NEW |