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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_break_token.h

Issue 2693193002: [LayoutNG] A different approach to multi-col. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698