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 25 matching lines...) Expand all Loading... |
36 #ifndef LayoutBlockFlow_h | 36 #ifndef LayoutBlockFlow_h |
37 #define LayoutBlockFlow_h | 37 #define LayoutBlockFlow_h |
38 | 38 |
39 #include "core/CoreExport.h" | 39 #include "core/CoreExport.h" |
40 #include "core/layout/FloatingObjects.h" | 40 #include "core/layout/FloatingObjects.h" |
41 #include "core/layout/LayoutBlock.h" | 41 #include "core/layout/LayoutBlock.h" |
42 #include "core/layout/api/LineLayoutItem.h" | 42 #include "core/layout/api/LineLayoutItem.h" |
43 #include "core/layout/line/LineBoxList.h" | 43 #include "core/layout/line/LineBoxList.h" |
44 #include "core/layout/line/RootInlineBox.h" | 44 #include "core/layout/line/RootInlineBox.h" |
45 #include "core/layout/line/TrailingObjects.h" | 45 #include "core/layout/line/TrailingObjects.h" |
46 #include <memory> | |
47 | 46 |
48 namespace blink { | 47 namespace blink { |
49 | 48 |
50 class BlockChildrenLayoutInfo; | 49 class BlockChildrenLayoutInfo; |
51 class MarginInfo; | 50 class MarginInfo; |
52 class LayoutInline; | 51 class LayoutInline; |
53 class LineInfo; | 52 class LineInfo; |
54 class LineLayoutState; | 53 class LineLayoutState; |
55 class LineWidth; | 54 class LineWidth; |
56 class LayoutMultiColumnFlowThread; | 55 class LayoutMultiColumnFlowThread; |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 | 608 |
610 LayoutBlockFlowRareData& ensureRareData(); | 609 LayoutBlockFlowRareData& ensureRareData(); |
611 | 610 |
612 LayoutUnit m_paintInvalidationLogicalTop; | 611 LayoutUnit m_paintInvalidationLogicalTop; |
613 LayoutUnit m_paintInvalidationLogicalBottom; | 612 LayoutUnit m_paintInvalidationLogicalBottom; |
614 | 613 |
615 bool isSelfCollapsingBlock() const override; | 614 bool isSelfCollapsingBlock() const override; |
616 bool checkIfIsSelfCollapsingBlock() const; | 615 bool checkIfIsSelfCollapsingBlock() const; |
617 | 616 |
618 protected: | 617 protected: |
619 std::unique_ptr<LayoutBlockFlowRareData> m_rareData; | 618 OwnPtr<LayoutBlockFlowRareData> m_rareData; |
620 std::unique_ptr<FloatingObjects> m_floatingObjects; | 619 OwnPtr<FloatingObjects> m_floatingObjects; |
621 | 620 |
622 friend class MarginInfo; | 621 friend class MarginInfo; |
623 friend class LineWidth; // needs to know FloatingObject | 622 friend class LineWidth; // needs to know FloatingObject |
624 | 623 |
625 // LayoutRubyBase objects need to be able to split and merge, moving their c
hildren around | 624 // LayoutRubyBase objects need to be able to split and merge, moving their c
hildren around |
626 // (calling makeChildrenNonInline). | 625 // (calling makeChildrenNonInline). |
627 // TODO(mstensho): Try to get rid of this friendship. | 626 // TODO(mstensho): Try to get rid of this friendship. |
628 friend class LayoutRubyBase; | 627 friend class LayoutRubyBase; |
629 | 628 |
630 // FIXME-BLOCKFLOW: These methods have implementations in | 629 // FIXME-BLOCKFLOW: These methods have implementations in |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 | 662 |
664 // END METHODS DEFINED IN LayoutBlockFlowLine | 663 // END METHODS DEFINED IN LayoutBlockFlowLine |
665 | 664 |
666 }; | 665 }; |
667 | 666 |
668 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); | 667 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); |
669 | 668 |
670 } // namespace blink | 669 } // namespace blink |
671 | 670 |
672 #endif // LayoutBlockFlow_h | 671 #endif // LayoutBlockFlow_h |
OLD | NEW |