Chromium Code Reviews| 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 3418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3429 m_bitfields.setFullPaintInvalidationReason(reason); | 3429 m_bitfields.setFullPaintInvalidationReason(reason); |
| 3430 if (!isUpgradingDelayedFullToFull) | 3430 if (!isUpgradingDelayedFullToFull) |
| 3431 markAncestorsForPaintInvalidation(); | 3431 markAncestorsForPaintInvalidation(); |
| 3432 } | 3432 } |
| 3433 | 3433 |
| 3434 frameView()->scheduleVisualUpdateForPaintInvalidationIfNeeded(); | 3434 frameView()->scheduleVisualUpdateForPaintInvalidationIfNeeded(); |
| 3435 } | 3435 } |
| 3436 | 3436 |
| 3437 void LayoutObject::setMayNeedPaintInvalidation() | 3437 void LayoutObject::setMayNeedPaintInvalidation() |
| 3438 { | 3438 { |
| 3439 if (node() && node()->isElementNode()) { | |
| 3440 Element& element = toElement(*node()); | |
| 3441 element.sizeMayHaveChanged(); | |
|
esprehn
2016/08/03 18:06:51
this doesn't seem like the right place to hook for
atotic1
2016/08/04 23:59:40
Removed. Size changes are now monitored in LayoutB
| |
| 3442 } | |
| 3439 if (mayNeedPaintInvalidation()) | 3443 if (mayNeedPaintInvalidation()) |
| 3440 return; | 3444 return; |
| 3441 m_bitfields.setMayNeedPaintInvalidation(true); | 3445 m_bitfields.setMayNeedPaintInvalidation(true); |
| 3442 markAncestorsForPaintInvalidation(); | 3446 markAncestorsForPaintInvalidation(); |
| 3443 frameView()->scheduleVisualUpdateForPaintInvalidationIfNeeded(); | 3447 frameView()->scheduleVisualUpdateForPaintInvalidationIfNeeded(); |
| 3444 } | 3448 } |
| 3445 | 3449 |
| 3446 void LayoutObject::setMayNeedPaintInvalidationSubtree() | 3450 void LayoutObject::setMayNeedPaintInvalidationSubtree() |
| 3447 { | 3451 { |
| 3448 if (mayNeedPaintInvalidationSubtree()) | 3452 if (mayNeedPaintInvalidationSubtree()) |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3674 const blink::LayoutObject* root = object1; | 3678 const blink::LayoutObject* root = object1; |
| 3675 while (root->parent()) | 3679 while (root->parent()) |
| 3676 root = root->parent(); | 3680 root = root->parent(); |
| 3677 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3681 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3678 } else { | 3682 } else { |
| 3679 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); | 3683 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); |
| 3680 } | 3684 } |
| 3681 } | 3685 } |
| 3682 | 3686 |
| 3683 #endif | 3687 #endif |
| OLD | NEW |