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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 bool updateLogicalWidthAndColumnWidth() override; | 324 bool updateLogicalWidthAndColumnWidth() override; |
325 | 325 |
326 void setLogicalLeftForChild(LayoutBox& child, LayoutUnit logicalLeft); | 326 void setLogicalLeftForChild(LayoutBox& child, LayoutUnit logicalLeft); |
327 void setLogicalTopForChild(LayoutBox& child, LayoutUnit logicalTop); | 327 void setLogicalTopForChild(LayoutBox& child, LayoutUnit logicalTop); |
328 void determineLogicalLeftPositionForChild(LayoutBox& child); | 328 void determineLogicalLeftPositionForChild(LayoutBox& child); |
329 | 329 |
330 void addOutlineRects(Vector<LayoutRect>&, const LayoutPoint& additionalOffse
t, IncludeBlockVisualOverflowOrNot) const override; | 330 void addOutlineRects(Vector<LayoutRect>&, const LayoutPoint& additionalOffse
t, IncludeBlockVisualOverflowOrNot) const override; |
331 | 331 |
332 PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState
&) override; | 332 PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState
&) override; |
333 | 333 |
| 334 Node* nodeForHitTest() const final; |
334 bool hitTestChildren(HitTestResult&, const HitTestLocation& locationInContai
ner, const LayoutPoint& accumulatedOffset, HitTestAction) override; | 335 bool hitTestChildren(HitTestResult&, const HitTestLocation& locationInContai
ner, const LayoutPoint& accumulatedOffset, HitTestAction) override; |
335 | 336 |
336 private: | 337 private: |
337 bool layoutBlockFlow(bool relayoutChildren, LayoutUnit& pageLogicalHeight, S
ubtreeLayoutScope&); | 338 bool layoutBlockFlow(bool relayoutChildren, LayoutUnit& pageLogicalHeight, S
ubtreeLayoutScope&); |
338 void layoutBlockChildren(bool relayoutChildren, SubtreeLayoutScope&, LayoutU
nit beforeEdge, LayoutUnit afterEdge); | 339 void layoutBlockChildren(bool relayoutChildren, SubtreeLayoutScope&, LayoutU
nit beforeEdge, LayoutUnit afterEdge); |
339 | 340 |
340 void markDescendantsWithFloatsForLayoutIfNeeded(LayoutBlockFlow& child, Layo
utUnit newLogicalTop, LayoutUnit previousFloatLogicalBottom); | 341 void markDescendantsWithFloatsForLayoutIfNeeded(LayoutBlockFlow& child, Layo
utUnit newLogicalTop, LayoutUnit previousFloatLogicalBottom); |
341 bool positionAndLayoutOnceIfNeeded(LayoutBox& child, LayoutUnit newLogicalTo
p, BlockChildrenLayoutInfo&); | 342 bool positionAndLayoutOnceIfNeeded(LayoutBox& child, LayoutUnit newLogicalTo
p, BlockChildrenLayoutInfo&); |
342 | 343 |
343 // Handle breaking policy before the child, and insert a forced break in fro
nt of it if needed. | 344 // Handle breaking policy before the child, and insert a forced break in fro
nt of it if needed. |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 | 627 |
627 // END METHODS DEFINED IN LayoutBlockFlowLine | 628 // END METHODS DEFINED IN LayoutBlockFlowLine |
628 | 629 |
629 }; | 630 }; |
630 | 631 |
631 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); | 632 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); |
632 | 633 |
633 } // namespace blink | 634 } // namespace blink |
634 | 635 |
635 #endif // LayoutBlockFlow_h | 636 #endif // LayoutBlockFlow_h |
OLD | NEW |