Changeset 248772 in webkit


Ignore:
Timestamp:
Aug 16, 2019 8:48:03 AM (5 years ago)
Author:
Antti Koivisto
Message:

Content in <iframe> should override "touch-action" set in embedding document
https://bugs.webkit.org/show_bug.cgi?id=200204
<rdar://problem/54355249>

Reviewed by Antoine Quint.

Source/WebCore:

Test: pointerevents/ios/touch-action-region-frame.html

Subframes where content doesn't use any touch-action properties won't generate event region for their main layer.
As a result the touch-action property gets computed in UI process to the parent frames touch-action (instead of 'auto').

  • rendering/RenderLayerBacking.cpp:

(WebCore::RenderLayerBacking::updateEventRegion):

Generate event region for the main layer of subframes.

LayoutTests:

  • pointerevents/ios/touch-action-region-frame-expected.txt: Added.
  • pointerevents/ios/touch-action-region-frame.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r248771 r248772  
     12019-08-16  Antti Koivisto  <antti@apple.com>
     2
     3        Content in <iframe> should override "touch-action" set in embedding document
     4        https://bugs.webkit.org/show_bug.cgi?id=200204
     5        <rdar://problem/54355249>
     6
     7        Reviewed by Antoine Quint.
     8
     9        * pointerevents/ios/touch-action-region-frame-expected.txt: Added.
     10        * pointerevents/ios/touch-action-region-frame.html: Added.
     11
    1122019-08-16  Chris Lord  <clord@igalia.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r248769 r248772  
     12019-08-16  Antti Koivisto  <antti@apple.com>
     2
     3        Content in <iframe> should override "touch-action" set in embedding document
     4        https://bugs.webkit.org/show_bug.cgi?id=200204
     5        <rdar://problem/54355249>
     6
     7        Reviewed by Antoine Quint.
     8
     9        Test: pointerevents/ios/touch-action-region-frame.html
     10
     11        Subframes where content doesn't use any touch-action properties won't generate event region for their main layer.
     12        As a result the touch-action property gets computed in UI process to the parent frames touch-action (instead of 'auto').
     13
     14        * rendering/RenderLayerBacking.cpp:
     15        (WebCore::RenderLayerBacking::updateEventRegion):
     16
     17        Generate event region for the main layer of subframes.
     18
    1192019-08-16  Miguel Gomez  <magomez@igalia.com>
    220
  • trunk/Source/WebCore/rendering/RenderLayerBacking.cpp

    r248657 r248772  
    15891589    hasTouchActionElements = renderer().document().mayHaveElementsWithNonAutoTouchAction();
    15901590#endif
    1591     if (m_owningLayer.isRenderViewLayer() && !hasTouchActionElements)
     1591    if (m_isMainFrameRenderViewLayer && !hasTouchActionElements)
    15921592        return;
    15931593
Note: See TracChangeset for help on using the changeset viewer.