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

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

Issue 2643043003: Constrain width/height to minmax values (Closed)
Patch Set: Clamp width/height to minmax values 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 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 3a1e333f88ccc89dd72a2ca86be8cf46cdb6380d..14028fd4063d08428ce624914a1cce1fa8da40cd 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
@@ -121,6 +121,10 @@ CORE_EXPORT void ApplyAutoMargins(const NGConstraintSpace&,
const NGFragment&,
NGBoxStrut* margins);
+CORE_EXPORT LayoutUnit ConstrainByMinMax(LayoutUnit length,
+ Optional<LayoutUnit> min,
+ Optional<LayoutUnit> max);
+
} // namespace blink
#endif // NGLengthUtils_h

Powered by Google App Engine
This is Rietveld 408576698