Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 41d71b159bb992d0141d4c10cc44cb08d87d6873
      
https://github.com/WebKit/WebKit/commit/41d71b159bb992d0141d4c10cc44cb08d87d6873
  Author: Alan Baradlay <[email protected]>
  Date:   2025-07-18 (Fri, 18 Jul 2025)

  Changed paths:
    M Source/WebCore/rendering/shapes/ShapeOutsideInfo.cpp

  Log Message:
  -----------
  [Cleanup] shapeImageMarginRect should use helper function to convert physical 
to logical coordinates
https://bugs.webkit.org/show_bug.cgi?id=296162

Reviewed by Simon Fraser.

1. Move existing, _block_ direction helper functions above shapeImageMarginRect
2. Add a few, _inline_ direction helper functions (e.g. 
marginBorderAndPaddingStartWithStyleForWritingMode)
3. Rename getShapeImageMarginRect to shapeImageMarginRect
4. Use newly introduced helpers in shapeImageMarginRect

No change in functionality.

* Source/WebCore/rendering/shapes/ShapeOutsideInfo.cpp:
(WebCore::marginBorderAndPaddingStartWithStyleForWritingMode):
(WebCore::marginBorderAndPaddingBeforeWithStyleForWritingMode):
(WebCore::ShapeOutsideInfo::invalidateForSizeChangeIfNeeded):
(WebCore::shapeImageMarginRect):
(WebCore::makeShapeForShapeOutside):
(WebCore::checkShapeImageOrigin):
(WebCore::ShapeOutsideInfo::computedShape const):
(WebCore::getShapeImageMarginRect): Deleted.

Canonical link: https://commits.webkit.org/297599@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