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

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

Issue 2632523002: [LayoutNG] Initial support for multicol, introducing NGBlockBreakToken. (Closed)
Patch Set: Created 3 years, 11 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 2ddb11124c0d5695d3919a8c2d4445cb1a52f17c..7a1778fbdd19448090df0b0e8091f0b4c041c180 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
@@ -13,10 +13,20 @@ namespace blink {
class CORE_EXPORT NGBreakToken
: public GarbageCollectedFinalized<NGBreakToken> {
public:
- NGBreakToken() {}
+ virtual ~NGBreakToken() {}
- DEFINE_INLINE_TRACE() {}
+ enum NGBreakTokenType { kBlockBreakToken, kTextBreakToken };
+ NGBreakTokenType Type() const { return static_cast<NGBreakTokenType>(type_); }
+
+ DEFINE_INLINE_VIRTUAL_TRACE() {}
+
+ protected:
+ NGBreakToken(NGBreakTokenType type) : type_(type) {}
+
+ private:
+ unsigned type_ : 1;
};
-}
-#endif
+} // namespace blink
+
+#endif // NGBreakToken_h

Powered by Google App Engine
This is Rietveld 408576698