| Index: third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h
|
| diff --git a/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h b/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h
|
| index 2d014c50f6b72a3384905ae00a27bb834b8f4765..abfa5578a27235f81f9deaa99afe7536ce39b189 100644
|
| --- a/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h
|
| +++ b/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h
|
| @@ -32,6 +32,8 @@ class CORE_EXPORT NGPhysicalFragment : public RefCounted<NGPhysicalFragment> {
|
| enum NGFragmentType { kFragmentBox = 0, kFragmentText = 1 };
|
|
|
| NGFragmentType Type() const { return static_cast<NGFragmentType>(type_); }
|
| + bool IsBox() const { return Type() == NGFragmentType::kFragmentBox; }
|
| + bool IsText() const { return Type() == NGFragmentType::kFragmentText; }
|
|
|
| // Override RefCounted's deref() to ensure operator delete is called on the
|
| // appropriate subclass type.
|
|
|