| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 if (!owner->DocumentBeingDestroyed()) | 194 if (!owner->DocumentBeingDestroyed()) |
| 195 owner->NotifyOfSubtreeChange(); | 195 owner->NotifyOfSubtreeChange(); |
| 196 | 196 |
| 197 if (AXObjectCache* cache = owner->GetDocument().AxObjectCache()) | 197 if (AXObjectCache* cache = owner->GetDocument().AxObjectCache()) |
| 198 cache->ChildrenChanged(owner); | 198 cache->ChildrenChanged(owner); |
| 199 } | 199 } |
| 200 | 200 |
| 201 void LayoutObjectChildList::InvalidatePaintOnRemoval(LayoutObject& old_child) { | 201 void LayoutObjectChildList::InvalidatePaintOnRemoval(LayoutObject& old_child) { |
| 202 if (!old_child.IsRooted()) | 202 if (!old_child.IsRooted()) |
| 203 return; | 203 return; |
| 204 if (old_child.IsBody()) | 204 if (old_child.IsBody() && old_child.View()) |
| 205 old_child.View()->SetShouldDoFullPaintInvalidation(); | 205 old_child.View()->SetShouldDoFullPaintInvalidation(); |
| 206 ObjectPaintInvalidator paint_invalidator(old_child); | 206 ObjectPaintInvalidator paint_invalidator(old_child); |
| 207 paint_invalidator.SlowSetPaintingLayerNeedsRepaint(); | 207 paint_invalidator.SlowSetPaintingLayerNeedsRepaint(); |
| 208 paint_invalidator.InvalidatePaintOfPreviousVisualRect( | 208 paint_invalidator.InvalidatePaintOfPreviousVisualRect( |
| 209 old_child.ContainerForPaintInvalidation(), | 209 old_child.ContainerForPaintInvalidation(), |
| 210 PaintInvalidationReason::kDisappeared); | 210 PaintInvalidationReason::kDisappeared); |
| 211 } | 211 } |
| 212 | 212 |
| 213 } // namespace blink | 213 } // namespace blink |
| OLD | NEW |