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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutFlowThread.h

Issue 1472053002: Jump to the next outer column when an inner column is too short. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reduce diff - early return so that we can revert some indentation changes Created 5 years 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
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 void invalidateColumnSets(); 82 void invalidateColumnSets();
83 bool hasValidColumnSetInfo() const { return !m_columnSetsInvalidated && !m_m ultiColumnSetList.isEmpty(); } 83 bool hasValidColumnSetInfo() const { return !m_columnSetsInvalidated && !m_m ultiColumnSetList.isEmpty(); }
84 84
85 void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* paintInva lidationContainer, LayoutRect&, const PaintInvalidationState*) const override; 85 void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* paintInva lidationContainer, LayoutRect&, const PaintInvalidationState*) const override;
86 86
87 LayoutUnit pageLogicalHeightForOffset(LayoutUnit); 87 LayoutUnit pageLogicalHeightForOffset(LayoutUnit);
88 LayoutUnit pageRemainingLogicalHeightForOffset(LayoutUnit, PageBoundaryRule) ; 88 LayoutUnit pageRemainingLogicalHeightForOffset(LayoutUnit, PageBoundaryRule) ;
89 89
90 virtual void contentWasLaidOut(LayoutUnit logicalTopInFlowThreadAfterPaginat ion) = 0; 90 virtual void contentWasLaidOut(LayoutUnit logicalTopInFlowThreadAfterPaginat ion) = 0;
91 91
92 // Find and return the next logical top after |flowThreadOffset| that can fi t unbreakable
93 // content as tall as |contentLogicalHeight|. |flowThreadOffset| is expected to be at the exact
94 // top of a column. This method is called when the current column is too sho rt to fit the
95 // content, in the hope that there exists one that's tall enough further ahe ad. If no such
96 // column can be found, |flowThreadOffset| will be returned.
97 LayoutUnit nextLogicalTopForUnbreakableContent(LayoutUnit flowThreadOffset, LayoutUnit contentLogicalHeight) const;
98
92 virtual bool isPageLogicalHeightKnown() const { return true; } 99 virtual bool isPageLogicalHeightKnown() const { return true; }
93 bool pageLogicalSizeChanged() const { return m_pageLogicalSizeChanged; } 100 bool pageLogicalSizeChanged() const { return m_pageLogicalSizeChanged; }
94 101
95 void collectLayerFragments(PaintLayerFragments&, const LayoutRect& layerBoun dingBox, const LayoutRect& dirtyRectInFlowThread); 102 void collectLayerFragments(PaintLayerFragments&, const LayoutRect& layerBoun dingBox, const LayoutRect& dirtyRectInFlowThread);
96 103
97 // Return the visual bounding box based on the supplied flow-thread bounding box. Both 104 // Return the visual bounding box based on the supplied flow-thread bounding box. Both
98 // rectangles are completely physical in terms of writing mode. 105 // rectangles are completely physical in terms of writing mode.
99 LayoutRect fragmentsBoundingBox(const LayoutRect& layerBoundingBox) const; 106 LayoutRect fragmentsBoundingBox(const LayoutRect& layerBoundingBox) const;
100 107
101 LayoutPoint flowThreadPointToVisualPoint(const LayoutPoint& flowThreadPoint) const 108 LayoutPoint flowThreadPointToVisualPoint(const LayoutPoint& flowThreadPoint) const
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // These structures are used by PODIntervalTree for debugging. 154 // These structures are used by PODIntervalTree for debugging.
148 #ifndef NDEBUG 155 #ifndef NDEBUG
149 template <> struct ValueToString<LayoutMultiColumnSet*> { 156 template <> struct ValueToString<LayoutMultiColumnSet*> {
150 static String string(const LayoutMultiColumnSet* value) { return String::for mat("%p", value); } 157 static String string(const LayoutMultiColumnSet* value) { return String::for mat("%p", value); }
151 }; 158 };
152 #endif 159 #endif
153 160
154 } // namespace blink 161 } // namespace blink
155 162
156 #endif // LayoutFlowThread_h 163 #endif // LayoutFlowThread_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698