| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/layout/ng/ng_inline_node.h" | 5 #include "core/layout/ng/ng_inline_node.h" |
| 6 | 6 |
| 7 #include "core/layout/LayoutBlockFlow.h" | 7 #include "core/layout/LayoutBlockFlow.h" |
| 8 #include "core/layout/LayoutObject.h" | 8 #include "core/layout/LayoutObject.h" |
| 9 #include "core/layout/LayoutText.h" | 9 #include "core/layout/LayoutText.h" |
| 10 #include "core/layout/ng/ng_bidi_paragraph.h" | 10 #include "core/layout/ng/ng_bidi_paragraph.h" |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 NGLayoutInputNode::trace(visitor); | 360 NGLayoutInputNode::trace(visitor); |
| 361 } | 361 } |
| 362 | 362 |
| 363 NGLayoutInlineItemRange::NGLayoutInlineItemRange( | 363 NGLayoutInlineItemRange::NGLayoutInlineItemRange( |
| 364 Vector<NGLayoutInlineItem>* items, | 364 Vector<NGLayoutInlineItem>* items, |
| 365 unsigned start_index, | 365 unsigned start_index, |
| 366 unsigned end_index) | 366 unsigned end_index) |
| 367 : start_item_(&(*items)[start_index]), | 367 : start_item_(&(*items)[start_index]), |
| 368 size_(end_index - start_index), | 368 size_(end_index - start_index), |
| 369 start_index_(start_index) { | 369 start_index_(start_index) { |
| 370 RELEASE_ASSERT(start_index <= end_index && end_index <= items->size()); | 370 CHECK_LE(start_index, end_index); |
| 371 CHECK_LE(end_index, items->size()); |
| 371 } | 372 } |
| 372 | 373 |
| 373 } // namespace blink | 374 } // namespace blink |
| OLD | NEW |