[Webkit-unassigned] [Bug 255098] New: RenderBox::hasTrimmedMargin(PhyscialDirection) has redundant debug code

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 6 09:56:35 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=255098

            Bug ID: 255098
           Summary: RenderBox::hasTrimmedMargin(PhyscialDirection) has
                    redundant debug code
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sgill26 at apple.com
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

There are 2 RenderBox::hasTrimmedMargin methods. They take in either a PhysicalDirection or std::optional<MarginTrimType>. The version that takes in a physicalDirection simply maps the physical direction to a MarginTrimType and then calls the other version to perform the actual logic. There are pieces of debug code in here that are shared/redundant and will make it tedious to modify as future margin trim patches are landed. 

Since the version that takes in a PhysicalDirection just performs a mapping and calls the other, we can remove the debug code from it and keep it in the other.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230406/4a3156ba/attachment.htm>


More information about the webkit-unassigned mailing list