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

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

Issue 1263923002: Revert of Refactor the treatment of shape-outside objects in float overlapping checks (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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/layout/LayoutBlockFlow.cpp ('k') | Source/core/layout/line/LineWidth.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 bool positionNewFloats(LineWidth* width) 104 bool positionNewFloats(LineWidth* width)
105 { 105 {
106 return toBlockFlow()->positionNewFloats(width); 106 return toBlockFlow()->positionNewFloats(width);
107 } 107 }
108 108
109 bool positionNewFloatOnLine(FloatingObject& newFloat, FloatingObject* lastFl oatFromPreviousLine, LineInfo& lineInfo, LineWidth& lineWidth) 109 bool positionNewFloatOnLine(FloatingObject& newFloat, FloatingObject* lastFl oatFromPreviousLine, LineInfo& lineInfo, LineWidth& lineWidth)
110 { 110 {
111 return toBlockFlow()->positionNewFloatOnLine(newFloat, lastFloatFromPrev iousLine, lineInfo, lineWidth); 111 return toBlockFlow()->positionNewFloatOnLine(newFloat, lastFloatFromPrev iousLine, lineInfo, lineWidth);
112 } 112 }
113 113
114 LayoutUnit nextFloatLogicalBottomBelow(LayoutUnit logicalHeight) const 114 LayoutUnit nextFloatLogicalBottomBelow(LayoutUnit logicalHeight, ShapeOutsid eFloatOffsetMode offsetMode = ShapeOutsideFloatMarginBoxOffset) const
115 { 115 {
116 return toBlockFlow()->nextFloatLogicalBottomBelow(logicalHeight); 116 return toBlockFlow()->nextFloatLogicalBottomBelow(logicalHeight, offsetM ode);
117 } 117 }
118 118
119 FloatingObject* lastFloatFromPreviousLine() const 119 FloatingObject* lastFloatFromPreviousLine() const
120 { 120 {
121 return toBlockFlow()->lastFloatFromPreviousLine(); 121 return toBlockFlow()->lastFloatFromPreviousLine();
122 } 122 }
123 123
124 LayoutUnit logicalTopForFloat(const FloatingObject& floatingObject) const 124 LayoutUnit logicalTopForFloat(const FloatingObject& floatingObject) const
125 { 125 {
126 return toBlockFlow()->logicalTopForFloat(floatingObject); 126 return toBlockFlow()->logicalTopForFloat(floatingObject);
(...skipping 30 matching lines...) Expand all
157 } 157 }
158 158
159 private: 159 private:
160 LayoutBlockFlow* toBlockFlow() { return toLayoutBlockFlow(layoutObject()); } ; 160 LayoutBlockFlow* toBlockFlow() { return toLayoutBlockFlow(layoutObject()); } ;
161 const LayoutBlockFlow* toBlockFlow() const { return toLayoutBlockFlow(layout Object()); }; 161 const LayoutBlockFlow* toBlockFlow() const { return toLayoutBlockFlow(layout Object()); };
162 }; 162 };
163 163
164 } // namespace blink 164 } // namespace blink
165 165
166 #endif // LineLayoutBlockFlow_h 166 #endif // LineLayoutBlockFlow_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutBlockFlow.cpp ('k') | Source/core/layout/line/LineWidth.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698