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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 void styleDidChange(StyleDifference, const RenderStyle* oldStyle); | 97 void styleDidChange(StyleDifference, const RenderStyle* oldStyle); |
98 | 98 |
99 void repaintRectangleInRegions(const LayoutRect&) const; | 99 void repaintRectangleInRegions(const LayoutRect&) const; |
100 | 100 |
101 LayoutPoint adjustedPositionRelativeToOffsetParent(const RenderBoxModelObjec
t&, const LayoutPoint&); | 101 LayoutPoint adjustedPositionRelativeToOffsetParent(const RenderBoxModelObjec
t&, const LayoutPoint&); |
102 | 102 |
103 LayoutUnit pageLogicalTopForOffset(LayoutUnit); | 103 LayoutUnit pageLogicalTopForOffset(LayoutUnit); |
104 LayoutUnit pageLogicalWidthForOffset(LayoutUnit); | 104 LayoutUnit pageLogicalWidthForOffset(LayoutUnit); |
105 LayoutUnit pageLogicalHeightForOffset(LayoutUnit); | 105 LayoutUnit pageLogicalHeightForOffset(LayoutUnit); |
106 LayoutUnit pageRemainingLogicalHeightForOffset(LayoutUnit, PageBoundaryRule
= IncludePageBoundary); | 106 LayoutUnit pageRemainingLogicalHeightForOffset(LayoutUnit, PageBoundaryRule
= IncludePageBoundary); |
107 | 107 |
| 108 virtual void setPageBreak(LayoutUnit /*offset*/, LayoutUnit /*spaceShortage*
/) { } |
| 109 virtual void updateMinimumPageHeight(LayoutUnit /*offset*/, LayoutUnit /*min
Height*/) { } |
| 110 |
108 enum RegionAutoGenerationPolicy { | 111 enum RegionAutoGenerationPolicy { |
109 AllowRegionAutoGeneration, | 112 AllowRegionAutoGeneration, |
110 DisallowRegionAutoGeneration, | 113 DisallowRegionAutoGeneration, |
111 }; | 114 }; |
112 RenderRegion* regionAtBlockOffset(LayoutUnit, bool extendLastRegion = false,
RegionAutoGenerationPolicy = AllowRegionAutoGeneration); | 115 RenderRegion* regionAtBlockOffset(LayoutUnit, bool extendLastRegion = false,
RegionAutoGenerationPolicy = AllowRegionAutoGeneration); |
113 | 116 |
114 bool regionsHaveUniformLogicalWidth() const { return m_regionsHaveUniformLog
icalWidth; } | 117 bool regionsHaveUniformLogicalWidth() const { return m_regionsHaveUniformLog
icalWidth; } |
115 bool regionsHaveUniformLogicalHeight() const { return m_regionsHaveUniformLo
gicalHeight; } | 118 bool regionsHaveUniformLogicalHeight() const { return m_regionsHaveUniformLo
gicalHeight; } |
116 | 119 |
117 RenderRegion* mapFromFlowToRegion(TransformState&) const; | 120 RenderRegion* mapFromFlowToRegion(TransformState&) const; |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 }; | 297 }; |
295 | 298 |
296 template <> struct ValueToString<RenderRegion*> { | 299 template <> struct ValueToString<RenderRegion*> { |
297 static String string(const RenderRegion* value) { return String::format("%p"
, value); } | 300 static String string(const RenderRegion* value) { return String::format("%p"
, value); } |
298 }; | 301 }; |
299 #endif | 302 #endif |
300 | 303 |
301 } // namespace WebCore | 304 } // namespace WebCore |
302 | 305 |
303 #endif // RenderFlowThread_h | 306 #endif // RenderFlowThread_h |
OLD | NEW |