Skip to content

Commit

Permalink
Apply patch. rdar://problem/108664653
Browse files Browse the repository at this point in the history
Identifier: 259548.713@safari-7615-branch
  • Loading branch information
MyahCobbs committed May 1, 2023
1 parent a714908 commit 9bf39d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/WebCore/css/ComputedStyleExtractor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2414,7 +2414,7 @@ static bool rendererCanHaveTrimmedMargin(const RenderBox& renderer, std::optiona

if (containingBlock->isFlexibleBox() || containingBlock->isRenderGrid()) {
if (!marginTrimType)
return containingBlock->style().marginTrim().containsAny({ MarginTrimType::BlockStart, MarginTrimType::InlineEnd });
return !containingBlock->style().marginTrim().isEmpty();
return containingBlock->style().marginTrim().contains(marginTrimType.value());
}
return false;
Expand Down

0 comments on commit 9bf39d9

Please sign in to comment.