| Index: third_party/WebKit/Source/core/layout/ng/ng_break_token.h
|
| diff --git a/third_party/WebKit/Source/core/layout/ng/ng_break_token.h b/third_party/WebKit/Source/core/layout/ng/ng_break_token.h
|
| index 7a1778fbdd19448090df0b0e8091f0b4c041c180..51f77ea3bc8436bea2781ee24bfe28691d98affb 100644
|
| --- a/third_party/WebKit/Source/core/layout/ng/ng_break_token.h
|
| +++ b/third_party/WebKit/Source/core/layout/ng/ng_break_token.h
|
| @@ -10,6 +10,8 @@
|
|
|
| namespace blink {
|
|
|
| +class NGLayoutInputNode;
|
| +
|
| class CORE_EXPORT NGBreakToken
|
| : public GarbageCollectedFinalized<NGBreakToken> {
|
| public:
|
| @@ -18,13 +20,20 @@ class CORE_EXPORT NGBreakToken
|
| enum NGBreakTokenType { kBlockBreakToken, kTextBreakToken };
|
| NGBreakTokenType Type() const { return static_cast<NGBreakTokenType>(type_); }
|
|
|
| - DEFINE_INLINE_VIRTUAL_TRACE() {}
|
| + bool IsFinished() const { return is_finished_; }
|
| + NGLayoutInputNode* Node() const { return node_; }
|
| +
|
| + DEFINE_INLINE_VIRTUAL_TRACE() { visitor->trace(node_); }
|
|
|
| - protected:
|
| - NGBreakToken(NGBreakTokenType type) : type_(type) {}
|
| + public: // protected:
|
| + NGBreakToken(NGBreakTokenType type, bool is_finished, NGLayoutInputNode* node)
|
| + : type_(type), is_finished_(is_finished), node_(node) {}
|
|
|
| private:
|
| unsigned type_ : 1;
|
| + unsigned is_finished_ : 1;
|
| +
|
| + Member<NGLayoutInputNode> node_;
|
| };
|
|
|
| } // namespace blink
|
|
|