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

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

Issue 1899193007: Remove special-code for paginating floats followed by lines of text. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef LineLayoutBlockFlow_h 5 #ifndef LineLayoutBlockFlow_h
6 #define LineLayoutBlockFlow_h 6 #define LineLayoutBlockFlow_h
7 7
8 #include "core/layout/FloatingObjects.h" 8 #include "core/layout/FloatingObjects.h"
9 #include "core/layout/LayoutBlockFlow.h" 9 #include "core/layout/LayoutBlockFlow.h"
10 #include "core/layout/api/LineLayoutBox.h" 10 #include "core/layout/api/LineLayoutBox.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 FloatingObject* insertFloatingObject(LineLayoutBox box) 121 FloatingObject* insertFloatingObject(LineLayoutBox box)
122 { 122 {
123 return toBlockFlow()->insertFloatingObject(*toLayoutBox(box.layoutObject ())); 123 return toBlockFlow()->insertFloatingObject(*toLayoutBox(box.layoutObject ()));
124 } 124 }
125 125
126 bool positionNewFloats(LineWidth* width) 126 bool positionNewFloats(LineWidth* width)
127 { 127 {
128 return toBlockFlow()->positionNewFloats(width); 128 return toBlockFlow()->positionNewFloats(width);
129 } 129 }
130 130
131 bool positionNewFloatOnLine(FloatingObject& newFloat, FloatingObject* lastFl oatFromPreviousLine, LineInfo& lineInfo, LineWidth& lineWidth)
132 {
133 return toBlockFlow()->positionNewFloatOnLine(newFloat, lastFloatFromPrev iousLine, lineInfo, lineWidth);
134 }
135
136 LayoutUnit nextFloatLogicalBottomBelow(LayoutUnit logicalHeight) const 131 LayoutUnit nextFloatLogicalBottomBelow(LayoutUnit logicalHeight) const
137 { 132 {
138 return toBlockFlow()->nextFloatLogicalBottomBelow(logicalHeight); 133 return toBlockFlow()->nextFloatLogicalBottomBelow(logicalHeight);
139 } 134 }
140 135
141 FloatingObject* lastFloatFromPreviousLine() const 136 FloatingObject* lastFloatFromPreviousLine() const
142 { 137 {
143 return toBlockFlow()->lastFloatFromPreviousLine(); 138 return toBlockFlow()->lastFloatFromPreviousLine();
144 } 139 }
145 140
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 } 224 }
230 225
231 private: 226 private:
232 LayoutBlockFlow* toBlockFlow() { return toLayoutBlockFlow(layoutObject()); } ; 227 LayoutBlockFlow* toBlockFlow() { return toLayoutBlockFlow(layoutObject()); } ;
233 const LayoutBlockFlow* toBlockFlow() const { return toLayoutBlockFlow(layout Object()); }; 228 const LayoutBlockFlow* toBlockFlow() const { return toLayoutBlockFlow(layout Object()); };
234 }; 229 };
235 230
236 } // namespace blink 231 } // namespace blink
237 232
238 #endif // LineLayoutBlockFlow_h 233 #endif // LineLayoutBlockFlow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698