| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 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) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r
ights reserved. |
| 7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 // that are painted as the background of the object. It includes borders, | 682 // that are painted as the background of the object. It includes borders, |
| 683 // box-shadows, background-color and background-image, etc. | 683 // box-shadows, background-color and background-image, etc. |
| 684 enum BoxDecorationBackgroundState { | 684 enum BoxDecorationBackgroundState { |
| 685 NoBoxDecorationBackground, | 685 NoBoxDecorationBackground, |
| 686 HasBoxDecorationBackgroundObscurationStatusInvalid, | 686 HasBoxDecorationBackgroundObscurationStatusInvalid, |
| 687 HasBoxDecorationBackgroundKnownToBeObscured, | 687 HasBoxDecorationBackgroundKnownToBeObscured, |
| 688 HasBoxDecorationBackgroundMayBeVisible, | 688 HasBoxDecorationBackgroundMayBeVisible, |
| 689 }; | 689 }; |
| 690 bool hasBoxDecorationBackground() const { return m_bitfields.getBoxDecoratio
nBackgroundState() != NoBoxDecorationBackground; } | 690 bool hasBoxDecorationBackground() const { return m_bitfields.getBoxDecoratio
nBackgroundState() != NoBoxDecorationBackground; } |
| 691 bool boxDecorationBackgroundIsKnownToBeObscured() const; | 691 bool boxDecorationBackgroundIsKnownToBeObscured() const; |
| 692 bool mustInvalidateFillLayersPaintOnHeightChange(const FillLayer&) const; | |
| 693 bool hasBackground() const { return style()->hasBackground(); } | 692 bool hasBackground() const { return style()->hasBackground(); } |
| 694 | 693 |
| 695 bool needsLayoutBecauseOfChildren() const { return needsLayout() && !selfNee
dsLayout() && !needsPositionedMovementLayout() && !needsSimplifiedNormalFlowLayo
ut(); } | 694 bool needsLayoutBecauseOfChildren() const { return needsLayout() && !selfNee
dsLayout() && !needsPositionedMovementLayout() && !needsSimplifiedNormalFlowLayo
ut(); } |
| 696 | 695 |
| 697 bool needsLayout() const | 696 bool needsLayout() const |
| 698 { | 697 { |
| 699 return m_bitfields.selfNeedsLayout() || m_bitfields.normalChildNeedsLayo
ut() || m_bitfields.posChildNeedsLayout() | 698 return m_bitfields.selfNeedsLayout() || m_bitfields.normalChildNeedsLayo
ut() || m_bitfields.posChildNeedsLayout() |
| 700 || m_bitfields.needsSimplifiedNormalFlowLayout() || m_bitfields.need
sPositionedMovementLayout(); | 699 || m_bitfields.needsSimplifiedNormalFlowLayout() || m_bitfields.need
sPositionedMovementLayout(); |
| 701 } | 700 } |
| 702 | 701 |
| (...skipping 1492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2195 void showTree(const blink::LayoutObject*); | 2194 void showTree(const blink::LayoutObject*); |
| 2196 void showLineTree(const blink::LayoutObject*); | 2195 void showLineTree(const blink::LayoutObject*); |
| 2197 void showLayoutTree(const blink::LayoutObject* object1); | 2196 void showLayoutTree(const blink::LayoutObject* object1); |
| 2198 // We don't make object2 an optional parameter so that showLayoutTree | 2197 // We don't make object2 an optional parameter so that showLayoutTree |
| 2199 // can be called from gdb easily. | 2198 // can be called from gdb easily. |
| 2200 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 2199 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
| 2201 | 2200 |
| 2202 #endif | 2201 #endif |
| 2203 | 2202 |
| 2204 #endif // LayoutObject_h | 2203 #endif // LayoutObject_h |
| OLD | NEW |