| 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 3398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3409 return PaintInvalidationForcedByLayout; | 3409 return PaintInvalidationForcedByLayout; |
| 3410 case DocumentLifecycle::InCompositingUpdate: | 3410 case DocumentLifecycle::InCompositingUpdate: |
| 3411 return PaintInvalidationCompositingUpdate; | 3411 return PaintInvalidationCompositingUpdate; |
| 3412 default: | 3412 default: |
| 3413 return PaintInvalidationFull; | 3413 return PaintInvalidationFull; |
| 3414 } | 3414 } |
| 3415 } | 3415 } |
| 3416 | 3416 |
| 3417 inline void LayoutObject::markAncestorsForPaintInvalidation() | 3417 inline void LayoutObject::markAncestorsForPaintInvalidation() |
| 3418 { | 3418 { |
| 3419 for (LayoutObject* container = this->parentCrossingFrameBoundaries(); contai
ner && !container->shouldCheckForPaintInvalidationRegardlessOfPaintInvalidationS
tate(); container = container->parentCrossingFrameBoundaries()) | 3419 for (LayoutObject* parent = this->parentCrossingFrameBoundaries(); parent &&
!parent->shouldCheckForPaintInvalidationRegardlessOfPaintInvalidationState(); p
arent = parent->parentCrossingFrameBoundaries()) |
| 3420 container->m_bitfields.setChildShouldCheckForPaintInvalidation(true); | 3420 parent->m_bitfields.setChildShouldCheckForPaintInvalidation(true); |
| 3421 } | 3421 } |
| 3422 | 3422 |
| 3423 void LayoutObject::setShouldInvalidateSelection() | 3423 void LayoutObject::setShouldInvalidateSelection() |
| 3424 { | 3424 { |
| 3425 if (!canUpdateSelectionOnRootLineBoxes()) | 3425 if (!canUpdateSelectionOnRootLineBoxes()) |
| 3426 return; | 3426 return; |
| 3427 m_bitfields.setShouldInvalidateSelection(true); | 3427 m_bitfields.setShouldInvalidateSelection(true); |
| 3428 markAncestorsForPaintInvalidation(); | 3428 markAncestorsForPaintInvalidation(); |
| 3429 frameView()->scheduleVisualUpdateForPaintInvalidationIfNeeded(); | 3429 frameView()->scheduleVisualUpdateForPaintInvalidationIfNeeded(); |
| 3430 } | 3430 } |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3699 const blink::LayoutObject* root = object1; | 3699 const blink::LayoutObject* root = object1; |
| 3700 while (root->parent()) | 3700 while (root->parent()) |
| 3701 root = root->parent(); | 3701 root = root->parent(); |
| 3702 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3702 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3703 } else { | 3703 } else { |
| 3704 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); | 3704 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); |
| 3705 } | 3705 } |
| 3706 } | 3706 } |
| 3707 | 3707 |
| 3708 #endif | 3708 #endif |
| OLD | NEW |