| 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 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1196 | 1196 |
| 1197 void LayoutObject::invalidateTreeIfNeeded(const PaintInvalidationState& paintInv
alidationState) | 1197 void LayoutObject::invalidateTreeIfNeeded(const PaintInvalidationState& paintInv
alidationState) |
| 1198 { | 1198 { |
| 1199 ASSERT(!needsLayout()); | 1199 ASSERT(!needsLayout()); |
| 1200 | 1200 |
| 1201 // If we didn't need paint invalidation then our children don't need as well
. | 1201 // If we didn't need paint invalidation then our children don't need as well
. |
| 1202 // Skip walking down the tree as everything should be fine below us. | 1202 // Skip walking down the tree as everything should be fine below us. |
| 1203 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) | 1203 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) |
| 1204 return; | 1204 return; |
| 1205 | 1205 |
| 1206 invalidatePaintIfNeeded(paintInvalidationState, paintInvalidationState.paint
InvalidationContainer()); | 1206 PaintInvalidationReason reason = invalidatePaintIfNeeded(paintInvalidationSt
ate, paintInvalidationState.paintInvalidationContainer()); |
| 1207 clearPaintInvalidationState(paintInvalidationState); | 1207 clearPaintInvalidationState(paintInvalidationState); |
| 1208 |
| 1209 if (reason == PaintInvalidationDelayedFull) |
| 1210 view()->pushDelayedPaintInvalidationTarget(*this); |
| 1211 |
| 1208 invalidatePaintOfSubtreesIfNeeded(paintInvalidationState); | 1212 invalidatePaintOfSubtreesIfNeeded(paintInvalidationState); |
| 1209 } | 1213 } |
| 1210 | 1214 |
| 1211 void LayoutObject::invalidatePaintOfSubtreesIfNeeded(const PaintInvalidationStat
e& childPaintInvalidationState) | 1215 void LayoutObject::invalidatePaintOfSubtreesIfNeeded(const PaintInvalidationStat
e& childPaintInvalidationState) |
| 1212 { | 1216 { |
| 1213 for (LayoutObject* child = slowFirstChild(); child; child = child->nextSibli
ng()) { | 1217 for (LayoutObject* child = slowFirstChild(); child; child = child->nextSibli
ng()) { |
| 1214 if (!child->isOutOfFlowPositioned()) | 1218 if (!child->isOutOfFlowPositioned()) |
| 1215 child->invalidateTreeIfNeeded(childPaintInvalidationState); | 1219 child->invalidateTreeIfNeeded(childPaintInvalidationState); |
| 1216 } | 1220 } |
| 1217 } | 1221 } |
| (...skipping 2008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3226 { | 3230 { |
| 3227 if (object1) { | 3231 if (object1) { |
| 3228 const blink::LayoutObject* root = object1; | 3232 const blink::LayoutObject* root = object1; |
| 3229 while (root->parent()) | 3233 while (root->parent()) |
| 3230 root = root->parent(); | 3234 root = root->parent(); |
| 3231 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3235 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3232 } | 3236 } |
| 3233 } | 3237 } |
| 3234 | 3238 |
| 3235 #endif | 3239 #endif |
| OLD | NEW |