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. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 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 * | 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 1710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1721 | 1721 |
1722 // Paint properties (see: |ObjectPaintProperties|) are built from an object's | 1722 // Paint properties (see: |ObjectPaintProperties|) are built from an object's |
1723 // state (location, transform, etc) as well as properties from ancestors. | 1723 // state (location, transform, etc) as well as properties from ancestors. |
1724 // When these inputs change, setNeedsPaintPropertyUpdate will cause a property | 1724 // When these inputs change, setNeedsPaintPropertyUpdate will cause a property |
1725 // tree update during the next document lifecycle update. | 1725 // tree update during the next document lifecycle update. |
1726 // TODO(pdr): Add additional granularity such as the ability to signal that | 1726 // TODO(pdr): Add additional granularity such as the ability to signal that |
1727 // only a local paint property update is needed. | 1727 // only a local paint property update is needed. |
1728 void setNeedsPaintPropertyUpdate() { | 1728 void setNeedsPaintPropertyUpdate() { |
1729 m_bitfields.setNeedsPaintPropertyUpdate(true); | 1729 m_bitfields.setNeedsPaintPropertyUpdate(true); |
1730 } | 1730 } |
| 1731 // TODO(pdr): This can be removed once we have more granular update flags. |
| 1732 void setAllAncestorsNeedPaintPropertyUpdate() { |
| 1733 if (m_parent) { |
| 1734 m_parent->setNeedsPaintPropertyUpdate(); |
| 1735 m_parent->setAllAncestorsNeedPaintPropertyUpdate(); |
| 1736 } |
| 1737 } |
1731 void clearNeedsPaintPropertyUpdate() { | 1738 void clearNeedsPaintPropertyUpdate() { |
1732 DCHECK_EQ(document().lifecycle().state(), DocumentLifecycle::InPrePaint); | 1739 DCHECK_EQ(document().lifecycle().state(), DocumentLifecycle::InPrePaint); |
1733 m_bitfields.setNeedsPaintPropertyUpdate(false); | 1740 m_bitfields.setNeedsPaintPropertyUpdate(false); |
1734 } | 1741 } |
1735 bool needsPaintPropertyUpdate() const { | 1742 bool needsPaintPropertyUpdate() const { |
1736 return m_bitfields.needsPaintPropertyUpdate(); | 1743 return m_bitfields.needsPaintPropertyUpdate(); |
1737 } | 1744 } |
1738 | 1745 |
1739 void setIsScrollAnchorObject() { m_bitfields.setIsScrollAnchorObject(true); } | 1746 void setIsScrollAnchorObject() { m_bitfields.setIsScrollAnchorObject(true); } |
1740 // Clears the IsScrollAnchorObject bit if and only if no ScrollAnchors still | 1747 // Clears the IsScrollAnchorObject bit if and only if no ScrollAnchors still |
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2627 CORE_EXPORT void showLineTree(const blink::LayoutObject*); | 2634 CORE_EXPORT void showLineTree(const blink::LayoutObject*); |
2628 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); | 2635 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); |
2629 // We don't make object2 an optional parameter so that showLayoutTree | 2636 // We don't make object2 an optional parameter so that showLayoutTree |
2630 // can be called from gdb easily. | 2637 // can be called from gdb easily. |
2631 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, | 2638 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, |
2632 const blink::LayoutObject* object2); | 2639 const blink::LayoutObject* object2); |
2633 | 2640 |
2634 #endif | 2641 #endif |
2635 | 2642 |
2636 #endif // LayoutObject_h | 2643 #endif // LayoutObject_h |
OLD | NEW |