Update event region when toggling pointer-events:none
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 1 Apr 2019 19:53:00 +0000 (19:53 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 1 Apr 2019 19:53:00 +0000 (19:53 +0000)
commit64dc92570a33c4f6b1592b390bdc18c81b087794
treebfe4d11fcec6ae48a4070275ed7aa992a0c4262c
parentf47b828fb721639514c1affee2cdbfe0419334d5
Update event region when toggling pointer-events:none
https://bugs.webkit.org/show_bug.cgi?id=195902
<rdar://problem/48988384>

Reviewed by Simon Fraser.

Source/WebCore:

Test: fast/scrolling/ios/event-region-pointer-events.html

Normally paint invalidation requests compositing configuration update whenever anything that would
affect event region changes. However mutating 'pointer-events' property does not cause paint invalidation.

* rendering/RenderElement.cpp:
(WebCore::RenderElement::styleWillChange):

Request compositing update explicitly from the containing layer.

* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::invalidateEventRegion):
* rendering/RenderLayer.h:

LayoutTests:

* fast/scrolling/ios/event-region-pointer-events-expected.txt: Added.
* fast/scrolling/ios/event-region-pointer-events.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243709 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/scrolling/ios/event-region-pointer-events-expected.txt [new file with mode: 0644]
LayoutTests/fast/scrolling/ios/event-region-pointer-events.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderElement.cpp
Source/WebCore/rendering/RenderLayer.cpp
Source/WebCore/rendering/RenderLayer.h