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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 93 |
94 RegionState regionState() const { return isValid() ? m_regionState : RegionU
ndefined; } | 94 RegionState regionState() const { return isValid() ? m_regionState : RegionU
ndefined; } |
95 void setRegionState(RegionState regionState) { m_regionState = regionState;
} | 95 void setRegionState(RegionState regionState) { m_regionState = regionState;
} |
96 | 96 |
97 virtual LayoutUnit logicalWidthForFlowThreadContent() const; | 97 virtual LayoutUnit logicalWidthForFlowThreadContent() const; |
98 virtual LayoutUnit logicalHeightForFlowThreadContent() const; | 98 virtual LayoutUnit logicalHeightForFlowThreadContent() const; |
99 | 99 |
100 private: | 100 private: |
101 virtual const char* renderName() const { return "RenderRegion"; } | 101 virtual const char* renderName() const { return "RenderRegion"; } |
102 | 102 |
| 103 virtual void insertedIntoTree() OVERRIDE; |
| 104 |
103 PassRefPtr<RenderStyle> computeStyleInRegion(const RenderObject*); | 105 PassRefPtr<RenderStyle> computeStyleInRegion(const RenderObject*); |
104 void computeChildrenStyleInRegion(const RenderObject*); | 106 void computeChildrenStyleInRegion(const RenderObject*); |
105 void setRegionObjectsRegionStyle(); | 107 void setRegionObjectsRegionStyle(); |
106 void restoreRegionObjectsOriginalStyle(); | 108 void restoreRegionObjectsOriginalStyle(); |
107 void setObjectStyleInRegion(RenderObject*, PassRefPtr<RenderStyle>, bool obj
ectRegionStyleCached); | 109 void setObjectStyleInRegion(RenderObject*, PassRefPtr<RenderStyle>, bool obj
ectRegionStyleCached); |
108 void printRegionObjectsStyles(); | 110 void printRegionObjectsStyles(); |
109 RenderFlowThread* m_flowThread; | 111 RenderFlowThread* m_flowThread; |
110 | 112 |
111 // If this RenderRegion is displayed as part of another named flow, | 113 // If this RenderRegion is displayed as part of another named flow, |
112 // we need to create a dependency tree, so that layout of the | 114 // we need to create a dependency tree, so that layout of the |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 ASSERT(!object || object->isRenderRegion()); | 152 ASSERT(!object || object->isRenderRegion()); |
151 return static_cast<const RenderRegion*>(object); | 153 return static_cast<const RenderRegion*>(object); |
152 } | 154 } |
153 | 155 |
154 // This will catch anyone doing an unnecessary cast. | 156 // This will catch anyone doing an unnecessary cast. |
155 void toRenderRegion(const RenderRegion*); | 157 void toRenderRegion(const RenderRegion*); |
156 | 158 |
157 } // namespace WebCore | 159 } // namespace WebCore |
158 | 160 |
159 #endif // RenderRegion_h | 161 #endif // RenderRegion_h |
OLD | NEW |