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 1689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1700 bool ShouldCheckForPaintInvalidationWithPaintInvalidationState( | 1700 bool ShouldCheckForPaintInvalidationWithPaintInvalidationState( |
1701 const PaintInvalidationState&) const; | 1701 const PaintInvalidationState&) const; |
1702 | 1702 |
1703 bool ShouldCheckForPaintInvalidation() const { | 1703 bool ShouldCheckForPaintInvalidation() const { |
1704 return MayNeedPaintInvalidation() || ShouldDoFullPaintInvalidation(); | 1704 return MayNeedPaintInvalidation() || ShouldDoFullPaintInvalidation(); |
1705 } | 1705 } |
1706 | 1706 |
1707 virtual LayoutRect ViewRect() const; | 1707 virtual LayoutRect ViewRect() const; |
1708 | 1708 |
1709 // New version to replace the above old version. | 1709 // New version to replace the above old version. |
1710 virtual PaintInvalidationReason InvalidatePaintIfNeeded( | 1710 virtual PaintInvalidationReason InvalidatePaint( |
1711 const PaintInvalidatorContext&) const; | 1711 const PaintInvalidatorContext&) const; |
1712 | 1712 |
1713 // When this object is invalidated for paint, this method is called to | 1713 // When this object is invalidated for paint, this method is called to |
1714 // invalidate any DisplayItemClients owned by this object, including the | 1714 // invalidate any DisplayItemClients owned by this object, including the |
1715 // object itself, LayoutText/LayoutInline line boxes, etc., | 1715 // object itself, LayoutText/LayoutInline line boxes, etc., |
1716 // not including children which will be invalidated normally during | 1716 // not including children which will be invalidated normally during |
1717 // invalidateTreeIfNeeded() and parts which are invalidated separately (e.g. | 1717 // invalidateTreeIfNeeded() and parts which are invalidated separately (e.g. |
1718 // scrollbars). The caller should ensure the painting layer has been | 1718 // scrollbars). The caller should ensure the painting layer has been |
1719 // setNeedsRepaint before calling this function. | 1719 // setNeedsRepaint before calling this function. |
1720 virtual void InvalidateDisplayItemClients(PaintInvalidationReason) const; | 1720 virtual void InvalidateDisplayItemClients(PaintInvalidationReason) const; |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2074 // called following a descendant/container relationship. | 2074 // called following a descendant/container relationship. |
2075 // | 2075 // |
2076 // The function is overridden to handle special children (e.g. percentage | 2076 // The function is overridden to handle special children (e.g. percentage |
2077 // height descendants or reflections). | 2077 // height descendants or reflections). |
2078 virtual void InvalidatePaintOfSubtreesIfNeeded( | 2078 virtual void InvalidatePaintOfSubtreesIfNeeded( |
2079 const PaintInvalidationState& child_paint_invalidation_state); | 2079 const PaintInvalidationState& child_paint_invalidation_state); |
2080 | 2080 |
2081 // This function generates the invalidation for this object only. | 2081 // This function generates the invalidation for this object only. |
2082 // It doesn't recurse into other object, as this is handled by | 2082 // It doesn't recurse into other object, as this is handled by |
2083 // invalidatePaintOfSubtreesIfNeeded. | 2083 // invalidatePaintOfSubtreesIfNeeded. |
2084 virtual PaintInvalidationReason InvalidatePaintIfNeeded( | 2084 virtual PaintInvalidationReason InvalidatePaint( |
2085 const PaintInvalidationState&); | 2085 const PaintInvalidationState&); |
2086 | 2086 |
2087 void SetIsBackgroundAttachmentFixedObject(bool); | 2087 void SetIsBackgroundAttachmentFixedObject(bool); |
2088 | 2088 |
2089 void ClearSelfNeedsOverflowRecalcAfterStyleChange() { | 2089 void ClearSelfNeedsOverflowRecalcAfterStyleChange() { |
2090 bitfields_.SetSelfNeedsOverflowRecalcAfterStyleChange(false); | 2090 bitfields_.SetSelfNeedsOverflowRecalcAfterStyleChange(false); |
2091 } | 2091 } |
2092 void SetEverHadLayout() { bitfields_.SetEverHadLayout(true); } | 2092 void SetEverHadLayout() { bitfields_.SetEverHadLayout(true); } |
2093 | 2093 |
2094 // Remove this object and all descendants from the containing | 2094 // Remove this object and all descendants from the containing |
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2827 CORE_EXPORT void showLineTree(const blink::LayoutObject*); | 2827 CORE_EXPORT void showLineTree(const blink::LayoutObject*); |
2828 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); | 2828 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); |
2829 // We don't make object2 an optional parameter so that showLayoutTree | 2829 // We don't make object2 an optional parameter so that showLayoutTree |
2830 // can be called from gdb easily. | 2830 // can be called from gdb easily. |
2831 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, | 2831 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, |
2832 const blink::LayoutObject* object2); | 2832 const blink::LayoutObject* object2); |
2833 | 2833 |
2834 #endif | 2834 #endif |
2835 | 2835 |
2836 #endif // LayoutObject_h | 2836 #endif // LayoutObject_h |
OLD | NEW |