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/inline/ng_inline_node.h" | 5 #include "core/layout/ng/inline/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/inline/ng_bidi_paragraph.h" | 10 #include "core/layout/ng/inline/ng_bidi_paragraph.h" |
11 #include "core/layout/ng/inline/ng_inline_break_token.h" | 11 #include "core/layout/ng/inline/ng_inline_break_token.h" |
12 #include "core/layout/ng/inline/ng_inline_layout_algorithm.h" | 12 #include "core/layout/ng/inline/ng_inline_layout_algorithm.h" |
13 #include "core/layout/ng/inline/ng_layout_inline_items_builder.h" | 13 #include "core/layout/ng/inline/ng_layout_inline_items_builder.h" |
14 #include "core/layout/ng/inline/ng_physical_text_fragment.h" | 14 #include "core/layout/ng/inline/ng_physical_text_fragment.h" |
15 #include "core/layout/ng/inline/ng_text_fragment.h" | 15 #include "core/layout/ng/inline/ng_text_fragment.h" |
16 #include "core/layout/ng/ng_box_fragment.h" | 16 #include "core/layout/ng/ng_box_fragment.h" |
17 #include "core/layout/ng/ng_constraint_space_builder.h" | 17 #include "core/layout/ng/ng_constraint_space_builder.h" |
18 #include "core/layout/ng/ng_fragment_builder.h" | 18 #include "core/layout/ng/ng_fragment_builder.h" |
19 #include "core/layout/ng/ng_physical_box_fragment.h" | 19 #include "core/layout/ng/ng_physical_box_fragment.h" |
20 #include "core/style/ComputedStyle.h" | 20 #include "core/style/ComputedStyle.h" |
21 #include "platform/fonts/CharacterRange.h" | 21 #include "platform/fonts/CharacterRange.h" |
22 #include "platform/fonts/shaping/CachingWordShapeIterator.h" | 22 #include "platform/fonts/shaping/CachingWordShapeIterator.h" |
23 #include "platform/fonts/shaping/CachingWordShaper.h" | 23 #include "platform/fonts/shaping/CachingWordShaper.h" |
24 #include "platform/fonts/shaping/HarfBuzzShaper.h" | 24 #include "platform/fonts/shaping/HarfBuzzShaper.h" |
25 #include "platform/fonts/shaping/ShapeResultBuffer.h" | 25 #include "platform/fonts/shaping/ShapeResultBuffer.h" |
26 #include "wtf/text/CharacterNames.h" | 26 #include "platform/wtf/text/CharacterNames.h" |
27 | 27 |
28 namespace blink { | 28 namespace blink { |
29 | 29 |
30 NGInlineNode::NGInlineNode(LayoutObject* start_inline, LayoutBlockFlow* block) | 30 NGInlineNode::NGInlineNode(LayoutObject* start_inline, LayoutBlockFlow* block) |
31 : NGLayoutInputNode(NGLayoutInputNodeType::kLegacyInline), | 31 : NGLayoutInputNode(NGLayoutInputNodeType::kLegacyInline), |
32 start_inline_(start_inline), | 32 start_inline_(start_inline), |
33 block_(block) { | 33 block_(block) { |
34 DCHECK(start_inline); | 34 DCHECK(start_inline); |
35 DCHECK(block); | 35 DCHECK(block); |
36 } | 36 } |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 unsigned start_index, | 369 unsigned start_index, |
370 unsigned end_index) | 370 unsigned end_index) |
371 : start_item_(&(*items)[start_index]), | 371 : start_item_(&(*items)[start_index]), |
372 size_(end_index - start_index), | 372 size_(end_index - start_index), |
373 start_index_(start_index) { | 373 start_index_(start_index) { |
374 CHECK_LE(start_index, end_index); | 374 CHECK_LE(start_index, end_index); |
375 CHECK_LE(end_index, items->size()); | 375 CHECK_LE(end_index, items->size()); |
376 } | 376 } |
377 | 377 |
378 } // namespace blink | 378 } // namespace blink |
OLD | NEW |