Index: third_party/WebKit/Source/core/layout/ng/inline/ng_inline_item.cc |
diff --git a/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_item.cc b/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_item.cc |
index 61a5e31a44e2df3f67200a3dd06c578ad7ba11b3..d7dbb106b4296fe4fd860e3d99c326873464d07b 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_item.cc |
+++ b/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_item.cc |
@@ -4,6 +4,7 @@ |
#include "core/layout/ng/inline/ng_inline_item.h" |
+#include "core/layout/LayoutInline.h" |
#include "core/layout/LayoutObject.h" |
#include "platform/fonts/CharacterRange.h" |
#include "platform/fonts/shaping/ShapeResultBuffer.h" |
@@ -123,6 +124,16 @@ void NGInlineItem::GetFallbackFonts( |
shape_result_->FallbackFonts(fallback_fonts); |
} |
+bool NGInlineItem::HasStartEdge() const { |
+ DCHECK(Type() == kOpenTag || Type() == kCloseTag); |
+ return !GetLayoutObject()->IsInlineElementContinuation(); |
ikilpatrick
2017/05/30 16:05:26
These should be switch to break token checks at so
kojii
2017/05/30 17:56:18
Done.
|
+} |
+ |
+bool NGInlineItem::HasEndEdge() const { |
+ DCHECK(Type() == kOpenTag || Type() == kCloseTag); |
+ return !ToLayoutInline(GetLayoutObject())->Continuation(); |
+} |
+ |
NGInlineItemRange::NGInlineItemRange(Vector<NGInlineItem>* items, |
unsigned start_index, |
unsigned end_index) |