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

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

Issue 2702853002: [LayoutNG] Shape items with context (Closed)
Patch Set: Add null check Created 3 years, 10 months 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_inline_node.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 void AssertEndOffset(unsigned offset) const; 136 void AssertEndOffset(unsigned offset) const;
137 137
138 private: 138 private:
139 unsigned start_offset_; 139 unsigned start_offset_;
140 unsigned end_offset_; 140 unsigned end_offset_;
141 UBiDiLevel bidi_level_; 141 UBiDiLevel bidi_level_;
142 UScriptCode script_; 142 UScriptCode script_;
143 FontFallbackPriority fallback_priority_; 143 FontFallbackPriority fallback_priority_;
144 bool rotate_sideways_; 144 bool rotate_sideways_;
145 const ComputedStyle* style_; 145 const ComputedStyle* style_;
146 Vector<RefPtr<const ShapeResult>, 64> shape_results_; 146 RefPtr<const ShapeResult> shape_result_;
147 LayoutObject* layout_object_; 147 LayoutObject* layout_object_;
148 148
149 friend class NGInlineNode; 149 friend class NGInlineNode;
150 }; 150 };
151 151
152 inline void NGLayoutInlineItem::AssertOffset(unsigned offset) const { 152 inline void NGLayoutInlineItem::AssertOffset(unsigned offset) const {
153 DCHECK(offset >= start_offset_ && offset < end_offset_); 153 DCHECK(offset >= start_offset_ && offset < end_offset_);
154 } 154 }
155 155
156 inline void NGLayoutInlineItem::AssertEndOffset(unsigned offset) const { 156 inline void NGLayoutInlineItem::AssertEndOffset(unsigned offset) const {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 206
207 private: 207 private:
208 NGLayoutInlineItem* start_item_; 208 NGLayoutInlineItem* start_item_;
209 unsigned size_; 209 unsigned size_;
210 unsigned start_index_; 210 unsigned start_index_;
211 }; 211 };
212 212
213 } // namespace blink 213 } // namespace blink
214 214
215 #endif // NGInlineNode_h 215 #endif // NGInlineNode_h
OLDNEW
« no previous file with comments | « no previous file | 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