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

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

Issue 2259963002: [layoutng] Margin support, part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dcheck 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_length_utils.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_length_utils.h b/third_party/WebKit/Source/core/layout/ng/ng_length_utils.h
index a42f1dae0656b6ccf159c8a52784dbffc78d4087..cf5615bed5b4f778d597fbad738a81ee15d868a7 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_length_utils.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_length_utils.h
@@ -12,8 +12,9 @@ class ComputedStyle;
class LayoutUnit;
class Length;
class NGConstraintSpace;
+struct NGBoxMargins;
-enum class LengthResolveType { MinSize, MaxSize, ContentSize };
+enum class LengthResolveType { MinSize, MaxSize, ContentSize, MarginSize };
// Convert an inline-axis length to a layout unit using the given constraint
// space.
@@ -38,9 +39,12 @@ CORE_EXPORT LayoutUnit computeInlineSizeForFragment(const NGConstraintSpace&,
// logical height and max logical height properties from the ComputedStyle
// object.
CORE_EXPORT LayoutUnit computeBlockSizeForFragment(const NGConstraintSpace&,
- const ComputedStyle& style,
+ const ComputedStyle&,
LayoutUnit contentSize);
+CORE_EXPORT NGBoxMargins computeMargins(const NGConstraintSpace&,
+ const ComputedStyle&);
+
} // namespace blink
#endif // NGLengthUtils_h

Powered by Google App Engine
This is Rietveld 408576698