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

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

Issue 2230803005: [LayoutNG] Add writing-mode and direction to NGFragmentBase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase w/HEAD Created 4 years, 4 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_fragment.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_fragment.h b/third_party/WebKit/Source/core/layout/ng/ng_fragment.h
index f6a80fa3d9fcb58d90737c066d4a422ba564c96f..59ebae853be83d9975d1560d11e4a0d95daf3344 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_fragment.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_fragment.h
@@ -18,10 +18,16 @@ class CORE_EXPORT NGFragment final : public NGFragmentBase {
NGFragment(LayoutUnit inlineSize,
LayoutUnit blockSize,
LayoutUnit inlineOverflow,
- LayoutUnit blockOverflow)
- : NGFragmentBase(inlineSize, blockSize, inlineOverflow, blockOverflow) {
- m_isText = false;
- }
+ LayoutUnit blockOverflow,
+ NGWritingMode writingMode,
+ NGDirection direction)
+ : NGFragmentBase(inlineSize,
+ blockSize,
+ inlineOverflow,
+ blockOverflow,
+ writingMode,
+ direction,
+ FragmentBox) {}
DEFINE_INLINE_TRACE_AFTER_DISPATCH() {
visitor->trace(m_children);
@@ -34,7 +40,6 @@ class CORE_EXPORT NGFragment final : public NGFragmentBase {
private:
HeapVector<Member<const NGFragmentBase>> m_children;
- bool m_isText;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698