Changeset 295633 in webkit for trunk/Source/WebCore/rendering/RenderBox.cpp
- Timestamp:
- Jun 17, 2022, 6:35:02 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/rendering/RenderBox.cpp
r295124 r295633 5234 5234 { 5235 5235 // Only propagate interior layout overflow if we don't completely clip it. 5236 LayoutRect rect = borderBoxRect(); 5236 auto rect = borderBoxRect(); 5237 if (isGridItem()) { 5238 // As per https://github.com/w3c/csswg-drafts/issues/3653, child's margins should contribute to the scrollable overflow area. 5239 // FIXME: Expand it to non-grid cases when applicable. 5240 rect.setWidth(rect.width() + std::max(0_lu, marginEnd())); 5241 } 5237 5242 if (!shouldApplyLayoutContainment()) { 5238 5243 if (style().overflowX() == Overflow::Clip && style().overflowY() == Overflow::Visible) {
Note:
See TracChangeset
for help on using the changeset viewer.