| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 public: | 50 public: |
| 51 LineBoxList() : first_line_box_(nullptr), last_line_box_(nullptr) {} | 51 LineBoxList() : first_line_box_(nullptr), last_line_box_(nullptr) {} |
| 52 | 52 |
| 53 #if DCHECK_IS_ON() | 53 #if DCHECK_IS_ON() |
| 54 ~LineBoxList(); | 54 ~LineBoxList(); |
| 55 #endif | 55 #endif |
| 56 | 56 |
| 57 InlineFlowBox* FirstLineBox() const { return first_line_box_; } | 57 InlineFlowBox* FirstLineBox() const { return first_line_box_; } |
| 58 InlineFlowBox* LastLineBox() const { return last_line_box_; } | 58 InlineFlowBox* LastLineBox() const { return last_line_box_; } |
| 59 | 59 |
| 60 void CheckConsistency() const; | |
| 61 | |
| 62 void AppendLineBox(InlineFlowBox*); | 60 void AppendLineBox(InlineFlowBox*); |
| 63 | 61 |
| 64 void DeleteLineBoxTree(); | 62 void DeleteLineBoxTree(); |
| 65 void DeleteLineBoxes(); | 63 void DeleteLineBoxes(); |
| 66 | 64 |
| 67 void ExtractLineBox(InlineFlowBox*); | 65 void ExtractLineBox(InlineFlowBox*); |
| 68 void AttachLineBox(InlineFlowBox*); | 66 void AttachLineBox(InlineFlowBox*); |
| 69 void RemoveLineBox(InlineFlowBox*); | 67 void RemoveLineBox(InlineFlowBox*); |
| 70 | 68 |
| 71 void DirtyLineBoxes(); | 69 void DirtyLineBoxes(); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 93 const CullRect&, | 91 const CullRect&, |
| 94 const LayoutPoint&) const; | 92 const LayoutPoint&) const; |
| 95 | 93 |
| 96 // For block flows, each box represents the root inline box for a line in the | 94 // For block flows, each box represents the root inline box for a line in the |
| 97 // paragraph. | 95 // paragraph. |
| 98 // For inline flows, each box represents a portion of that inline. | 96 // For inline flows, each box represents a portion of that inline. |
| 99 InlineFlowBox* first_line_box_; | 97 InlineFlowBox* first_line_box_; |
| 100 InlineFlowBox* last_line_box_; | 98 InlineFlowBox* last_line_box_; |
| 101 }; | 99 }; |
| 102 | 100 |
| 103 #if !DCHECK_IS_ON() | |
| 104 inline void LineBoxList::CheckConsistency() const {} | |
| 105 #endif | |
| 106 | |
| 107 } // namespace blink | 101 } // namespace blink |
| 108 | 102 |
| 109 #endif // LineBoxList_h | 103 #endif // LineBoxList_h |
| OLD | NEW |