| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 void getRegionRangeForBox(const RenderBox*, RenderRegion*& startRegion, Rend
erRegion*& endRegion) const; | 116 void getRegionRangeForBox(const RenderBox*, RenderRegion*& startRegion, Rend
erRegion*& endRegion) const; |
| 117 | 117 |
| 118 virtual bool addForcedRegionBreak(LayoutUnit, RenderObject* breakChild, bool
isBefore, LayoutUnit* offsetBreakAdjustment = 0) { return false; } | 118 virtual bool addForcedRegionBreak(LayoutUnit, RenderObject* breakChild, bool
isBefore, LayoutUnit* offsetBreakAdjustment = 0) { return false; } |
| 119 void applyBreakAfterContent(LayoutUnit); | 119 void applyBreakAfterContent(LayoutUnit); |
| 120 | 120 |
| 121 bool pageLogicalSizeChanged() const { return m_pageLogicalSizeChanged; } | 121 bool pageLogicalSizeChanged() const { return m_pageLogicalSizeChanged; } |
| 122 | 122 |
| 123 void collectLayerFragments(LayerFragments&, const LayoutRect& layerBoundingB
ox, const LayoutRect& dirtyRect); | 123 void collectLayerFragments(LayerFragments&, const LayoutRect& layerBoundingB
ox, const LayoutRect& dirtyRect); |
| 124 LayoutRect fragmentsBoundingBox(const LayoutRect& layerBoundingBox); | 124 LayoutRect fragmentsBoundingBox(const LayoutRect& layerBoundingBox); |
| 125 | 125 |
| 126 void pushFlowThreadLayoutState(const RenderObject*); | 126 void pushFlowThreadLayoutState(const RenderObject&); |
| 127 void popFlowThreadLayoutState(); | 127 void popFlowThreadLayoutState(); |
| 128 LayoutUnit offsetFromLogicalTopOfFirstRegion(const RenderBlock*) const; | 128 LayoutUnit offsetFromLogicalTopOfFirstRegion(const RenderBlock*) const; |
| 129 | 129 |
| 130 // Used to estimate the maximum height of the flow thread. | 130 // Used to estimate the maximum height of the flow thread. |
| 131 static LayoutUnit maxLogicalHeight() { return LayoutUnit::max() / 2; } | 131 static LayoutUnit maxLogicalHeight() { return LayoutUnit::max() / 2; } |
| 132 | 132 |
| 133 protected: | 133 protected: |
| 134 virtual const char* renderName() const = 0; | 134 virtual const char* renderName() const = 0; |
| 135 | 135 |
| 136 // Overridden by columns/pages to set up an initial logical width of the pag
e width even when | 136 // Overridden by columns/pages to set up an initial logical width of the pag
e width even when |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 }; | 245 }; |
| 246 | 246 |
| 247 template <> struct ValueToString<RenderRegion*> { | 247 template <> struct ValueToString<RenderRegion*> { |
| 248 static String string(const RenderRegion* value) { return String::format("%p"
, value); } | 248 static String string(const RenderRegion* value) { return String::format("%p"
, value); } |
| 249 }; | 249 }; |
| 250 #endif | 250 #endif |
| 251 | 251 |
| 252 } // namespace WebCore | 252 } // namespace WebCore |
| 253 | 253 |
| 254 #endif // RenderFlowThread_h | 254 #endif // RenderFlowThread_h |
| OLD | NEW |