OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. |
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 3 * Copyright (C) 2013 Intel Corporation. All rights reserved. |
4 * | 4 * |
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
6 * | 6 * |
7 * Other contributors: | 7 * Other contributors: |
8 * Robert O'Callahan <roc+@cs.cmu.edu> | 8 * Robert O'Callahan <roc+@cs.cmu.edu> |
9 * David Baron <dbaron@fas.harvard.edu> | 9 * David Baron <dbaron@fas.harvard.edu> |
10 * Christian Biesinger <cbiesinger@web.de> | 10 * Christian Biesinger <cbiesinger@web.de> |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 class RenderLayerRepainter { | 63 class RenderLayerRepainter { |
64 WTF_MAKE_NONCOPYABLE(RenderLayerRepainter); | 64 WTF_MAKE_NONCOPYABLE(RenderLayerRepainter); |
65 public: | 65 public: |
66 RenderLayerRepainter(RenderLayerModelObject&); | 66 RenderLayerRepainter(RenderLayerModelObject&); |
67 | 67 |
68 // Return a cached repaint rect, computed relative to the layer renderer's c
ontainerForRepaint. | 68 // Return a cached repaint rect, computed relative to the layer renderer's c
ontainerForRepaint. |
69 LayoutRect repaintRect() const { return m_repaintRect; } | 69 LayoutRect repaintRect() const { return m_repaintRect; } |
70 LayoutRect repaintRectIncludingNonCompositingDescendants() const; | 70 LayoutRect repaintRectIncludingNonCompositingDescendants() const; |
71 | 71 |
72 void repaintAfterLayout(bool shouldCheckForRepaint); | 72 void repaintAfterLayout(bool shouldCheckForRepaint); |
73 void repaintIncludingNonCompositingDescendants(RenderLayerModelObject* repai
ntContainer); | 73 void repaintIncludingNonCompositingDescendants(const RenderLayerModelObject*
repaintContainer); |
74 | 74 |
75 void setRepaintStatus(RepaintStatus status) { m_repaintStatus = status; } | 75 void setRepaintStatus(RepaintStatus status) { m_repaintStatus = status; } |
76 | 76 |
77 void computeRepaintRects(const RenderLayerModelObject* repaintContainer); | 77 void computeRepaintRects(const RenderLayerModelObject* repaintContainer); |
78 void computeRepaintRectsIncludingDescendants(); | 78 void computeRepaintRectsIncludingDescendants(); |
79 | 79 |
80 // Indicate that the layer contents need to be repainted. Only has an effect | 80 // Indicate that the layer contents need to be repainted. Only has an effect |
81 // if layer compositing is being used, | 81 // if layer compositing is being used, |
82 void setBackingNeedsRepaint(); | 82 void setBackingNeedsRepaint(); |
83 void setBackingNeedsRepaintInRect(const LayoutRect&); // r is in the coordin
ate space of the layer's render object | 83 void setBackingNeedsRepaintInRect(const LayoutRect&); // r is in the coordin
ate space of the layer's render object |
(...skipping 11 matching lines...) Expand all Loading... |
95 | 95 |
96 unsigned m_repaintStatus; // RepaintStatus | 96 unsigned m_repaintStatus; // RepaintStatus |
97 | 97 |
98 LayoutRect m_repaintRect; // Cached repaint rects. Used by layout. | 98 LayoutRect m_repaintRect; // Cached repaint rects. Used by layout. |
99 LayoutPoint m_offset; | 99 LayoutPoint m_offset; |
100 }; | 100 }; |
101 | 101 |
102 } // namespace WebCore | 102 } // namespace WebCore |
103 | 103 |
104 #endif // RenderLayerRepainter_h | 104 #endif // RenderLayerRepainter_h |
OLD | NEW |