Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 081888240ee0236a2828ca0ea4cfaed7c08959ab
      
https://github.com/WebKit/WebKit/commit/081888240ee0236a2828ca0ea4cfaed7c08959ab
  Author: Simon Fraser <[email protected]>
  Date:   2025-02-19 (Wed, 19 Feb 2025)

  Changed paths:
    M Source/WebCore/rendering/BorderPainter.cpp

  Log Message:
  -----------
  Clean up border drawing code in BorderPainter::paintSides()
https://bugs.webkit.org/show_bug.cgi?id=287939
rdar://145111400

Reviewed by Alan Baradlay.

The logic for when to use the path-based drawing for same-color, 
rounded-or-alpha or
rounded-or-all-double combinations was very confusing. In addition the 
`haveAllDoubleEdges`
clause computed rounded rects, but was never entered for double and rounded 
borders.

So break the code into two lambdas with clear entry conditions. Assert that 
those conditions
are true.

* Source/WebCore/rendering/BorderPainter.cpp:
(WebCore::BorderPainter::paintSides const):

Canonical link: https://commits.webkit.org/290608@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to