| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2007 David Smith (catfish.man@gmail.com) | 4 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 5 * Copyright (C) 2003-2013 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003-2013 Apple Inc. All rights reserved. |
| 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 7 * Copyright (C) 2013 Google Inc. All rights reserved. | 7 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 8 * | 8 * |
| 9 * Redistribution and use in source and binary forms, with or without | 9 * Redistribution and use in source and binary forms, with or without |
| 10 * modification, are permitted provided that the following conditions are | 10 * modification, are permitted provided that the following conditions are |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 const char* name() const override { return "LayoutBlockFlow"; } | 240 const char* name() const override { return "LayoutBlockFlow"; } |
| 241 | 241 |
| 242 FloatingObject* insertFloatingObject(LayoutBox&); | 242 FloatingObject* insertFloatingObject(LayoutBox&); |
| 243 | 243 |
| 244 // Called from lineWidth, to position the floats added in the last line. | 244 // Called from lineWidth, to position the floats added in the last line. |
| 245 // Returns true if and only if it has positioned any floats. | 245 // Returns true if and only if it has positioned any floats. |
| 246 bool positionNewFloats(LineWidth* = nullptr); | 246 bool positionNewFloats(LineWidth* = nullptr); |
| 247 | 247 |
| 248 bool positionNewFloatOnLine(FloatingObject& newFloat, FloatingObject* lastFl
oatFromPreviousLine, LineInfo&, LineWidth&); | 248 bool positionNewFloatOnLine(FloatingObject& newFloat, FloatingObject* lastFl
oatFromPreviousLine, LineInfo&, LineWidth&); |
| 249 | 249 |
| 250 LayoutUnit nextFloatLogicalBottomBelow(LayoutUnit, ShapeOutsideFloatOffsetMo
de = ShapeOutsideFloatMarginBoxOffset) const; | 250 LayoutUnit nextFloatLogicalBottomBelow(LayoutUnit) const; |
| 251 LayoutUnit nextFloatLogicalBottomBelowForBlock(LayoutUnit) const; |
| 251 | 252 |
| 252 FloatingObject* lastFloatFromPreviousLine() const | 253 FloatingObject* lastFloatFromPreviousLine() const |
| 253 { | 254 { |
| 254 return containsFloats() ? m_floatingObjects->set().last().get() : nullpt
r; | 255 return containsFloats() ? m_floatingObjects->set().last().get() : nullpt
r; |
| 255 } | 256 } |
| 256 | 257 |
| 257 protected: | 258 protected: |
| 258 void rebuildFloatsFromIntruding(); | 259 void rebuildFloatsFromIntruding(); |
| 259 void layoutInlineChildren(bool relayoutChildren, LayoutUnit& paintInvalidati
onLogicalTop, LayoutUnit& paintInvalidationLogicalBottom, LayoutUnit afterEdge); | 260 void layoutInlineChildren(bool relayoutChildren, LayoutUnit& paintInvalidati
onLogicalTop, LayoutUnit& paintInvalidationLogicalBottom, LayoutUnit afterEdge); |
| 260 void addLowestFloatFromChildren(LayoutBlockFlow*); | 261 void addLowestFloatFromChildren(LayoutBlockFlow*); |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 | 544 |
| 544 // END METHODS DEFINED IN LayoutBlockFlowLine | 545 // END METHODS DEFINED IN LayoutBlockFlowLine |
| 545 | 546 |
| 546 }; | 547 }; |
| 547 | 548 |
| 548 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); | 549 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); |
| 549 | 550 |
| 550 } // namespace blink | 551 } // namespace blink |
| 551 | 552 |
| 552 #endif // LayoutBlockFlow_h | 553 #endif // LayoutBlockFlow_h |
| OLD | NEW |