Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 680f94ca8549cec45f6584167019f74fd29499bf
https://github.com/WebKit/WebKit/commit/680f94ca8549cec45f6584167019f74fd29499bf
Author: Elika Etemad <[email protected]>
Date: 2025-10-15 (Wed, 15 Oct 2025)
Changed paths:
M Source/WebCore/platform/graphics/FloatRect.cpp
M Source/WebCore/platform/graphics/FloatRect.h
M Source/WebCore/platform/graphics/LayoutRect.cpp
M Source/WebCore/platform/graphics/LayoutRect.h
Log Message:
-----------
Make method to set LayoutRect/FloatRect via edge coordinates public
https://bugs.webkit.org/show_bug.cgi?id=300826
rdar://162710333
Reviewed by Simon Fraser.
Shifts the setLocationAndSizeFromEdges() method from private to public and
renames it to shiftEdgesTo() to align with the various shift*EdgeTo() methods.
Also adds the two missing shift*EdgeBy() methods to LayoutRect.
* Source/WebCore/platform/graphics/FloatRect.cpp:
(WebCore::FloatRect::intersect):
(WebCore::FloatRect::uniteEvenIfEmpty):
(WebCore::FloatRect::extend):
* Source/WebCore/platform/graphics/FloatRect.h:
(WebCore::FloatRect::shiftEdgesTo):
(WebCore::FloatRect::setLocationAndSizeFromEdges): Deleted.
* Source/WebCore/platform/graphics/LayoutRect.cpp:
(WebCore::LayoutRect::uniteEvenIfEmpty):
* Source/WebCore/platform/graphics/LayoutRect.h:
(WebCore::LayoutRect::shiftEdgesTo):
(WebCore::LayoutRect::setLocationAndSizeFromEdges): Deleted.
Canonical link: https://commits.webkit.org/301603@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