Index: third_party/WebKit/Source/core/layout/ng/ng_inline_node.h |
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_inline_node.h b/third_party/WebKit/Source/core/layout/ng/ng_inline_node.h |
index b3cab22b1091c2147fcbceb3ae03c3f7efa2931f..cb2d0f1f6a5c2f303e66a2035af4369f5a83e6eb 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/ng_inline_node.h |
+++ b/third_party/WebKit/Source/core/layout/ng/ng_inline_node.h |
@@ -137,11 +137,18 @@ class NGLayoutInlineItem { |
const ComputedStyle* Style() const { return style_; } |
LayoutObject* GetLayoutObject() const { return layout_object_; } |
+ bool IsAtomicInlineLevel() const { |
+ return layout_object_ && layout_object_->isAtomicInlineLevel(); |
+ } |
+ |
void SetEndOffset(unsigned); |
LayoutUnit InlineSize() const; |
LayoutUnit InlineSize(unsigned start, unsigned end) const; |
+ // Layout this item. Only valid for IsAtomicInlineLevel() items. |
+ RefPtr<NGLayoutResult> Layout(const NGConstraintSpace& parent_space) const; |
+ |
void GetFallbackFonts(HashSet<const SimpleFontData*>*, |
unsigned start, |
unsigned end) const; |