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

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

Issue 1294233004: Subtree caching implementation in blink-core (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Unittest Created 5 years, 3 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after
1176 DisableCompositingQueryAsserts disabler; 1176 DisableCompositingQueryAsserts disabler;
1177 if (const DeprecatedPaintLayer* paintInvalidationLayer = enclosingLayer- >enclosingLayerForPaintInvalidationCrossingFrameBoundaries()) 1177 if (const DeprecatedPaintLayer* paintInvalidationLayer = enclosingLayer- >enclosingLayerForPaintInvalidationCrossingFrameBoundaries())
1178 paintInvalidationLayer->layoutObject()->invalidateDisplayItemClientO nBacking(displayItemClient); 1178 paintInvalidationLayer->layoutObject()->invalidateDisplayItemClientO nBacking(displayItemClient);
1179 } 1179 }
1180 } 1180 }
1181 1181
1182 void LayoutObject::invalidateDisplayItemClients(const LayoutBoxModelObject& pain tInvalidationContainer) const 1182 void LayoutObject::invalidateDisplayItemClients(const LayoutBoxModelObject& pain tInvalidationContainer) const
1183 { 1183 {
1184 ASSERT(RuntimeEnabledFeatures::slimmingPaintEnabled()); 1184 ASSERT(RuntimeEnabledFeatures::slimmingPaintEnabled());
1185 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(*this); 1185 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(*this);
1186
1187 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
1188 enclosingLayer()->setNeedsRepaint();
1186 } 1189 }
1187 1190
1188 LayoutRect LayoutObject::boundsRectForPaintInvalidation(const LayoutBoxModelObje ct* paintInvalidationContainer, const PaintInvalidationState* paintInvalidationS tate) const 1191 LayoutRect LayoutObject::boundsRectForPaintInvalidation(const LayoutBoxModelObje ct* paintInvalidationContainer, const PaintInvalidationState* paintInvalidationS tate) const
1189 { 1192 {
1190 if (!paintInvalidationContainer) 1193 if (!paintInvalidationContainer)
1191 return computePaintInvalidationRect(paintInvalidationContainer, paintInv alidationState); 1194 return computePaintInvalidationRect(paintInvalidationContainer, paintInv alidationState);
1192 return DeprecatedPaintLayer::computePaintInvalidationRect(this, paintInvalid ationContainer->layer(), paintInvalidationState); 1195 return DeprecatedPaintLayer::computePaintInvalidationRect(this, paintInvalid ationContainer->layer(), paintInvalidationState);
1193 } 1196 }
1194 1197
1195 const LayoutBoxModelObject* LayoutObject::invalidatePaintRectangleInternal(const LayoutRect& r) const 1198 const LayoutBoxModelObject* LayoutObject::invalidatePaintRectangleInternal(const LayoutRect& r) const
(...skipping 2188 matching lines...) Expand 10 before | Expand all | Expand 10 after
3384 const blink::LayoutObject* root = object1; 3387 const blink::LayoutObject* root = object1;
3385 while (root->parent()) 3388 while (root->parent())
3386 root = root->parent(); 3389 root = root->parent();
3387 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); 3390 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0);
3388 } else { 3391 } else {
3389 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); 3392 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n");
3390 } 3393 }
3391 } 3394 }
3392 3395
3393 #endif 3396 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698