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

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

Issue 1573133002: Need to examine the *bottom* of fragmented content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Slim down the patch; back out columnSetAtBlockOffset() changes. This was already broken prior to th… Created 4 years, 11 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
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 void validateColumnSets(); 81 void validateColumnSets();
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 mapToVisibleRectInContainerSpace(const LayoutBoxModelObject* paintInval idationContainer, LayoutRect&, const PaintInvalidationState*) const override; 85 void mapToVisibleRectInContainerSpace(const LayoutBoxModelObject* paintInval idationContainer, 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 logicalBottomInFlowThreadAfterPagi nation) = 0;
91 91
92 // Find and return the next logical top after |flowThreadOffset| that can fi t unbreakable 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 93 // content as tall as |contentLogicalHeight|. |flowThreadOffset| is expected to be at the exact
94 // top of a column that's known to not have enough space for |contentLogical Height|. This method 94 // top of a column that's known to not have enough space for |contentLogical Height|. This method
95 // is called when the current column is too short to fit the content, in the hope that there 95 // is called when the current column is too short to fit the content, in the hope that there
96 // exists one that's tall enough further ahead. If no such column can be fou nd, 96 // exists one that's tall enough further ahead. If no such column can be fou nd,
97 // |flowThreadOffset| will be returned. 97 // |flowThreadOffset| will be returned.
98 LayoutUnit nextLogicalTopForUnbreakableContent(LayoutUnit flowThreadOffset, LayoutUnit contentLogicalHeight) const; 98 LayoutUnit nextLogicalTopForUnbreakableContent(LayoutUnit flowThreadOffset, LayoutUnit contentLogicalHeight) const;
99 99
100 virtual bool isPageLogicalHeightKnown() const { return true; } 100 virtual bool isPageLogicalHeightKnown() const { return true; }
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // These structures are used by PODIntervalTree for debugging. 155 // These structures are used by PODIntervalTree for debugging.
156 #ifndef NDEBUG 156 #ifndef NDEBUG
157 template <> struct ValueToString<LayoutMultiColumnSet*> { 157 template <> struct ValueToString<LayoutMultiColumnSet*> {
158 static String string(const LayoutMultiColumnSet* value) { return String::for mat("%p", value); } 158 static String string(const LayoutMultiColumnSet* value) { return String::for mat("%p", value); }
159 }; 159 };
160 #endif 160 #endif
161 161
162 } // namespace blink 162 } // namespace blink
163 163
164 #endif // LayoutFlowThread_h 164 #endif // LayoutFlowThread_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698