Commit 498a6b62 authored by Ian Kilpatrick's avatar Ian Kilpatrick Committed by Commit Bot

Fix spelling in ng_absolute_utils.cc

IsLogicalHeightTreatAsAuto -> IsLogicalHeightTreatedAsAuto

There should be no behaviour change.

Change-Id: I074dba0f468981f901869fa1bb96c098157c7ba3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1977059Reviewed-by: default avatarChristian Biesinger <cbiesinger@chromium.org>
Reviewed-by: default avatarAleks Totic <atotic@chromium.org>
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#726571}
parent 0a0a19e7
...@@ -31,7 +31,7 @@ bool IsLogicalWidthTreatedAsAuto(const ComputedStyle& style) { ...@@ -31,7 +31,7 @@ bool IsLogicalWidthTreatedAsAuto(const ComputedStyle& style) {
return IsTable(style) || style.LogicalWidth().IsAuto(); return IsTable(style) || style.LogicalWidth().IsAuto();
} }
bool IsLogicalHeightTreatAsAuto(const ComputedStyle& style) { bool IsLogicalHeightTreatedAsAuto(const ComputedStyle& style) {
return IsTable(style) || style.LogicalHeight().IsAuto(); return IsTable(style) || style.LogicalHeight().IsAuto();
} }
...@@ -334,7 +334,7 @@ bool AbsoluteNeedsChildBlockSize(const ComputedStyle& style) { ...@@ -334,7 +334,7 @@ bool AbsoluteNeedsChildBlockSize(const ComputedStyle& style) {
return is_logical_height_intrinsic || return is_logical_height_intrinsic ||
style.LogicalMinHeight().IsIntrinsic() || style.LogicalMinHeight().IsIntrinsic() ||
style.LogicalMaxHeight().IsIntrinsic() || style.LogicalMaxHeight().IsIntrinsic() ||
(IsLogicalHeightTreatAsAuto(style) && (IsLogicalHeightTreatedAsAuto(style) &&
(style.LogicalTop().IsAuto() || style.LogicalBottom().IsAuto())); (style.LogicalTop().IsAuto() || style.LogicalBottom().IsAuto()));
} }
...@@ -463,7 +463,7 @@ void ComputeFullAbsoluteWithChildBlockSize( ...@@ -463,7 +463,7 @@ void ComputeFullAbsoluteWithChildBlockSize(
child_block_size.value_or(kIndefiniteSize); child_block_size.value_or(kIndefiniteSize);
base::Optional<LayoutUnit> block_size; base::Optional<LayoutUnit> block_size;
if (!IsLogicalHeightTreatAsAuto(style)) { if (!IsLogicalHeightTreatedAsAuto(style)) {
block_size = ResolveMainBlockLength( block_size = ResolveMainBlockLength(
space, style, border_padding, style.LogicalHeight(), space, style, border_padding, style.LogicalHeight(),
child_block_size_or_indefinite, LengthResolvePhase::kLayout); child_block_size_or_indefinite, LengthResolvePhase::kLayout);
......
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