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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 // Always create a RenderLayer for the RenderFlowThread, so that we | 68 // Always create a RenderLayer for the RenderFlowThread, so that we |
69 // can easily avoid to draw it's children directly. | 69 // can easily avoid to draw it's children directly. |
70 virtual bool requiresLayer() const { return true; } | 70 virtual bool requiresLayer() const { return true; } |
71 | 71 |
72 RenderObject* nextRendererForNode(Node*) const; | 72 RenderObject* nextRendererForNode(Node*) const; |
73 RenderObject* previousRendererForNode(Node*) const; | 73 RenderObject* previousRendererForNode(Node*) const; |
74 | 74 |
75 void addFlowChild(RenderObject* newChild, RenderObject* beforeChild = 0); | 75 void addFlowChild(RenderObject* newChild, RenderObject* beforeChild = 0); |
76 void removeFlowChild(RenderObject*); | 76 void removeFlowChild(RenderObject*); |
| 77 void removeFlowChildInfo(RenderObject*); |
77 bool hasChildren() const { return !m_flowThreadChildList.isEmpty(); } | 78 bool hasChildren() const { return !m_flowThreadChildList.isEmpty(); } |
| 79 #ifndef NDEBUG |
| 80 bool hasChild(RenderObject* child) const { return m_flowThreadChildList.cont
ains(child); } |
| 81 bool hasChildInfo(RenderObject* child) const { return child && child->isBox(
) && m_regionRangeMap.contains(toRenderBox(child)); } |
| 82 #endif |
78 | 83 |
79 void addRegionToThread(RenderRegion*); | 84 void addRegionToThread(RenderRegion*); |
80 void removeRegionFromThread(RenderRegion*); | 85 void removeRegionFromThread(RenderRegion*); |
81 const RenderRegionList& renderRegionList() const { return m_regionList; } | 86 const RenderRegionList& renderRegionList() const { return m_regionList; } |
82 | 87 |
83 void computeLogicalWidth(); | 88 void computeLogicalWidth(); |
84 void computeLogicalHeight(); | 89 void computeLogicalHeight(); |
85 | 90 |
86 void paintIntoRegion(PaintInfo&, RenderRegion*, const LayoutPoint& paintOffs
et); | 91 void paintIntoRegion(PaintInfo&, RenderRegion*, const LayoutPoint& paintOffs
et); |
87 bool hitTestRegion(RenderRegion*, const HitTestRequest&, HitTestResult&, con
st LayoutPoint& pointInContainer, const LayoutPoint& accumulatedOffset); | 92 bool hitTestRegion(RenderRegion*, const HitTestRequest&, HitTestResult&, con
st LayoutPoint& pointInContainer, const LayoutPoint& accumulatedOffset); |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 ASSERT(!object || object->isRenderFlowThread()); | 208 ASSERT(!object || object->isRenderFlowThread()); |
204 return static_cast<const RenderFlowThread*>(object); | 209 return static_cast<const RenderFlowThread*>(object); |
205 } | 210 } |
206 | 211 |
207 // This will catch anyone doing an unnecessary cast. | 212 // This will catch anyone doing an unnecessary cast. |
208 void toRenderFlowThread(const RenderFlowThread*); | 213 void toRenderFlowThread(const RenderFlowThread*); |
209 | 214 |
210 } // namespace WebCore | 215 } // namespace WebCore |
211 | 216 |
212 #endif // RenderFlowThread_h | 217 #endif // RenderFlowThread_h |
OLD | NEW |