Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: third_party/WebKit/Source/core/layout/ng/ng_inline_node.h

Issue 2562703003: Make AlgorithmForInputNode use original constraint space (Closed)
Patch Set: Make AlgorithmForInputNode use container constraint space Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef NGInlineNode_h 5 #ifndef NGInlineNode_h
6 #define NGInlineNode_h 6 #define NGInlineNode_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/layout/ng/ng_layout_input_node.h" 9 #include "core/layout/ng/ng_layout_input_node.h"
10 #include "platform/fonts/FontFallbackPriority.h" 10 #include "platform/fonts/FontFallbackPriority.h"
(...skipping 13 matching lines...) Expand all
24 class NGLayoutAlgorithm; 24 class NGLayoutAlgorithm;
25 class NGLayoutInlineItem; 25 class NGLayoutInlineItem;
26 class NGLayoutInlineItemsBuilder; 26 class NGLayoutInlineItemsBuilder;
27 27
28 // Represents an inline node to be laid out. 28 // Represents an inline node to be laid out.
29 class CORE_EXPORT NGInlineNode : public NGLayoutInputNode { 29 class CORE_EXPORT NGInlineNode : public NGLayoutInputNode {
30 public: 30 public:
31 NGInlineNode(LayoutObject* start_inline, ComputedStyle* block_style); 31 NGInlineNode(LayoutObject* start_inline, ComputedStyle* block_style);
32 ~NGInlineNode() override; 32 ~NGInlineNode() override;
33 33
34 bool Layout(const NGConstraintSpace*, NGFragmentBase**) override; 34 bool Layout(NGConstraintSpace*, NGFragmentBase**) override;
35 NGInlineNode* NextSibling() override; 35 NGInlineNode* NextSibling() override;
36 36
37 // Prepare inline and text content for layout. Must be called before 37 // Prepare inline and text content for layout. Must be called before
38 // calling the Layout method. 38 // calling the Layout method.
39 void PrepareLayout(); 39 void PrepareLayout();
40 40
41 String Text(unsigned start_offset, unsigned end_offset) const { 41 String Text(unsigned start_offset, unsigned end_offset) const {
42 return text_content_.substring(start_offset, end_offset); 42 return text_content_.substring(start_offset, end_offset);
43 } 43 }
44 44
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 DEFINE_TYPE_CASTS(NGInlineNode, 120 DEFINE_TYPE_CASTS(NGInlineNode,
121 NGLayoutInputNode, 121 NGLayoutInputNode,
122 node, 122 node,
123 node->Type() == NGLayoutInputNode::kLegacyInline, 123 node->Type() == NGLayoutInputNode::kLegacyInline,
124 node.Type() == NGLayoutInputNode::kLegacyInline); 124 node.Type() == NGLayoutInputNode::kLegacyInline);
125 125
126 } // namespace blink 126 } // namespace blink
127 127
128 #endif // NGInlineNode_h 128 #endif // NGInlineNode_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_block_node.cc ('k') | third_party/WebKit/Source/core/layout/ng/ng_inline_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698