| 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. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. |
| 7 * All rights reserved. | 7 * All rights reserved. |
| 8 * Copyright (C) 2009 Google Inc. All rights reserved. | 8 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. | 9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. |
| 10 * (http://www.torchmobile.com/) | 10 * (http://www.torchmobile.com/) |
| (...skipping 3351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3362 isUpgradingDelayedFullToFull) { | 3362 isUpgradingDelayedFullToFull) { |
| 3363 if (reason == PaintInvalidationFull) | 3363 if (reason == PaintInvalidationFull) |
| 3364 reason = | 3364 reason = |
| 3365 documentLifecycleBasedPaintInvalidationReason(document().lifecycle()); | 3365 documentLifecycleBasedPaintInvalidationReason(document().lifecycle()); |
| 3366 m_bitfields.setFullPaintInvalidationReason(reason); | 3366 m_bitfields.setFullPaintInvalidationReason(reason); |
| 3367 if (!isUpgradingDelayedFullToFull) | 3367 if (!isUpgradingDelayedFullToFull) |
| 3368 markAncestorsForPaintInvalidation(); | 3368 markAncestorsForPaintInvalidation(); |
| 3369 } | 3369 } |
| 3370 | 3370 |
| 3371 frameView()->scheduleVisualUpdateForPaintInvalidationIfNeeded(); | 3371 frameView()->scheduleVisualUpdateForPaintInvalidationIfNeeded(); |
| 3372 |
| 3373 if (isText()) |
| 3374 parent()->setShouldDoFullPaintInvalidation(); |
| 3372 } | 3375 } |
| 3373 | 3376 |
| 3374 void LayoutObject::setMayNeedPaintInvalidation() { | 3377 void LayoutObject::setMayNeedPaintInvalidation() { |
| 3375 if (mayNeedPaintInvalidation()) | 3378 if (mayNeedPaintInvalidation()) |
| 3376 return; | 3379 return; |
| 3377 m_bitfields.setMayNeedPaintInvalidation(true); | 3380 m_bitfields.setMayNeedPaintInvalidation(true); |
| 3378 markAncestorsForPaintInvalidation(); | 3381 markAncestorsForPaintInvalidation(); |
| 3379 frameView()->scheduleVisualUpdateForPaintInvalidationIfNeeded(); | 3382 frameView()->scheduleVisualUpdateForPaintInvalidationIfNeeded(); |
| 3383 if (isText()) |
| 3384 parent()->setShouldDoFullPaintInvalidation(); |
| 3380 } | 3385 } |
| 3381 | 3386 |
| 3382 void LayoutObject::setMayNeedPaintInvalidationSubtree() { | 3387 void LayoutObject::setMayNeedPaintInvalidationSubtree() { |
| 3383 if (mayNeedPaintInvalidationSubtree()) | 3388 if (mayNeedPaintInvalidationSubtree()) |
| 3384 return; | 3389 return; |
| 3385 m_bitfields.setMayNeedPaintInvalidationSubtree(true); | 3390 m_bitfields.setMayNeedPaintInvalidationSubtree(true); |
| 3386 setMayNeedPaintInvalidation(); | 3391 setMayNeedPaintInvalidation(); |
| 3392 if (isText()) |
| 3393 parent()->setShouldDoFullPaintInvalidation(); |
| 3387 } | 3394 } |
| 3388 | 3395 |
| 3389 void LayoutObject::setMayNeedPaintInvalidationAnimatedBackgroundImage() { | 3396 void LayoutObject::setMayNeedPaintInvalidationAnimatedBackgroundImage() { |
| 3390 if (mayNeedPaintInvalidationAnimatedBackgroundImage()) | 3397 if (mayNeedPaintInvalidationAnimatedBackgroundImage()) |
| 3391 return; | 3398 return; |
| 3392 m_bitfields.setMayNeedPaintInvalidationAnimatedBackgroundImage(true); | 3399 m_bitfields.setMayNeedPaintInvalidationAnimatedBackgroundImage(true); |
| 3393 setMayNeedPaintInvalidation(); | 3400 setMayNeedPaintInvalidation(); |
| 3394 } | 3401 } |
| 3395 | 3402 |
| 3396 void LayoutObject::clearPaintInvalidationFlags() { | 3403 void LayoutObject::clearPaintInvalidationFlags() { |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3495 const blink::LayoutObject* root = object1; | 3502 const blink::LayoutObject* root = object1; |
| 3496 while (root->parent()) | 3503 while (root->parent()) |
| 3497 root = root->parent(); | 3504 root = root->parent(); |
| 3498 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3505 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3499 } else { | 3506 } else { |
| 3500 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); | 3507 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); |
| 3501 } | 3508 } |
| 3502 } | 3509 } |
| 3503 | 3510 |
| 3504 #endif | 3511 #endif |
| OLD | NEW |