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. | 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 3562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3573 is_background_attachment_fixed_object) | 3573 is_background_attachment_fixed_object) |
| 3574 return; | 3574 return; |
| 3575 bitfields_.SetIsBackgroundAttachmentFixedObject( | 3575 bitfields_.SetIsBackgroundAttachmentFixedObject( |
| 3576 is_background_attachment_fixed_object); | 3576 is_background_attachment_fixed_object); |
| 3577 if (is_background_attachment_fixed_object) | 3577 if (is_background_attachment_fixed_object) |
| 3578 GetFrameView()->AddBackgroundAttachmentFixedObject(this); | 3578 GetFrameView()->AddBackgroundAttachmentFixedObject(this); |
| 3579 else | 3579 else |
| 3580 GetFrameView()->RemoveBackgroundAttachmentFixedObject(this); | 3580 GetFrameView()->RemoveBackgroundAttachmentFixedObject(this); |
| 3581 } | 3581 } |
| 3582 | 3582 |
| 3583 PropertyTreeState LayoutObject::ContentsProperties() const { | |
| 3584 DCHECK(RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()); | |
| 3585 | |
| 3586 DCHECK(rare_paint_data_ && rare_paint_data_->LocalBorderBoxProperties()); | |
| 3587 if (!rare_paint_data_) | |
|
chrishtr
2017/04/10 20:50:30
Remove this.
pdr.
2017/04/10 20:56:34
Done
| |
| 3588 return PropertyTreeState::Root(); | |
| 3589 | |
| 3590 return rare_paint_data_->ContentsProperties(); | |
| 3591 } | |
| 3592 | |
| 3583 RarePaintData& LayoutObject::EnsureRarePaintData() { | 3593 RarePaintData& LayoutObject::EnsureRarePaintData() { |
| 3584 if (!rare_paint_data_) | 3594 if (!rare_paint_data_) |
| 3585 rare_paint_data_ = WTF::MakeUnique<RarePaintData>(); | 3595 rare_paint_data_ = WTF::MakeUnique<RarePaintData>(); |
| 3586 return *rare_paint_data_.get(); | 3596 return *rare_paint_data_.get(); |
| 3587 } | 3597 } |
| 3588 | 3598 |
| 3589 LayoutRect LayoutObject::DebugRect() const { | 3599 LayoutRect LayoutObject::DebugRect() const { |
| 3590 LayoutRect rect; | 3600 LayoutRect rect; |
| 3591 LayoutBlock* block = ContainingBlock(); | 3601 LayoutBlock* block = ContainingBlock(); |
| 3592 if (block) | 3602 if (block) |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3648 const blink::LayoutObject* root = object1; | 3658 const blink::LayoutObject* root = object1; |
| 3649 while (root->Parent()) | 3659 while (root->Parent()) |
| 3650 root = root->Parent(); | 3660 root = root->Parent(); |
| 3651 root->ShowLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3661 root->ShowLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3652 } else { | 3662 } else { |
| 3653 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); | 3663 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); |
| 3654 } | 3664 } |
| 3655 } | 3665 } |
| 3656 | 3666 |
| 3657 #endif | 3667 #endif |
| OLD | NEW |