Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(805)

Side by Side Diff: Source/core/rendering/RenderFlowThread.h

Issue 16943008: Column balancing support in the region based multicol implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/rendering/RenderBox.cpp ('k') | Source/core/rendering/RenderMultiColumnBlock.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderBox.cpp ('k') | Source/core/rendering/RenderMultiColumnBlock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698