| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 virtual void collectLayerFragments(LayerFragments&, const LayoutRect&, const
LayoutRect&) { } | 140 virtual void collectLayerFragments(LayerFragments&, const LayoutRect&, const
LayoutRect&) { } |
| 141 | 141 |
| 142 virtual bool canHaveChildren() const OVERRIDE { return false; } | 142 virtual bool canHaveChildren() const OVERRIDE { return false; } |
| 143 virtual bool canHaveGeneratedChildren() const OVERRIDE { return true; } | 143 virtual bool canHaveGeneratedChildren() const OVERRIDE { return true; } |
| 144 | 144 |
| 145 bool isElementBasedRegion() const; | 145 bool isElementBasedRegion() const; |
| 146 | 146 |
| 147 Node* nodeForRegion() const; | 147 Node* nodeForRegion() const; |
| 148 Node* generatingNodeForRegion() const; | 148 Node* generatingNodeForRegion() const; |
| 149 | 149 |
| 150 virtual const char* renderName() const OVERRIDE { return "RenderRegion"; } |
| 151 |
| 150 protected: | 152 protected: |
| 151 void setRegionObjectsRegionStyle(); | 153 void setRegionObjectsRegionStyle(); |
| 152 void restoreRegionObjectsOriginalStyle(); | 154 void restoreRegionObjectsOriginalStyle(); |
| 153 | 155 |
| 154 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const OVERRIDE; | 156 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const OVERRIDE; |
| 155 | 157 |
| 156 LayoutRect overflowRectForFlowThreadPortion(const LayoutRect& flowThreadPort
ionRect, bool isFirstPortion, bool isLastPortion) const; | 158 LayoutRect overflowRectForFlowThreadPortion(const LayoutRect& flowThreadPort
ionRect, bool isFirstPortion, bool isLastPortion) const; |
| 157 void repaintFlowThreadContentRectangle(const LayoutRect& repaintRect, const
LayoutRect& flowThreadPortionRect, | 159 void repaintFlowThreadContentRectangle(const LayoutRect& repaintRect, const
LayoutRect& flowThreadPortionRect, |
| 158 const LayoutRect& flowThreadPortionOverflowRect, const LayoutPoint& regi
onLocation) const; | 160 const LayoutRect& flowThreadPortionOverflowRect, const LayoutPoint& regi
onLocation) const; |
| 159 | 161 |
| 160 virtual bool shouldHaveAutoLogicalHeight() const; | 162 virtual bool shouldHaveAutoLogicalHeight() const; |
| 161 | 163 |
| 162 private: | 164 private: |
| 163 virtual const char* renderName() const OVERRIDE { return "RenderRegion"; } | |
| 164 | |
| 165 virtual void insertedIntoTree() OVERRIDE; | 165 virtual void insertedIntoTree() OVERRIDE; |
| 166 virtual void willBeRemovedFromTree() OVERRIDE; | 166 virtual void willBeRemovedFromTree() OVERRIDE; |
| 167 | 167 |
| 168 virtual void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight
= 0) OVERRIDE; | 168 virtual void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight
= 0) OVERRIDE; |
| 169 virtual bool supportsPartialLayout() const OVERRIDE { return false; } | 169 virtual bool supportsPartialLayout() const OVERRIDE { return false; } |
| 170 virtual void paintObject(PaintInfo&, const LayoutPoint&) OVERRIDE; | 170 virtual void paintObject(PaintInfo&, const LayoutPoint&) OVERRIDE; |
| 171 | 171 |
| 172 virtual void updateLogicalHeight() OVERRIDE; | 172 virtual void updateLogicalHeight() OVERRIDE; |
| 173 | 173 |
| 174 virtual void installFlowThread(); | 174 virtual void installFlowThread(); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 bool m_isValid : 1; | 220 bool m_isValid : 1; |
| 221 bool m_hasCustomRegionStyle : 1; | 221 bool m_hasCustomRegionStyle : 1; |
| 222 bool m_hasAutoLogicalHeight : 1; | 222 bool m_hasAutoLogicalHeight : 1; |
| 223 }; | 223 }; |
| 224 | 224 |
| 225 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderRegion, isRenderRegion()); | 225 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderRegion, isRenderRegion()); |
| 226 | 226 |
| 227 } // namespace WebCore | 227 } // namespace WebCore |
| 228 | 228 |
| 229 #endif // RenderRegion_h | 229 #endif // RenderRegion_h |
| OLD | NEW |