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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 NoFlowThread, | 399 NoFlowThread, |
400 MultiColumnFlowThread, | 400 MultiColumnFlowThread, |
401 PagedFlowThread | 401 PagedFlowThread |
402 }; | 402 }; |
403 | 403 |
404 FlowThreadType getFlowThreadType(const ComputedStyle&); | 404 FlowThreadType getFlowThreadType(const ComputedStyle&); |
405 | 405 |
406 LayoutMultiColumnFlowThread* createMultiColumnFlowThread(FlowThreadType); | 406 LayoutMultiColumnFlowThread* createMultiColumnFlowThread(FlowThreadType); |
407 void createOrDestroyMultiColumnFlowThreadIfNeeded(const ComputedStyle* oldSt
yle); | 407 void createOrDestroyMultiColumnFlowThreadIfNeeded(const ComputedStyle* oldSt
yle); |
408 | 408 |
| 409 // Merge children of |siblingThatMayBeDeleted| into this object if possible,
and delete |
| 410 // |siblingThatMayBeDeleted|. Returns true if we were able to merge. In that
case, |
| 411 // |siblingThatMayBeDeleted| will be dead. We'll only be able to merge if bo
th blocks are |
| 412 // anonymous. |
| 413 bool mergeSiblingContiguousAnonymousBlock(LayoutBlockFlow* siblingThatMayBeD
eleted); |
| 414 |
| 415 // Reparent subsequent or preceding adjacent floating or out-of-flow sibling
s into this object. |
| 416 void reparentSubsequentFloatingOrOutOfFlowSiblings(); |
| 417 void reparentPrecedingFloatingOrOutOfFlowSiblings(); |
| 418 |
409 void updateLogicalWidthForAlignment(const ETextAlign&, const RootInlineBox*,
BidiRun* trailingSpaceRun, LayoutUnit& logicalLeft, LayoutUnit& totalLogicalWid
th, LayoutUnit& availableLogicalWidth, unsigned expansionOpportunityCount); | 419 void updateLogicalWidthForAlignment(const ETextAlign&, const RootInlineBox*,
BidiRun* trailingSpaceRun, LayoutUnit& logicalLeft, LayoutUnit& totalLogicalWid
th, LayoutUnit& availableLogicalWidth, unsigned expansionOpportunityCount); |
410 void checkForPaginationLogicalHeightChange(LayoutUnit& pageLogicalHeight, bo
ol& pageLogicalHeightChanged, bool& hasSpecifiedPageLogicalHeight); | 420 void checkForPaginationLogicalHeightChange(LayoutUnit& pageLogicalHeight, bo
ol& pageLogicalHeightChanged, bool& hasSpecifiedPageLogicalHeight); |
411 | 421 |
412 bool shouldBreakAtLineToAvoidWidow() const { return m_rareData && m_rareData
->m_lineBreakToAvoidWidow >= 0; } | 422 bool shouldBreakAtLineToAvoidWidow() const { return m_rareData && m_rareData
->m_lineBreakToAvoidWidow >= 0; } |
413 void clearShouldBreakAtLineToAvoidWidow() const; | 423 void clearShouldBreakAtLineToAvoidWidow() const; |
414 int lineBreakToAvoidWidow() const { return m_rareData ? m_rareData->m_lineBr
eakToAvoidWidow : -1; } | 424 int lineBreakToAvoidWidow() const { return m_rareData ? m_rareData->m_lineBr
eakToAvoidWidow : -1; } |
415 void setBreakAtLineToAvoidWidow(int); | 425 void setBreakAtLineToAvoidWidow(int); |
416 void clearDidBreakAtLineToAvoidWidow(); | 426 void clearDidBreakAtLineToAvoidWidow(); |
417 void setDidBreakAtLineToAvoidWidow(); | 427 void setDidBreakAtLineToAvoidWidow(); |
418 bool didBreakAtLineToAvoidWidow() const { return m_rareData && m_rareData->m
_didBreakAtLineToAvoidWidow; } | 428 bool didBreakAtLineToAvoidWidow() const { return m_rareData && m_rareData->m
_didBreakAtLineToAvoidWidow; } |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 | 647 |
638 // END METHODS DEFINED IN LayoutBlockFlowLine | 648 // END METHODS DEFINED IN LayoutBlockFlowLine |
639 | 649 |
640 }; | 650 }; |
641 | 651 |
642 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); | 652 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); |
643 | 653 |
644 } // namespace blink | 654 } // namespace blink |
645 | 655 |
646 #endif // LayoutBlockFlow_h | 656 #endif // LayoutBlockFlow_h |
OLD | NEW |