| 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 13 matching lines...) Expand all Loading... |
| 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #include "config.h" | 27 #include "config.h" |
| 28 #include "core/layout/LayoutObjectChildList.h" | 28 #include "core/layout/LayoutObjectChildList.h" |
| 29 | 29 |
| 30 #include "core/dom/AXObjectCache.h" | 30 #include "core/dom/AXObjectCache.h" |
| 31 #include "core/layout/LayoutCounter.h" | 31 #include "core/layout/LayoutCounter.h" |
| 32 #include "core/layout/LayoutObject.h" | 32 #include "core/layout/LayoutObject.h" |
| 33 #include "core/layout/LayoutView.h" | 33 #include "core/layout/LayoutView.h" |
| 34 #include "core/paint/DeprecatedPaintLayer.h" |
| 34 #include "core/style/ComputedStyle.h" | 35 #include "core/style/ComputedStyle.h" |
| 35 #include "core/paint/DeprecatedPaintLayer.h" | |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 void LayoutObjectChildList::destroyLeftoverChildren() | 39 void LayoutObjectChildList::destroyLeftoverChildren() |
| 40 { | 40 { |
| 41 while (firstChild()) { | 41 while (firstChild()) { |
| 42 // List markers are owned by their enclosing list and so don't get destr
oyed by this container. | 42 // List markers are owned by their enclosing list and so don't get destr
oyed by this container. |
| 43 if (firstChild()->isListMarker()) { | 43 if (firstChild()->isListMarker()) { |
| 44 firstChild()->remove(); | 44 firstChild()->remove(); |
| 45 continue; | 45 continue; |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 DisableCompositingQueryAsserts disabler; | 190 DisableCompositingQueryAsserts disabler; |
| 191 // FIXME: We should not allow paint invalidation out of paint invalidation s
tate. crbug.com/457415 | 191 // FIXME: We should not allow paint invalidation out of paint invalidation s
tate. crbug.com/457415 |
| 192 DisablePaintInvalidationStateAsserts paintInvalidationAssertDisabler; | 192 DisablePaintInvalidationStateAsserts paintInvalidationAssertDisabler; |
| 193 const LayoutBoxModelObject& paintInvalidationContainer = *oldChild.container
ForPaintInvalidation(); | 193 const LayoutBoxModelObject& paintInvalidationContainer = *oldChild.container
ForPaintInvalidation(); |
| 194 oldChild.invalidatePaintUsingContainer(paintInvalidationContainer, oldChild.
previousPaintInvalidationRect(), PaintInvalidationLayoutObjectRemoval); | 194 oldChild.invalidatePaintUsingContainer(paintInvalidationContainer, oldChild.
previousPaintInvalidationRect(), PaintInvalidationLayoutObjectRemoval); |
| 195 if (RuntimeEnabledFeatures::slimmingPaintEnabled()) | 195 if (RuntimeEnabledFeatures::slimmingPaintEnabled()) |
| 196 oldChild.invalidateDisplayItemClients(paintInvalidationContainer); | 196 oldChild.invalidateDisplayItemClients(paintInvalidationContainer); |
| 197 } | 197 } |
| 198 | 198 |
| 199 } // namespace blink | 199 } // namespace blink |
| OLD | NEW |