OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. | 2 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above | 8 * 1. Redistributions of source code must retain the above |
9 * copyright notice, this list of conditions and the following | 9 * copyright notice, this list of conditions and the following |
10 * disclaimer. | 10 * disclaimer. |
(...skipping 13 matching lines...) Expand all Loading... |
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR | 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR |
25 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF | 25 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF |
26 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 26 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
27 * SUCH DAMAGE. | 27 * SUCH DAMAGE. |
28 */ | 28 */ |
29 | 29 |
30 #ifndef RenderRegion_h | 30 #ifndef RenderRegion_h |
31 #define RenderRegion_h | 31 #define RenderRegion_h |
32 | 32 |
33 #include "core/rendering/RenderBlockFlow.h" | 33 #include "core/rendering/RenderBlockFlow.h" |
34 #include "core/rendering/style/StyleInheritedData.h" | |
35 | 34 |
36 namespace blink { | 35 namespace blink { |
37 | 36 |
38 struct LayerFragment; | |
39 typedef Vector<LayerFragment, 1> LayerFragments; | |
40 class RenderFlowThread; | 37 class RenderFlowThread; |
41 | 38 |
42 class RenderRegion : public RenderBlockFlow { | 39 class RenderRegion : public RenderBlockFlow { |
43 public: | 40 public: |
44 explicit RenderRegion(Element*, RenderFlowThread*); | 41 explicit RenderRegion(Element*, RenderFlowThread*); |
45 | 42 |
46 virtual bool isOfType(RenderObjectType type) const override { return type ==
RenderObjectRenderRegion || RenderBlockFlow::isOfType(type); } | 43 virtual bool isOfType(RenderObjectType type) const override { return type ==
RenderObjectRenderRegion || RenderBlockFlow::isOfType(type); } |
47 | 44 |
48 void setFlowThreadPortionRect(const LayoutRect& rect) { m_flowThreadPortionR
ect = rect; } | 45 void setFlowThreadPortionRect(const LayoutRect& rect) { m_flowThreadPortionR
ect = rect; } |
49 LayoutRect flowThreadPortionRect() const { return m_flowThreadPortionRect; } | 46 LayoutRect flowThreadPortionRect() const { return m_flowThreadPortionRect; } |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 private: | 82 private: |
86 LayoutRect m_flowThreadPortionRect; | 83 LayoutRect m_flowThreadPortionRect; |
87 bool m_isValid : 1; | 84 bool m_isValid : 1; |
88 }; | 85 }; |
89 | 86 |
90 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderRegion, isRenderRegion()); | 87 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderRegion, isRenderRegion()); |
91 | 88 |
92 } // namespace blink | 89 } // namespace blink |
93 | 90 |
94 #endif // RenderRegion_h | 91 #endif // RenderRegion_h |
OLD | NEW |