OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef LayerFixedPositionRecorder_h | 5 #ifndef LayerFixedPositionRecorder_h |
6 #define LayerFixedPositionRecorder_h | 6 #define LayerFixedPositionRecorder_h |
7 | 7 |
8 #include "wtf/FastAllocBase.h" | 8 #include "wtf/FastAllocBase.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 class GraphicsContext; | 12 class GraphicsContext; |
13 class LayoutBoxModelObject; | 13 class LayoutBoxModelObject; |
14 | 14 |
15 class LayerFixedPositionRecorder { | 15 class LayerFixedPositionRecorder { |
16 WTF_MAKE_FAST_ALLOCATED(LayerFixedPositionRecorder); | 16 WTF_MAKE_FAST_ALLOCATED(LayerFixedPositionRecorder); |
17 public: | 17 public: |
18 explicit LayerFixedPositionRecorder(GraphicsContext&, const LayoutBoxModelOb
ject&); | 18 explicit LayerFixedPositionRecorder(GraphicsContext&, const LayoutBoxModelOb
ject&, const LayoutBoxModelObject& anchor); |
19 ~LayerFixedPositionRecorder(); | 19 ~LayerFixedPositionRecorder(); |
20 | 20 |
21 private: | 21 private: |
22 GraphicsContext& m_graphicsContext; | 22 GraphicsContext& m_graphicsContext; |
23 const LayoutBoxModelObject& m_layoutObject; | 23 const LayoutBoxModelObject& m_layoutObject; |
24 bool m_isFixedPosition; | |
25 bool m_isFixedPositionContainer; | |
26 }; | 24 }; |
27 | 25 |
28 } // namespace blink | 26 } // namespace blink |
29 | 27 |
30 #endif // LayerFixedPositionRecorder_h | 28 #endif // LayerFixedPositionRecorder_h |
OLD | NEW |