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 3391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3402 inline void LayoutObject::markAncestorsForPaintInvalidation() { | 3402 inline void LayoutObject::markAncestorsForPaintInvalidation() { |
3403 for (LayoutObject* parent = this->parentCrossingFrames(); | 3403 for (LayoutObject* parent = this->parentCrossingFrames(); |
3404 parent && !parent->shouldCheckForPaintInvalidation(); | 3404 parent && !parent->shouldCheckForPaintInvalidation(); |
3405 parent = parent->parentCrossingFrames()) | 3405 parent = parent->parentCrossingFrames()) |
3406 parent->m_bitfields.setMayNeedPaintInvalidation(true); | 3406 parent->m_bitfields.setMayNeedPaintInvalidation(true); |
3407 } | 3407 } |
3408 | 3408 |
3409 inline void LayoutObject::setNeedsPaintOffsetAndVisualRectUpdate() { | 3409 inline void LayoutObject::setNeedsPaintOffsetAndVisualRectUpdate() { |
3410 if (needsPaintOffsetAndVisualRectUpdate()) | 3410 if (needsPaintOffsetAndVisualRectUpdate()) |
3411 return; | 3411 return; |
3412 | |
3413 for (auto* object = this; | 3412 for (auto* object = this; |
3414 object && !object->needsPaintOffsetAndVisualRectUpdate(); | 3413 object && !object->needsPaintOffsetAndVisualRectUpdate(); |
3415 object = object->parentCrossingFrames()) { | 3414 object = object->parentCrossingFrames()) { |
3416 object->m_bitfields.setNeedsPaintOffsetAndVisualRectUpdate(true); | 3415 object->m_bitfields.setNeedsPaintOffsetAndVisualRectUpdate(true); |
3417 | 3416 |
3418 // Focus ring is special because continuations affect shape of focus ring. | 3417 // Focus ring is special because continuations affect shape of focus ring. |
3419 // Mark the start object for paint invalidation if it has focus ring. | 3418 // Mark the start object for paint invalidation if it has focus ring. |
3420 if (!object->isAnonymous() || !object->isLayoutBlockFlow()) | 3419 if (!object->isAnonymous() || !object->isLayoutBlockFlow()) |
3421 continue; | 3420 continue; |
3422 auto* blockFlow = toLayoutBlockFlow(object); | 3421 auto* blockFlow = toLayoutBlockFlow(object); |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3675 const blink::LayoutObject* root = object1; | 3674 const blink::LayoutObject* root = object1; |
3676 while (root->parent()) | 3675 while (root->parent()) |
3677 root = root->parent(); | 3676 root = root->parent(); |
3678 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3677 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
3679 } else { | 3678 } else { |
3680 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); | 3679 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); |
3681 } | 3680 } |
3682 } | 3681 } |
3683 | 3682 |
3684 #endif | 3683 #endif |
OLD | NEW |