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

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

Issue 2483683003: [LayoutNG] Split apart storage for AvailableSize and PercentageSize. (Closed)
Patch Set: rebase. Created 4 years, 1 month 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
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 NGLayoutAlgorithm_h 5 #ifndef NGLayoutAlgorithm_h
6 #define NGLayoutAlgorithm_h 6 #define NGLayoutAlgorithm_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "wtf/Allocator.h" 9 #include "wtf/Allocator.h"
10 #include "wtf/Noncopyable.h" 10 #include "wtf/Noncopyable.h"
(...skipping 21 matching lines...) Expand all
32 // called again. The out parameter will only be set when this function 32 // called again. The out parameter will only be set when this function
33 // returns true. 33 // returns true.
34 virtual bool Layout(NGPhysicalFragment**) = 0; 34 virtual bool Layout(NGPhysicalFragment**) = 0;
35 35
36 enum MinAndMaxState { Success, Pending, NotImplemented }; 36 enum MinAndMaxState { Success, Pending, NotImplemented };
37 37
38 // Computes the min-content and max-content intrinsic sizes for the given box. 38 // Computes the min-content and max-content intrinsic sizes for the given box.
39 // The result will not take any min-width. max-width or width properties into 39 // The result will not take any min-width. max-width or width properties into
40 // account. Implementations can return NotImpplemented in which case the 40 // account. Implementations can return NotImpplemented in which case the
41 // caller is expected ot synthesize this value from the overflow rect returned 41 // caller is expected ot synthesize this value from the overflow rect returned
42 // from Layout called with a container width of 0 and LayoutUnit::max(), 42 // from Layout called with a available width of 0 and LayoutUnit::max(),
43 // respectively. 43 // respectively.
44 // A Pending return value has the same meaning as a false return from layout, 44 // A Pending return value has the same meaning as a false return from layout,
45 // i.e. it is a request to call this function again. 45 // i.e. it is a request to call this function again.
46 virtual MinAndMaxState ComputeMinAndMaxContentSizes(MinAndMaxContentSizes*) { 46 virtual MinAndMaxState ComputeMinAndMaxContentSizes(MinAndMaxContentSizes*) {
47 return NotImplemented; 47 return NotImplemented;
48 } 48 }
49 49
50 DEFINE_INLINE_VIRTUAL_TRACE() {} 50 DEFINE_INLINE_VIRTUAL_TRACE() {}
51 }; 51 };
52 52
53 } // namespace blink 53 } // namespace blink
54 54
55 #endif // NGLayoutAlgorithm_h 55 #endif // NGLayoutAlgorithm_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698