OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Adobe Systems Incorporated. All Rights Reserved. | 2 * Copyright 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 void computeLogicalWidth(); | 82 void computeLogicalWidth(); |
83 void computeLogicalHeight(); | 83 void computeLogicalHeight(); |
84 | 84 |
85 void paintIntoRegion(PaintInfo&, RenderRegion*, const LayoutPoint& paintOffs
et); | 85 void paintIntoRegion(PaintInfo&, RenderRegion*, const LayoutPoint& paintOffs
et); |
86 bool hitTestRegion(RenderRegion*, const HitTestRequest&, HitTestResult&, con
st LayoutPoint& pointInContainer, const LayoutPoint& accumulatedOffset); | 86 bool hitTestRegion(RenderRegion*, const HitTestRequest&, HitTestResult&, con
st LayoutPoint& pointInContainer, const LayoutPoint& accumulatedOffset); |
87 | 87 |
88 bool hasRegions() const { return m_regionList.size(); } | 88 bool hasRegions() const { return m_regionList.size(); } |
89 bool hasValidRegions() const { ASSERT(!m_regionsInvalidated); return m_hasVa
lidRegions; } | 89 bool hasValidRegions() const { ASSERT(!m_regionsInvalidated); return m_hasVa
lidRegions; } |
90 | 90 |
91 void invalidateRegions() { m_regionsInvalidated = true; setNeedsLayout(true)
; } | 91 void invalidateRegions() { m_regionsInvalidated = true; setNeedsLayout(true)
; } |
| 92 bool hasValidRegionInfo() const { return !m_regionsInvalidated && hasValidRe
gions(); } |
92 | 93 |
93 static PassRefPtr<RenderStyle> createFlowThreadStyle(RenderStyle* parentStyl
e); | 94 static PassRefPtr<RenderStyle> createFlowThreadStyle(RenderStyle* parentStyl
e); |
94 | 95 |
95 void styleDidChange(StyleDifference, const RenderStyle* oldStyle); | 96 void styleDidChange(StyleDifference, const RenderStyle* oldStyle); |
96 | 97 |
97 void pushDependencies(RenderFlowThreadList&); | 98 void pushDependencies(RenderFlowThreadList&); |
98 | 99 |
99 void repaintRectangleInRegions(const LayoutRect&, bool immediate); | 100 void repaintRectangleInRegions(const LayoutRect&, bool immediate); |
100 | 101 |
101 LayoutUnit regionLogicalWidthForLine(LayoutUnit position) const; | 102 LayoutUnit regionLogicalWidthForLine(LayoutUnit position) const; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 ASSERT(!object || object->isRenderFlowThread()); | 190 ASSERT(!object || object->isRenderFlowThread()); |
190 return static_cast<const RenderFlowThread*>(object); | 191 return static_cast<const RenderFlowThread*>(object); |
191 } | 192 } |
192 | 193 |
193 // This will catch anyone doing an unnecessary cast. | 194 // This will catch anyone doing an unnecessary cast. |
194 void toRenderFlowThread(const RenderFlowThread*); | 195 void toRenderFlowThread(const RenderFlowThread*); |
195 | 196 |
196 } // namespace WebCore | 197 } // namespace WebCore |
197 | 198 |
198 #endif // RenderFlowThread_h | 199 #endif // RenderFlowThread_h |
OLD | NEW |