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 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 Node* nodeForHitTest() const final; | 470 Node* nodeForHitTest() const final; |
471 bool hitTestChildren(HitTestResult&, | 471 bool hitTestChildren(HitTestResult&, |
472 const HitTestLocation& locationInContainer, | 472 const HitTestLocation& locationInContainer, |
473 const LayoutPoint& accumulatedOffset, | 473 const LayoutPoint& accumulatedOffset, |
474 HitTestAction) override; | 474 HitTestAction) override; |
475 | 475 |
476 LayoutSize accumulateInFlowPositionOffsets() const override; | 476 LayoutSize accumulateInFlowPositionOffsets() const override; |
477 | 477 |
478 private: | 478 private: |
479 bool layoutBlockFlow(bool relayoutChildren, | 479 bool layoutBlockFlow(bool relayoutChildren, |
480 LayoutUnit& pageLogicalHeight, | |
481 SubtreeLayoutScope&); | 480 SubtreeLayoutScope&); |
482 void addOverhangingFloatsFromChildren(LayoutUnit unconstrainedHeight); | 481 void addOverhangingFloatsFromChildren(LayoutUnit unconstrainedHeight); |
483 void layoutBlockChildren(bool relayoutChildren, | 482 void layoutBlockChildren(bool relayoutChildren, |
484 SubtreeLayoutScope&, | 483 SubtreeLayoutScope&, |
485 LayoutUnit beforeEdge, | 484 LayoutUnit beforeEdge, |
486 LayoutUnit afterEdge); | 485 LayoutUnit afterEdge); |
487 | 486 |
488 void markDescendantsWithFloatsForLayoutIfNeeded( | 487 void markDescendantsWithFloatsForLayoutIfNeeded( |
489 LayoutBlockFlow& child, | 488 LayoutBlockFlow& child, |
490 LayoutUnit newLogicalTop, | 489 LayoutUnit newLogicalTop, |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 void makeChildrenNonInline(LayoutObject* insertionPoint = nullptr); | 582 void makeChildrenNonInline(LayoutObject* insertionPoint = nullptr); |
584 void childBecameNonInline(LayoutObject* child) final; | 583 void childBecameNonInline(LayoutObject* child) final; |
585 | 584 |
586 void updateLogicalWidthForAlignment(const ETextAlign&, | 585 void updateLogicalWidthForAlignment(const ETextAlign&, |
587 const RootInlineBox*, | 586 const RootInlineBox*, |
588 BidiRun* trailingSpaceRun, | 587 BidiRun* trailingSpaceRun, |
589 LayoutUnit& logicalLeft, | 588 LayoutUnit& logicalLeft, |
590 LayoutUnit& totalLogicalWidth, | 589 LayoutUnit& totalLogicalWidth, |
591 LayoutUnit& availableLogicalWidth, | 590 LayoutUnit& availableLogicalWidth, |
592 unsigned expansionOpportunityCount); | 591 unsigned expansionOpportunityCount); |
593 void checkForPaginationLogicalHeightChange(LayoutUnit& pageLogicalHeight); | |
594 | 592 |
595 bool shouldBreakAtLineToAvoidWidow() const { | 593 bool shouldBreakAtLineToAvoidWidow() const { |
596 return m_rareData && m_rareData->m_lineBreakToAvoidWidow >= 0; | 594 return m_rareData && m_rareData->m_lineBreakToAvoidWidow >= 0; |
597 } | 595 } |
598 void clearShouldBreakAtLineToAvoidWidow() const; | 596 void clearShouldBreakAtLineToAvoidWidow() const; |
599 int lineBreakToAvoidWidow() const { | 597 int lineBreakToAvoidWidow() const { |
600 return m_rareData ? m_rareData->m_lineBreakToAvoidWidow : -1; | 598 return m_rareData ? m_rareData->m_lineBreakToAvoidWidow : -1; |
601 } | 599 } |
602 void setBreakAtLineToAvoidWidow(int); | 600 void setBreakAtLineToAvoidWidow(int); |
603 void clearDidBreakAtLineToAvoidWidow(); | 601 void clearDidBreakAtLineToAvoidWidow(); |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
941 void positionDialog(); | 939 void positionDialog(); |
942 | 940 |
943 // END METHODS DEFINED IN LayoutBlockFlowLine | 941 // END METHODS DEFINED IN LayoutBlockFlowLine |
944 }; | 942 }; |
945 | 943 |
946 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); | 944 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); |
947 | 945 |
948 } // namespace blink | 946 } // namespace blink |
949 | 947 |
950 #endif // LayoutBlockFlow_h | 948 #endif // LayoutBlockFlow_h |
OLD | NEW |