[webkit-changes] [WebKit/WebKit] 00e7f0: Make hits on overflow controls target RenderTextCo...
fantasai
noreply at github.com
Fri Jan 12 02:36:08 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 00e7f006e4094af8428002a407198255336fcceb
https://github.com/WebKit/WebKit/commit/00e7f006e4094af8428002a407198255336fcceb
Author: Elika Etemad <fantasai.bugs at inkedblade.net>
Date: 2024-01-12 (Fri, 12 Jan 2024)
Changed paths:
A LayoutTests/fast/css/resize-textarea-align-content-expected.txt
A LayoutTests/fast/css/resize-textarea-align-content.html
M LayoutTests/platform/gtk/fast/css/resize-corner-tracking-expected.txt
M LayoutTests/platform/ios/TestExpectations
M LayoutTests/platform/wpe/fast/css/resize-corner-tracking-expected.txt
M Source/WebCore/rendering/RenderBlock.h
M Source/WebCore/rendering/RenderTextControlMultiLine.cpp
Log Message:
-----------
Make hits on overflow controls target RenderTextControlMultiline itself
https://bugs.webkit.org/show_bug.cgi?id=266873
rdar://problem/120108102
Reviewed by Simon Fraser.
When align-content moves the textarea contents, the coordinates of the
inner text block no longer match those of the RenderTextControlMultiline,
so hit tests using the inner block's coordinates don't land on the resizer
properly. This patch captures these cases and associates them with the
textarea, rather than assuming they belong to the inner text block.
Side-effects of this patch include:
- Capturing hits correctly in the presence of borders/padding.
https://bugs.webkit.org/show_bug.cgi?id=238193 & rdar://90639221
- Using the correct cursor when hovering over the resize controls.
- Not jumping by the border-width when triggering a resize operation.
Test expectations on Linux are thus updated accordingly.
* Source/WebCore/rendering/RenderTextControlMultiLine.cpp:
(WebCore::RenderTextControlMultiLine::nodeAtPoint): Capture hits in overflow controls.
* LayoutTests/fast/css/resize-textarea-align-content-expected.txt: Added.
* LayoutTests/fast/css/resize-textarea-align-content.html: Added.
* LayoutTests/platform/gtk/fast/css/resize-corner-tracking-expected.txt: Use corrected expectations.
* LayoutTests/platform/ios/TestExpectations: Skip new test due to no resize support.
* LayoutTests/platform/wpe/fast/css/resize-corner-tracking-expected.txt: Use corrected expectations.
Canonical link: https://commits.webkit.org/272964@main
More information about the webkit-changes
mailing list