| OLD | NEW |
| 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 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1242 | 1242 |
| 1243 void LayoutObject::invalidateDisplayItemClient(const DisplayItemClientWrapper& d
isplayItemClient) const | 1243 void LayoutObject::invalidateDisplayItemClient(const DisplayItemClientWrapper& d
isplayItemClient) const |
| 1244 { | 1244 { |
| 1245 // TODO(wangxianzhu): Ensure correct bounds for the client will be or has be
en passed to PaintController. crbug.com/547119. | 1245 // TODO(wangxianzhu): Ensure correct bounds for the client will be or has be
en passed to PaintController. crbug.com/547119. |
| 1246 // Not using enclosingCompositedContainer() directly because this object may
be in an orphaned subtree. | 1246 // Not using enclosingCompositedContainer() directly because this object may
be in an orphaned subtree. |
| 1247 if (PaintLayer* enclosingLayer = this->enclosingLayer()) { | 1247 if (PaintLayer* enclosingLayer = this->enclosingLayer()) { |
| 1248 // This is valid because we want to invalidate the client in the display
item list of the current backing. | 1248 // This is valid because we want to invalidate the client in the display
item list of the current backing. |
| 1249 DisableCompositingQueryAsserts disabler; | 1249 DisableCompositingQueryAsserts disabler; |
| 1250 if (const PaintLayer* paintInvalidationLayer = enclosingLayer->enclosing
LayerForPaintInvalidationCrossingFrameBoundaries()) | 1250 if (const PaintLayer* paintInvalidationLayer = enclosingLayer->enclosing
LayerForPaintInvalidationCrossingFrameBoundaries()) |
| 1251 paintInvalidationLayer->layoutObject()->invalidateDisplayItemClientO
nBacking(displayItemClient, PaintInvalidationFull, nullptr); | 1251 paintInvalidationLayer->layoutObject()->invalidateDisplayItemClientO
nBacking(displayItemClient, PaintInvalidationFull, nullptr); |
| 1252 enclosingLayer->setNeedsRepaint(); | |
| 1253 } | 1252 } |
| 1254 } | 1253 } |
| 1255 | 1254 |
| 1256 void LayoutObject::invalidateDisplayItemClients(const LayoutBoxModelObject& pain
tInvalidationContainer, PaintInvalidationReason invalidationReason, const Layout
Rect* paintInvalidationRect) const | 1255 void LayoutObject::invalidateDisplayItemClients(const LayoutBoxModelObject& pain
tInvalidationContainer, PaintInvalidationReason invalidationReason, const Layout
Rect* paintInvalidationRect) const |
| 1257 { | 1256 { |
| 1258 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(*this, inval
idationReason, paintInvalidationRect); | 1257 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(*this, inval
idationReason, paintInvalidationRect); |
| 1259 | |
| 1260 if (PaintLayer* enclosingLayer = this->enclosingLayer()) | |
| 1261 enclosingLayer->setNeedsRepaint(); | |
| 1262 } | 1258 } |
| 1263 | 1259 |
| 1264 LayoutRect LayoutObject::boundsRectForPaintInvalidation(const LayoutBoxModelObje
ct* paintInvalidationContainer, const PaintInvalidationState* paintInvalidationS
tate) const | 1260 LayoutRect LayoutObject::boundsRectForPaintInvalidation(const LayoutBoxModelObje
ct* paintInvalidationContainer, const PaintInvalidationState* paintInvalidationS
tate) const |
| 1265 { | 1261 { |
| 1266 if (!paintInvalidationContainer) | 1262 if (!paintInvalidationContainer) |
| 1267 return computePaintInvalidationRect(paintInvalidationContainer, paintInv
alidationState); | 1263 return computePaintInvalidationRect(paintInvalidationContainer, paintInv
alidationState); |
| 1268 return PaintLayer::computePaintInvalidationRect(this, paintInvalidationConta
iner->layer(), paintInvalidationState); | 1264 return PaintLayer::computePaintInvalidationRect(this, paintInvalidationConta
iner->layer(), paintInvalidationState); |
| 1269 } | 1265 } |
| 1270 | 1266 |
| 1271 const LayoutBoxModelObject* LayoutObject::invalidatePaintRectangleInternal(const
LayoutRect& dirtyRect) const | 1267 const LayoutBoxModelObject* LayoutObject::invalidatePaintRectangleInternal(const
LayoutRect& dirtyRect) const |
| (...skipping 2216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3488 const blink::LayoutObject* root = object1; | 3484 const blink::LayoutObject* root = object1; |
| 3489 while (root->parent()) | 3485 while (root->parent()) |
| 3490 root = root->parent(); | 3486 root = root->parent(); |
| 3491 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3487 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3492 } else { | 3488 } else { |
| 3493 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); | 3489 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); |
| 3494 } | 3490 } |
| 3495 } | 3491 } |
| 3496 | 3492 |
| 3497 #endif | 3493 #endif |
| OLD | NEW |