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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 if (!oldChild.isRooted()) | 188 if (!oldChild.isRooted()) |
189 return; | 189 return; |
190 if (oldChild.isBody()) { | 190 if (oldChild.isBody()) { |
191 oldChild.view()->setShouldDoFullPaintInvalidation(); | 191 oldChild.view()->setShouldDoFullPaintInvalidation(); |
192 return; | 192 return; |
193 } | 193 } |
194 | 194 |
195 DisableCompositingQueryAsserts disabler; | 195 DisableCompositingQueryAsserts disabler; |
196 // FIXME: We should not allow paint invalidation out of paint invalidation s
tate. crbug.com/457415 | 196 // FIXME: We should not allow paint invalidation out of paint invalidation s
tate. crbug.com/457415 |
197 DisablePaintInvalidationStateAsserts paintInvalidationAssertDisabler; | 197 DisablePaintInvalidationStateAsserts paintInvalidationAssertDisabler; |
198 const LayoutBoxModelObject* paintInvalidationContainer = oldChild.containerF
orPaintInvalidation(); | 198 const LayoutBoxModelObject& paintInvalidationContainer = *oldChild.container
ForPaintInvalidation(); |
199 oldChild.invalidatePaintUsingContainer(paintInvalidationContainer, oldChild.
previousPaintInvalidationRect(), PaintInvalidationLayoutObjectRemoval); | 199 oldChild.invalidatePaintUsingContainer(paintInvalidationContainer, oldChild.
previousPaintInvalidationRect(), PaintInvalidationLayoutObjectRemoval); |
200 if (RuntimeEnabledFeatures::slimmingPaintEnabled()) | 200 if (RuntimeEnabledFeatures::slimmingPaintEnabled()) |
201 oldChild.invalidateDisplayItemClients(*paintInvalidationContainer); | 201 oldChild.invalidateDisplayItemClients(paintInvalidationContainer); |
202 } | 202 } |
203 | 203 |
204 } // namespace blink | 204 } // namespace blink |
OLD | NEW |