| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 public: | 58 public: |
| 59 explicit LayoutBlockFlow(ContainerNode*); | 59 explicit LayoutBlockFlow(ContainerNode*); |
| 60 ~LayoutBlockFlow() override; | 60 ~LayoutBlockFlow() override; |
| 61 | 61 |
| 62 static LayoutBlockFlow* createAnonymous(Document*); | 62 static LayoutBlockFlow* createAnonymous(Document*); |
| 63 | 63 |
| 64 bool isLayoutBlockFlow() const final { return true; } | 64 bool isLayoutBlockFlow() const final { return true; } |
| 65 | 65 |
| 66 void layoutBlock(bool relayoutChildren) override; | 66 void layoutBlock(bool relayoutChildren) override; |
| 67 | 67 |
| 68 void computeOverflow(LayoutUnit oldClientAfterEdge, bool recomputeFloats = f
alse) override; | 68 void computeOverflow(LayoutUnit oldClientAfterEdge) override; |
| 69 | 69 |
| 70 void deleteLineBoxTree() final; | 70 void deleteLineBoxTree() final; |
| 71 | 71 |
| 72 LayoutUnit availableLogicalWidthForLine(LayoutUnit position, bool shouldInde
ntText, LayoutUnit logicalHeight = 0) const | 72 LayoutUnit availableLogicalWidthForLine(LayoutUnit position, bool shouldInde
ntText, LayoutUnit logicalHeight = 0) const |
| 73 { | 73 { |
| 74 return max<LayoutUnit>(0, logicalRightOffsetForLine(position, shouldInde
ntText, logicalHeight) - logicalLeftOffsetForLine(position, shouldIndentText, lo
gicalHeight)); | 74 return max<LayoutUnit>(0, logicalRightOffsetForLine(position, shouldInde
ntText, logicalHeight) - logicalLeftOffsetForLine(position, shouldIndentText, lo
gicalHeight)); |
| 75 } | 75 } |
| 76 LayoutUnit logicalRightOffsetForLine(LayoutUnit position, bool shouldIndentT
ext, LayoutUnit logicalHeight = 0) const | 76 LayoutUnit logicalRightOffsetForLine(LayoutUnit position, bool shouldIndentT
ext, LayoutUnit logicalHeight = 0) const |
| 77 { | 77 { |
| 78 return logicalRightOffsetForLine(position, logicalRightOffsetForContent(
), shouldIndentText, logicalHeight); | 78 return logicalRightOffsetForLine(position, logicalRightOffsetForContent(
), shouldIndentText, logicalHeight); |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 | 543 |
| 544 // END METHODS DEFINED IN LayoutBlockFlowLine | 544 // END METHODS DEFINED IN LayoutBlockFlowLine |
| 545 | 545 |
| 546 }; | 546 }; |
| 547 | 547 |
| 548 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); | 548 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); |
| 549 | 549 |
| 550 } // namespace blink | 550 } // namespace blink |
| 551 | 551 |
| 552 #endif // LayoutBlockFlow_h | 552 #endif // LayoutBlockFlow_h |
| OLD | NEW |