| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 #include "core/rendering/LayerPaintingInfo.h" | 48 #include "core/rendering/LayerPaintingInfo.h" |
| 49 #include "core/rendering/RenderLayerModelObject.h" | 49 #include "core/rendering/RenderLayerModelObject.h" |
| 50 #include "wtf/Noncopyable.h" | 50 #include "wtf/Noncopyable.h" |
| 51 | 51 |
| 52 namespace blink { | 52 namespace blink { |
| 53 | 53 |
| 54 class RenderLayer; | 54 class RenderLayer; |
| 55 class RenderReplica; | 55 class RenderReplica; |
| 56 | 56 |
| 57 class RenderLayerReflectionInfo : public NoBaseWillBeGarbageCollected<RenderLaye
rReflectionInfo> { | 57 class RenderLayerReflectionInfo { |
| 58 WTF_MAKE_NONCOPYABLE(RenderLayerReflectionInfo); | 58 WTF_MAKE_NONCOPYABLE(RenderLayerReflectionInfo); |
| 59 public: | 59 public: |
| 60 explicit RenderLayerReflectionInfo(RenderBox&); | 60 explicit RenderLayerReflectionInfo(RenderBox&); |
| 61 void destroy(); | 61 void destroy(); |
| 62 void trace(Visitor*); | |
| 63 | 62 |
| 64 RenderReplica* reflection() const { return m_reflection; } | 63 RenderReplica* reflection() const { return m_reflection; } |
| 65 RenderLayer* reflectionLayer() const; | 64 RenderLayer* reflectionLayer() const; |
| 66 | 65 |
| 67 bool isPaintingInsideReflection() const { return m_isPaintingInsideReflectio
n; } | 66 bool isPaintingInsideReflection() const { return m_isPaintingInsideReflectio
n; } |
| 68 | 67 |
| 69 void updateAfterStyleChange(const RenderStyle* oldStyle); | 68 void updateAfterStyleChange(const RenderStyle* oldStyle); |
| 70 | 69 |
| 71 void paint(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags); | 70 void paint(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags); |
| 72 | 71 |
| 73 private: | 72 private: |
| 74 RenderBox& box() { return *m_box; } | 73 RenderBox& box() { return *m_box; } |
| 75 const RenderBox& box() const { return *m_box; } | 74 const RenderBox& box() const { return *m_box; } |
| 76 | 75 |
| 77 RawPtrWillBeMember<RenderBox> m_box; | 76 RenderBox* m_box; |
| 78 RawPtrWillBeMember<RenderReplica> m_reflection; | 77 RenderReplica* m_reflection; |
| 79 | 78 |
| 80 // A state bit tracking if we are painting inside a replica. | 79 // A state bit tracking if we are painting inside a replica. |
| 81 unsigned m_isPaintingInsideReflection : 1; | 80 unsigned m_isPaintingInsideReflection : 1; |
| 82 }; | 81 }; |
| 83 | 82 |
| 84 } // namespace blink | 83 } // namespace blink |
| 85 | 84 |
| 86 #endif // RenderLayerReflectinInfo_h | 85 #endif // RenderLayerReflectinInfo_h |
| OLD | NEW |