Skip to content

Commit

Permalink
Initial clip element should be the element's offset parent, fixes `ov…
Browse files Browse the repository at this point in the history
…erflow_hidden` visual test
  • Loading branch information
mikke89 committed Aug 19, 2024
1 parent f3a5559 commit 5ba3116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/ElementUtilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ bool ElementUtilities::GetClippingRegion(Element* element, Rectanglei& out_clip_
// Search through the element's ancestors, finding all elements that clip their overflow and have overflow to clip.
// For each that we find, we combine their clipping region with the existing clipping region, and so build up a
// complete clipping region for the element.
Element* clipping_element = (force_clip_self ? element : element->GetParentNode());
Element* clipping_element = (force_clip_self ? element : element->GetOffsetParent());

Rectanglef clip_region = Rectanglef::MakeInvalid();

Expand Down

0 comments on commit 5ba3116

Please sign in to comment.