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

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

Issue 2646853006: [LayoutNG] Pull out of flow candidate loop into out of flow layout part. (Closed)
Patch Set: rebase 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc » ('j') | 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 NGAbsoluteUtils_h 5 #ifndef NGAbsoluteUtils_h
6 #define NGAbsoluteUtils_h 6 #define NGAbsoluteUtils_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/layout/ng/ng_units.h" 9 #include "core/layout/ng/ng_units.h"
10 #include "platform/LayoutUnit.h" 10 #include "platform/LayoutUnit.h"
(...skipping 25 matching lines...) Expand all
36 // upon child's block_size. 36 // upon child's block_size.
37 37
38 // True if ComputePartialAbsoluteWithChildInlineSize will need 38 // True if ComputePartialAbsoluteWithChildInlineSize will need
39 // estimated inline size. 39 // estimated inline size.
40 CORE_EXPORT bool AbsoluteNeedsChildInlineSize(const ComputedStyle&); 40 CORE_EXPORT bool AbsoluteNeedsChildInlineSize(const ComputedStyle&);
41 41
42 // True if ComputeFullAbsoluteWithChildBlockSize will need 42 // True if ComputeFullAbsoluteWithChildBlockSize will need
43 // estimated block size. 43 // estimated block size.
44 CORE_EXPORT bool AbsoluteNeedsChildBlockSize(const ComputedStyle&); 44 CORE_EXPORT bool AbsoluteNeedsChildBlockSize(const ComputedStyle&);
45 45
46 // True if the container will contain an absolute child.
47 CORE_EXPORT bool IsContainingBlockForAbsoluteChild(
48 const ComputedStyle& container_style,
49 const ComputedStyle& child_style);
50
51 // Compute part of position that depends on child's inline_size 46 // Compute part of position that depends on child's inline_size
52 // returns partially filled position. 47 // returns partially filled position.
53 CORE_EXPORT NGAbsolutePhysicalPosition 48 CORE_EXPORT NGAbsolutePhysicalPosition
54 ComputePartialAbsoluteWithChildInlineSize( 49 ComputePartialAbsoluteWithChildInlineSize(
55 const NGConstraintSpace& space, 50 const NGConstraintSpace& space,
56 const ComputedStyle& style, 51 const ComputedStyle& style,
57 const NGStaticPosition&, 52 const NGStaticPosition&,
58 const Optional<MinAndMaxContentSizes>& child_minmax); 53 const Optional<MinAndMaxContentSizes>& child_minmax);
59 54
60 // Compute rest of NGPhysicalRect that depends on child's block_size. 55 // Compute rest of NGPhysicalRect that depends on child's block_size.
61 CORE_EXPORT void ComputeFullAbsoluteWithChildBlockSize( 56 CORE_EXPORT void ComputeFullAbsoluteWithChildBlockSize(
62 const NGConstraintSpace& space, 57 const NGConstraintSpace& space,
63 const ComputedStyle& style, 58 const ComputedStyle& style,
64 const NGStaticPosition&, 59 const NGStaticPosition&,
65 const Optional<LayoutUnit>& child_block_size, 60 const Optional<LayoutUnit>& child_block_size,
66 NGAbsolutePhysicalPosition* position); 61 NGAbsolutePhysicalPosition* position);
67 62
68 // TODO(atotic) Absolute coordinates for replaced elements 63 // TODO(atotic) Absolute coordinates for replaced elements
69 // ComputeAbsoluteReplaced. 64 // ComputeAbsoluteReplaced.
70 // https://www.w3.org/TR/css-position-3/#abs-replaced-width 65 // https://www.w3.org/TR/css-position-3/#abs-replaced-width
71 } // namespace blink 66 } // namespace blink
72 67
73 #endif // NGAbsoluteUtils_h 68 #endif // NGAbsoluteUtils_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698