Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: Source/core/layout/LayoutObjectChildList.cpp

Issue 1294233004: Subtree caching implementation in blink-core (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add a complex-subtree-update test Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 if (!owner->normalChildNeedsLayout()) 171 if (!owner->normalChildNeedsLayout())
172 owner->setChildNeedsLayout(); // We may supply the static position for a n absolute positioned child. 172 owner->setChildNeedsLayout(); // We may supply the static position for a n absolute positioned child.
173 173
174 if (!owner->documentBeingDestroyed()) 174 if (!owner->documentBeingDestroyed())
175 owner->notifyOfSubtreeChange(); 175 owner->notifyOfSubtreeChange();
176 176
177 if (AXObjectCache* cache = owner->document().axObjectCache()) 177 if (AXObjectCache* cache = owner->document().axObjectCache())
178 cache->childrenChanged(owner); 178 cache->childrenChanged(owner);
179 } 179 }
180 180
181 void LayoutObjectChildList::invalidatePaintOnRemoval(const LayoutObject& oldChil d) 181 void LayoutObjectChildList::invalidatePaintOnRemoval(LayoutObject& oldChild)
182 { 182 {
183 if (!oldChild.isRooted()) 183 if (!oldChild.isRooted())
184 return; 184 return;
185 if (oldChild.isBody()) { 185 if (oldChild.isBody()) {
186 oldChild.view()->setShouldDoFullPaintInvalidation(); 186 oldChild.view()->setShouldDoFullPaintInvalidation();
187 return; 187 return;
188 } 188 }
189 189
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. previousPaintInvalidationRectIncludingCompositedScrolling(paintInvalidationConta iner), PaintInvalidationLayoutObjectRemoval); 194 oldChild.invalidatePaintUsingContainer(paintInvalidationContainer, oldChild. previousPaintInvalidationRectIncludingCompositedScrolling(paintInvalidationConta iner), 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698