Elements with "display: inline-block" don't have a touch-action region
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 May 2019 09:41:37 +0000 (09:41 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 May 2019 09:41:37 +0000 (09:41 +0000)
commit9864c950208b042b52ebe76ee0d04ce58b108627
treea2bec17021e70c3dd18800215398b003f00a7e56
parent35572e08f46730cef318fd714d0d7967f7799453
Elements with "display: inline-block" don't have a touch-action region
https://bugs.webkit.org/show_bug.cgi?id=197281
<rdar://problem/50535081>

Reviewed by Antoine Quint.

Source/WebCore:

Test: pointerevents/ios/touch-action-region-inline-block.html

PaintPhase::EventRegion failed to traverse into inline boxes.

* rendering/InlineElementBox.cpp:
(WebCore::InlineElementBox::paint):
* rendering/RenderElement.cpp:
(WebCore::RenderElement::paintAsInlineBlock):

LayoutTests:

* pointerevents/ios/touch-action-region-inline-block-expected.txt: Added.
* pointerevents/ios/touch-action-region-inline-block.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245126 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/pointerevents/ios/touch-action-region-inline-block-expected.txt [new file with mode: 0644]
LayoutTests/pointerevents/ios/touch-action-region-inline-block.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/InlineElementBox.cpp
Source/WebCore/rendering/RenderElement.cpp