Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6178c52c2c0709883139911f57d95f05aaf019d0
https://github.com/WebKit/WebKit/commit/6178c52c2c0709883139911f57d95f05aaf019d0
Author: Wenson Hsieh <[email protected]>
Date: 2024-04-19 (Fri, 19 Apr 2024)
Changed paths:
M Source/WebCore/page/text-extraction/TextExtraction.cpp
M Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj
M Tools/TestWebKitAPI/Tests/WebKitCocoa/ElementTargetingTests.mm
A Tools/TestWebKitAPI/Tests/WebKitCocoa/element-targeting-7.html
Log Message:
-----------
[Remote Inspection] Replaced object sizes in rendered text string should not
change with page zoom/scale
https://bugs.webkit.org/show_bug.cgi?id=272492
rdar://126652273
Reviewed by Abrar Rahman Protyasha.
Instead of surfacing the size of each replaced renderer in root view
coordinates, use the size of
the replaced content rect instead, adjusted to ignore page zoom and rounded to
the nearest 10px to
reduce resolution.
* Source/WebCore/page/text-extraction/TextExtraction.cpp:
(WebCore::TextExtraction::reducePrecision):
(WebCore::TextExtraction::extractRenderedText):
* Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
* Tools/TestWebKitAPI/Tests/WebKitCocoa/ElementTargetingTests.mm:
(TestWebKitAPI::TEST(ElementTargeting,
ReplacedRendererSizeIgnoresPageScaleAndZoom)):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/element-targeting-7.html: Added.
Canonical link: https://commits.webkit.org/277735@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