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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 virtual bool isRenderFlowThread() const OVERRIDE FINAL { return true; } | 60 virtual bool isRenderFlowThread() const OVERRIDE FINAL { return true; } |
61 virtual bool isRenderMultiColumnFlowThread() const { return false; } | 61 virtual bool isRenderMultiColumnFlowThread() const { return false; } |
62 virtual bool isRenderPagedFlowThread() const { return false; } | 62 virtual bool isRenderPagedFlowThread() const { return false; } |
63 | 63 |
64 virtual void layout() OVERRIDE; | 64 virtual void layout() OVERRIDE; |
65 | 65 |
66 // Always create a RenderLayer for the RenderFlowThread so that we | 66 // Always create a RenderLayer for the RenderFlowThread so that we |
67 // can easily avoid drawing the children directly. | 67 // can easily avoid drawing the children directly. |
68 virtual LayerType layerTypeRequired() const OVERRIDE FINAL { return NormalLa
yer; } | 68 virtual LayerType layerTypeRequired() const OVERRIDE FINAL { return NormalLa
yer; } |
69 | 69 |
| 70 // Some renderers (column spanners) are moved out of the flow thread to live
among column |
| 71 // sets. If |child| is such a renderer, resolve it to the placeholder that l
ives at the original |
| 72 // location in the tree. |
| 73 virtual RenderObject* resolveMovedChild(RenderObject* child) const { return
child; } |
| 74 // Called when a descendant of the flow thread has been inserted. |
| 75 virtual void flowThreadDescendantInserted(RenderObject*) { } |
| 76 // Called when a sibling or descendant of the flow thread is about to be rem
oved. |
| 77 virtual void flowThreadRelativeWillBeRemoved(RenderObject*) { } |
| 78 // Called when a descendant box's layout is finished and it has been positio
ned within its container. |
| 79 virtual void flowThreadDescendantBoxLaidOut(RenderBox*, LayoutUnit /*logical
BottomInFlowThread*/) { } |
| 80 |
70 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion) OVERRIDE FINAL; | 81 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion) OVERRIDE FINAL; |
71 | 82 |
72 virtual void addRegionToThread(RenderRegion*) = 0; | 83 virtual void addRegionToThread(RenderRegion*) = 0; |
73 virtual void removeRegionFromThread(RenderRegion*); | 84 virtual void removeRegionFromThread(RenderRegion*); |
74 const RenderRegionList& renderRegionList() const { return m_regionList; } | 85 const RenderRegionList& renderRegionList() const { return m_regionList; } |
75 | 86 |
76 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic
alTop, LogicalExtentComputedValues&) const OVERRIDE; | 87 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic
alTop, LogicalExtentComputedValues&) const OVERRIDE; |
77 | 88 |
78 bool hasRegions() const { return m_regionList.size(); } | 89 bool hasRegions() const { return m_regionList.size(); } |
79 | 90 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 }; | 227 }; |
217 | 228 |
218 template <> struct ValueToString<RenderRegion*> { | 229 template <> struct ValueToString<RenderRegion*> { |
219 static String string(const RenderRegion* value) { return String::format("%p"
, value); } | 230 static String string(const RenderRegion* value) { return String::format("%p"
, value); } |
220 }; | 231 }; |
221 #endif | 232 #endif |
222 | 233 |
223 } // namespace WebCore | 234 } // namespace WebCore |
224 | 235 |
225 #endif // RenderFlowThread_h | 236 #endif // RenderFlowThread_h |
OLD | NEW |