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 18 matching lines...) Expand all Loading... |
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/rendering/RenderLayer.h" | 32 #include "core/rendering/RenderLayer.h" |
33 #include "core/rendering/RenderObject.h" | 33 #include "core/rendering/RenderObject.h" |
34 #include "core/rendering/RenderView.h" | 34 #include "core/rendering/RenderView.h" |
35 #include "core/rendering/style/RenderStyle.h" | 35 #include "core/rendering/style/RenderStyle.h" |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 void RenderObjectChildList::trace(Visitor* visitor) | |
40 { | |
41 visitor->trace(m_firstChild); | |
42 visitor->trace(m_lastChild); | |
43 } | |
44 | |
45 void RenderObjectChildList::destroyLeftoverChildren() | 39 void RenderObjectChildList::destroyLeftoverChildren() |
46 { | 40 { |
47 while (firstChild()) { | 41 while (firstChild()) { |
48 // 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. |
49 if (firstChild()->isListMarker()) { | 43 if (firstChild()->isListMarker()) { |
50 firstChild()->remove(); | 44 firstChild()->remove(); |
51 continue; | 45 continue; |
52 } | 46 } |
53 | 47 |
54 // Destroy any anonymous children remaining in the render tree, as well
as implicit (shadow) DOM elements like those used in the engine-based text field
s. | 48 // Destroy any anonymous children remaining in the render tree, as well
as implicit (shadow) DOM elements like those used in the engine-based text field
s. |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 return; | 174 return; |
181 if (oldChild.isBody()) { | 175 if (oldChild.isBody()) { |
182 oldChild.view()->setShouldDoFullPaintInvalidation(); | 176 oldChild.view()->setShouldDoFullPaintInvalidation(); |
183 return; | 177 return; |
184 } | 178 } |
185 DisableCompositingQueryAsserts disabler; | 179 DisableCompositingQueryAsserts disabler; |
186 oldChild.invalidatePaintUsingContainer(oldChild.containerForPaintInvalidatio
n(), oldChild.previousPaintInvalidationRect(), PaintInvalidationRendererRemoval)
; | 180 oldChild.invalidatePaintUsingContainer(oldChild.containerForPaintInvalidatio
n(), oldChild.previousPaintInvalidationRect(), PaintInvalidationRendererRemoval)
; |
187 } | 181 } |
188 | 182 |
189 } // namespace blink | 183 } // namespace blink |
OLD | NEW |