| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 */ | 43 */ |
| 44 | 44 |
| 45 #ifndef RenderLayerRepainter_h | 45 #ifndef RenderLayerRepainter_h |
| 46 #define RenderLayerRepainter_h | 46 #define RenderLayerRepainter_h |
| 47 | 47 |
| 48 #include "platform/geometry/LayoutRect.h" | 48 #include "platform/geometry/LayoutRect.h" |
| 49 #include "wtf/Noncopyable.h" | 49 #include "wtf/Noncopyable.h" |
| 50 | 50 |
| 51 namespace blink { | 51 namespace blink { |
| 52 | 52 |
| 53 class RenderLayer; | |
| 54 class RenderLayerModelObject; | 53 class RenderLayerModelObject; |
| 55 | 54 |
| 56 class RenderLayerRepainter { | 55 class RenderLayerRepainter { |
| 57 WTF_MAKE_NONCOPYABLE(RenderLayerRepainter); | 56 WTF_MAKE_NONCOPYABLE(RenderLayerRepainter); |
| 58 public: | 57 public: |
| 59 RenderLayerRepainter(RenderLayerModelObject&); | 58 RenderLayerRepainter(RenderLayerModelObject&); |
| 60 | 59 |
| 61 void paintInvalidationIncludingNonCompositingDescendants(); | 60 void paintInvalidationIncludingNonCompositingDescendants(); |
| 62 | 61 |
| 63 void computePaintInvalidationRectsIncludingNonCompositingDescendants(); | 62 void computePaintInvalidationRectsIncludingNonCompositingDescendants(); |
| 64 | 63 |
| 65 // Indicate that the layer contents need to be repainted. Only has an effect | 64 // Indicate that the layer contents need to be repainted. Only has an effect |
| 66 // if layer compositing is being used, | 65 // if layer compositing is being used, |
| 67 void setBackingNeedsPaintInvalidationInRect(const LayoutRect&); // r is in t
he coordinate space of the layer's render object | 66 void setBackingNeedsPaintInvalidationInRect(const LayoutRect&); // r is in t
he coordinate space of the layer's render object |
| 68 | 67 |
| 69 private: | 68 private: |
| 70 void paintInvalidationIncludingNonCompositingDescendantsInternal(const Rende
rLayerModelObject* repaintContainer); | 69 void paintInvalidationIncludingNonCompositingDescendantsInternal(const Rende
rLayerModelObject* repaintContainer); |
| 71 | 70 |
| 72 RenderLayerModelObject& m_renderer; | 71 RenderLayerModelObject& m_renderer; |
| 73 }; | 72 }; |
| 74 | 73 |
| 75 } // namespace blink | 74 } // namespace blink |
| 76 | 75 |
| 77 #endif // RenderLayerRepainter_h | 76 #endif // RenderLayerRepainter_h |
| OLD | NEW |