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 1623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1634 } | 1634 } |
1635 bool shouldDoFullPaintInvalidation() const { | 1635 bool shouldDoFullPaintInvalidation() const { |
1636 return m_bitfields.fullPaintInvalidationReason() != PaintInvalidationNone; | 1636 return m_bitfields.fullPaintInvalidationReason() != PaintInvalidationNone; |
1637 } | 1637 } |
1638 void setShouldDoFullPaintInvalidation( | 1638 void setShouldDoFullPaintInvalidation( |
1639 PaintInvalidationReason = PaintInvalidationFull); | 1639 PaintInvalidationReason = PaintInvalidationFull); |
1640 void clearShouldDoFullPaintInvalidation() { | 1640 void clearShouldDoFullPaintInvalidation() { |
1641 m_bitfields.setFullPaintInvalidationReason(PaintInvalidationNone); | 1641 m_bitfields.setFullPaintInvalidationReason(PaintInvalidationNone); |
1642 } | 1642 } |
1643 | 1643 |
1644 void clearPaintInvalidationFlags(); | 1644 virtual void clearPaintInvalidationFlags(); |
1645 | 1645 |
1646 bool mayNeedPaintInvalidation() const { | 1646 bool mayNeedPaintInvalidation() const { |
1647 return m_bitfields.mayNeedPaintInvalidation(); | 1647 return m_bitfields.mayNeedPaintInvalidation(); |
1648 } | 1648 } |
1649 void setMayNeedPaintInvalidation(); | 1649 void setMayNeedPaintInvalidation(); |
1650 | 1650 |
1651 bool mayNeedPaintInvalidationSubtree() const { | 1651 bool mayNeedPaintInvalidationSubtree() const { |
1652 return m_bitfields.mayNeedPaintInvalidationSubtree(); | 1652 return m_bitfields.mayNeedPaintInvalidationSubtree(); |
1653 } | 1653 } |
1654 void setMayNeedPaintInvalidationSubtree(); | 1654 void setMayNeedPaintInvalidationSubtree(); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1712 DCHECK_EQ(m_layoutObject.document().lifecycle().state(), | 1712 DCHECK_EQ(m_layoutObject.document().lifecycle().state(), |
1713 DocumentLifecycle::InPrePaint); | 1713 DocumentLifecycle::InPrePaint); |
1714 m_layoutObject.clearPaintInvalidationFlags(); | 1714 m_layoutObject.clearPaintInvalidationFlags(); |
1715 m_layoutObject.m_bitfields.setNeedsPaintPropertyUpdate(false); | 1715 m_layoutObject.m_bitfields.setNeedsPaintPropertyUpdate(false); |
1716 m_layoutObject.m_bitfields.setSubtreeNeedsPaintPropertyUpdate(false); | 1716 m_layoutObject.m_bitfields.setSubtreeNeedsPaintPropertyUpdate(false); |
1717 m_layoutObject.m_bitfields.setDescendantNeedsPaintPropertyUpdate(false); | 1717 m_layoutObject.m_bitfields.setDescendantNeedsPaintPropertyUpdate(false); |
1718 } | 1718 } |
1719 void setShouldDoFullPaintInvalidation(PaintInvalidationReason reason) { | 1719 void setShouldDoFullPaintInvalidation(PaintInvalidationReason reason) { |
1720 m_layoutObject.setShouldDoFullPaintInvalidation(reason); | 1720 m_layoutObject.setShouldDoFullPaintInvalidation(reason); |
1721 } | 1721 } |
| 1722 void setMayNeedPaintInvalidation() { |
| 1723 m_layoutObject.setMayNeedPaintInvalidation(); |
| 1724 } |
1722 void setBackgroundChangedSinceLastPaintInvalidation() { | 1725 void setBackgroundChangedSinceLastPaintInvalidation() { |
1723 m_layoutObject.setBackgroundChangedSinceLastPaintInvalidation(); | 1726 m_layoutObject.setBackgroundChangedSinceLastPaintInvalidation(); |
1724 } | 1727 } |
1725 void ensureIsReadyForPaintInvalidation() { | 1728 void ensureIsReadyForPaintInvalidation() { |
1726 m_layoutObject.ensureIsReadyForPaintInvalidation(); | 1729 m_layoutObject.ensureIsReadyForPaintInvalidation(); |
1727 } | 1730 } |
1728 | 1731 |
1729 // The following setters store the current values as calculated during the | 1732 // The following setters store the current values as calculated during the |
1730 // pre-paint tree walk. TODO(wangxianzhu): Add check of lifecycle states. | 1733 // pre-paint tree walk. TODO(wangxianzhu): Add check of lifecycle states. |
1731 void setPreviousVisualRect(const LayoutRect& r) { | 1734 void setPreviousVisualRect(const LayoutRect& r) { |
(...skipping 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2740 CORE_EXPORT void showLineTree(const blink::LayoutObject*); | 2743 CORE_EXPORT void showLineTree(const blink::LayoutObject*); |
2741 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); | 2744 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); |
2742 // We don't make object2 an optional parameter so that showLayoutTree | 2745 // We don't make object2 an optional parameter so that showLayoutTree |
2743 // can be called from gdb easily. | 2746 // can be called from gdb easily. |
2744 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, | 2747 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, |
2745 const blink::LayoutObject* object2); | 2748 const blink::LayoutObject* object2); |
2746 | 2749 |
2747 #endif | 2750 #endif |
2748 | 2751 |
2749 #endif // LayoutObject_h | 2752 #endif // LayoutObject_h |
OLD | NEW |