| 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 19 matching lines...) Expand all Loading... |
| 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" | 34 #include "core/rendering/style/StyleInheritedData.h" |
| 35 | 35 |
| 36 namespace WebCore { | 36 namespace WebCore { |
| 37 | 37 |
| 38 struct LayerFragment; | 38 struct LayerFragment; |
| 39 typedef Vector<LayerFragment, 1> LayerFragments; | 39 typedef Vector<LayerFragment, 1> LayerFragments; |
| 40 class RenderBox; | |
| 41 class RenderFlowThread; | 40 class RenderFlowThread; |
| 42 | 41 |
| 43 class RenderRegion : public RenderBlockFlow { | 42 class RenderRegion : public RenderBlockFlow { |
| 44 public: | 43 public: |
| 45 explicit RenderRegion(Element*, RenderFlowThread*); | 44 explicit RenderRegion(Element*, RenderFlowThread*); |
| 46 | 45 |
| 47 virtual bool isRenderRegion() const OVERRIDE FINAL { return true; } | 46 virtual bool isRenderRegion() const OVERRIDE FINAL { return true; } |
| 48 | 47 |
| 49 void setFlowThreadPortionRect(const LayoutRect& rect) { m_flowThreadPortionR
ect = rect; } | 48 void setFlowThreadPortionRect(const LayoutRect& rect) { m_flowThreadPortionR
ect = rect; } |
| 50 LayoutRect flowThreadPortionRect() const { return m_flowThreadPortionRect; } | 49 LayoutRect flowThreadPortionRect() const { return m_flowThreadPortionRect; } |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 private: | 110 private: |
| 112 LayoutRect m_flowThreadPortionRect; | 111 LayoutRect m_flowThreadPortionRect; |
| 113 bool m_isValid : 1; | 112 bool m_isValid : 1; |
| 114 }; | 113 }; |
| 115 | 114 |
| 116 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderRegion, isRenderRegion()); | 115 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderRegion, isRenderRegion()); |
| 117 | 116 |
| 118 } // namespace WebCore | 117 } // namespace WebCore |
| 119 | 118 |
| 120 #endif // RenderRegion_h | 119 #endif // RenderRegion_h |
| OLD | NEW |