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

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

Issue 2231153003: [layoutng] Make the layout algorithm actually compute and store positions and sizes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@stuff
Patch Set: Add children to fragment 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NGFragment_h 5 #ifndef NGFragment_h
6 #define NGFragment_h 6 #define NGFragment_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/layout/ng/ng_fragment_base.h" 9 #include "core/layout/ng/ng_fragment_base.h"
10 #include "platform/LayoutUnit.h" 10 #include "platform/LayoutUnit.h"
(...skipping 10 matching lines...) Expand all
21 LayoutUnit blockOverflow) 21 LayoutUnit blockOverflow)
22 : NGFragmentBase(inlineSize, blockSize, inlineOverflow, blockOverflow) { 22 : NGFragmentBase(inlineSize, blockSize, inlineOverflow, blockOverflow) {
23 m_isText = false; 23 m_isText = false;
24 } 24 }
25 25
26 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { 26 DEFINE_INLINE_TRACE_AFTER_DISPATCH() {
27 visitor->trace(m_children); 27 visitor->trace(m_children);
28 NGFragmentBase::traceAfterDispatch(visitor); 28 NGFragmentBase::traceAfterDispatch(visitor);
29 } 29 }
30 30
31 void swapChildren(HeapVector<Member<const NGFragmentBase>>& children) {
32 m_children.swap(children);
33 }
34
31 private: 35 private:
32 HeapVector<Member<const NGFragmentBase>> m_children; 36 HeapVector<Member<const NGFragmentBase>> m_children;
33 bool m_isText; 37 bool m_isText;
34 }; 38 };
35 39
36 } // namespace blink 40 } // namespace blink
37 41
38 #endif // NGFragment_h 42 #endif // NGFragment_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698