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

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

Issue 2616613003: Fix calculation of abspos style properties: left/padding/width/height... (Closed)
Patch Set: Rebase for merge conflicts 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 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 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // Compute part of position that depends on child's inline_size 46 // Compute part of position that depends on child's inline_size
47 // returns partially filled position. 47 // returns partially filled position.
48 CORE_EXPORT NGAbsolutePhysicalPosition 48 CORE_EXPORT NGAbsolutePhysicalPosition
49 ComputePartialAbsoluteWithChildInlineSize( 49 ComputePartialAbsoluteWithChildInlineSize(
50 const NGConstraintSpace& space, 50 const NGConstraintSpace& space,
51 const ComputedStyle& style, 51 const ComputedStyle& style,
52 const NGStaticPosition&, 52 const NGStaticPosition&,
53 const Optional<LayoutUnit>& child_inline_size); 53 const Optional<MinAndMaxContentSizes>& child_minmax);
54 54
55 // Compute rest of NGPhysicalRect that depends on child's block_size. 55 // Compute rest of NGPhysicalRect that depends on child's block_size.
56 CORE_EXPORT void ComputeFullAbsoluteWithChildBlockSize( 56 CORE_EXPORT void ComputeFullAbsoluteWithChildBlockSize(
57 const NGConstraintSpace& space, 57 const NGConstraintSpace& space,
58 const ComputedStyle& style, 58 const ComputedStyle& style,
59 const NGStaticPosition&, 59 const NGStaticPosition&,
60 const Optional<LayoutUnit>& child_block_size, 60 const Optional<LayoutUnit>& child_block_size,
61 NGAbsolutePhysicalPosition* position); 61 NGAbsolutePhysicalPosition* position);
62 62
63 // TODO(atotic) Absolute coordinates for replaced elements 63 // TODO(atotic) Absolute coordinates for replaced elements
64 // ComputeAbsoluteReplaced. 64 // ComputeAbsoluteReplaced.
65 // https://www.w3.org/TR/css-position-3/#abs-replaced-width 65 // https://www.w3.org/TR/css-position-3/#abs-replaced-width
66 } // namespace blink 66 } // namespace blink
67 67
68 #endif // NGAbsoluteUtils_h 68 #endif // NGAbsoluteUtils_h
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | 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