Commit 521b4319 authored by Emil A Eklund's avatar Emil A Eklund Committed by Commit Bot

Remove dead code in absolute_utils

Bug: 1002317
Change-Id: I14d4bde5f59897f5d5649ef37428a477a5e7eb37
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1804948
Commit-Queue: Emil A Eklund <eae@chromium.org>
Commit-Queue: Aleks Totic <atotic@chromium.org>
Reviewed-by: default avatarAleks Totic <atotic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#696739}
parent e1277204
......@@ -113,9 +113,7 @@ void ComputeAbsoluteSize(const LayoutUnit border_padding_size,
if (!inset_end_length.IsAuto()) {
inset_end = MinimumValueForLength(inset_end_length, available_size);
}
#if DCHECK_IS_ON()
bool values_might_be_saturated = false;
#endif
// Solving the equation:
// |inset_start| + |margin_start| + |size| + |margin_end| + |inset_end| =
// |available_size|
......@@ -147,9 +145,6 @@ void ComputeAbsoluteSize(const LayoutUnit border_padding_size,
// Compute margins.
LayoutUnit margin_space =
available_size - *inset_start - *inset_end - *size;
#if DCHECK_IS_ON()
values_might_be_saturated |= margin_space.MightBeSaturated();
#endif
if (!margin_start && !margin_end) {
// When both margins are auto.
......@@ -173,9 +168,6 @@ void ComputeAbsoluteSize(const LayoutUnit border_padding_size,
} else {
// Are the values over-constrained?
LayoutUnit margin_extra = margin_space - *margin_start - *margin_end;
#if DCHECK_IS_ON()
values_might_be_saturated |= margin_extra.MightBeSaturated();
#endif
if (margin_extra) {
// Relax the end.
if (is_start_dominant)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment