| 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 bool positionNewFloats(LineWidth* = nullptr); | 280 bool positionNewFloats(LineWidth* = nullptr); |
| 281 | 281 |
| 282 LayoutUnit nextFloatLogicalBottomBelow(LayoutUnit) const; | 282 LayoutUnit nextFloatLogicalBottomBelow(LayoutUnit) const; |
| 283 LayoutUnit nextFloatLogicalBottomBelowForBlock(LayoutUnit) const; | 283 LayoutUnit nextFloatLogicalBottomBelowForBlock(LayoutUnit) const; |
| 284 | 284 |
| 285 FloatingObject* lastFloatFromPreviousLine() const | 285 FloatingObject* lastFloatFromPreviousLine() const |
| 286 { | 286 { |
| 287 return containsFloats() ? m_floatingObjects->set().last().get() : nullpt
r; | 287 return containsFloats() ? m_floatingObjects->set().last().get() : nullpt
r; |
| 288 } | 288 } |
| 289 | 289 |
| 290 void invalidateDisplayItemClients(const LayoutBoxModelObject& paintInvalidat
ionContainer, PaintInvalidationReason) override; |
| 290 void invalidateDisplayItemClientsOfFirstLine(); | 291 void invalidateDisplayItemClientsOfFirstLine(); |
| 291 | 292 |
| 292 void simplifiedNormalFlowInlineLayout(); | 293 void simplifiedNormalFlowInlineLayout(); |
| 293 bool recalcInlineChildrenOverflowAfterStyleChange(); | 294 bool recalcInlineChildrenOverflowAfterStyleChange(); |
| 294 | 295 |
| 295 PositionWithAffinity positionForPoint(const LayoutPoint&) override; | 296 PositionWithAffinity positionForPoint(const LayoutPoint&) override; |
| 296 | 297 |
| 297 LayoutUnit lowestFloatLogicalBottom(FloatingObject::Type = FloatingObject::F
loatLeftRight) const; | 298 LayoutUnit lowestFloatLogicalBottom(FloatingObject::Type = FloatingObject::F
loatLeftRight) const; |
| 298 | 299 |
| 299 #ifndef NDEBUG | 300 #ifndef NDEBUG |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 bool hasOverhangingFloats() { return parent() && containsFloats() && lowestF
loatLogicalBottom() > logicalHeight(); } | 373 bool hasOverhangingFloats() { return parent() && containsFloats() && lowestF
loatLogicalBottom() > logicalHeight(); } |
| 373 bool hasOverhangingFloat(LayoutBox*); | 374 bool hasOverhangingFloat(LayoutBox*); |
| 374 void addIntrudingFloats(LayoutBlockFlow* prev, LayoutUnit xoffset, LayoutUni
t yoffset); | 375 void addIntrudingFloats(LayoutBlockFlow* prev, LayoutUnit xoffset, LayoutUni
t yoffset); |
| 375 void addOverhangingFloats(LayoutBlockFlow* child, bool makeChildPaintOtherFl
oats); | 376 void addOverhangingFloats(LayoutBlockFlow* child, bool makeChildPaintOtherFl
oats); |
| 376 bool isOverhangingFloat(const FloatingObject& floatObject) const { return lo
gicalBottomForFloat(floatObject) > logicalHeight(); } | 377 bool isOverhangingFloat(const FloatingObject& floatObject) const { return lo
gicalBottomForFloat(floatObject) > logicalHeight(); } |
| 377 | 378 |
| 378 bool hitTestFloats(HitTestResult&, const HitTestLocation& locationInContaine
r, const LayoutPoint& accumulatedOffset); | 379 bool hitTestFloats(HitTestResult&, const HitTestLocation& locationInContaine
r, const LayoutPoint& accumulatedOffset); |
| 379 | 380 |
| 380 void invalidatePaintForOverhangingFloats(bool paintAllDescendants) final; | 381 void invalidatePaintForOverhangingFloats(bool paintAllDescendants) final; |
| 381 void invalidatePaintForOverflow() final; | 382 void invalidatePaintForOverflow() final; |
| 382 void invalidateDisplayItemClients(const LayoutBoxModelObject& paintInvalidat
ionContainer, PaintInvalidationReason) const override; | |
| 383 | 383 |
| 384 void clearFloats(EClear); | 384 void clearFloats(EClear); |
| 385 | 385 |
| 386 LayoutUnit logicalRightFloatOffsetForLine(LayoutUnit logicalTop, LayoutUnit
fixedOffset, LayoutUnit logicalHeight) const; | 386 LayoutUnit logicalRightFloatOffsetForLine(LayoutUnit logicalTop, LayoutUnit
fixedOffset, LayoutUnit logicalHeight) const; |
| 387 LayoutUnit logicalLeftFloatOffsetForLine(LayoutUnit logicalTop, LayoutUnit f
ixedOffset, LayoutUnit logicalHeight) const; | 387 LayoutUnit logicalLeftFloatOffsetForLine(LayoutUnit logicalTop, LayoutUnit f
ixedOffset, LayoutUnit logicalHeight) const; |
| 388 | 388 |
| 389 LayoutUnit logicalRightOffsetForPositioningFloat(LayoutUnit logicalTop, Layo
utUnit fixedOffset, LayoutUnit* heightRemaining) const; | 389 LayoutUnit logicalRightOffsetForPositioningFloat(LayoutUnit logicalTop, Layo
utUnit fixedOffset, LayoutUnit* heightRemaining) const; |
| 390 LayoutUnit logicalLeftOffsetForPositioningFloat(LayoutUnit logicalTop, Layou
tUnit fixedOffset, LayoutUnit* heightRemaining) const; | 390 LayoutUnit logicalLeftOffsetForPositioningFloat(LayoutUnit logicalTop, Layou
tUnit fixedOffset, LayoutUnit* heightRemaining) const; |
| 391 | 391 |
| 392 LayoutUnit adjustLogicalRightOffsetForLine(LayoutUnit offsetFromFloats, Inde
ntTextOrNot applyTextIndent) const; | 392 LayoutUnit adjustLogicalRightOffsetForLine(LayoutUnit offsetFromFloats, Inde
ntTextOrNot applyTextIndent) const; |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 662 | 662 |
| 663 // END METHODS DEFINED IN LayoutBlockFlowLine | 663 // END METHODS DEFINED IN LayoutBlockFlowLine |
| 664 | 664 |
| 665 }; | 665 }; |
| 666 | 666 |
| 667 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); | 667 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); |
| 668 | 668 |
| 669 } // namespace blink | 669 } // namespace blink |
| 670 | 670 |
| 671 #endif // LayoutBlockFlow_h | 671 #endif // LayoutBlockFlow_h |
| OLD | NEW |