⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 243694 in webkit


Ignore:
Timestamp:
Apr 1, 2019, 9:38:03 AM (7 years ago)
Author:
Antti Koivisto
Message:

Trying to scroll the compose pane on gmail.com scrolls the message list behind
https://bugs.webkit.org/show_bug.cgi?id=196426
<rdar://problem/49402667>

Reviewed by Darin Adler.

Source/WebCore:

Test: fast/scrolling/ios/event-region-visibility-hidden.html

We fail to gather event region from desdendants of non-overflowing elements with 'visibility:hidden'.

  • rendering/RenderBlock.cpp:

(WebCore::RenderBlock::paintObject):

Skip the subtree walk only if the current region covers the box already.

  • rendering/RenderLayer.cpp:

(WebCore::RenderLayer::paintList):

Remove the (wrong) optimization, we bail out quickly on first renderer if possible so this is not high value.

LayoutTests:

  • fast/scrolling/ios/event-region-visibility-hidden-expected.txt: Added.
  • fast/scrolling/ios/event-region-visibility-hidden.html: Added.
Location:
trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r243693 r243694  
     12019-04-01  Antti Koivisto  <antti@apple.com>
     2
     3        Trying to scroll the compose pane on gmail.com scrolls the message list behind
     4        https://bugs.webkit.org/show_bug.cgi?id=196426
     5        <rdar://problem/49402667>
     6
     7        Reviewed by Darin Adler.
     8
     9        * fast/scrolling/ios/event-region-visibility-hidden-expected.txt: Added.
     10        * fast/scrolling/ios/event-region-visibility-hidden.html: Added.
     11
    1122019-04-01  Cathie Chen  <cathiechen@igalia.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r243691 r243694  
     12019-04-01  Antti Koivisto  <antti@apple.com>
     2
     3        Trying to scroll the compose pane on gmail.com scrolls the message list behind
     4        https://bugs.webkit.org/show_bug.cgi?id=196426
     5        <rdar://problem/49402667>
     6
     7        Reviewed by Darin Adler.
     8
     9        Test: fast/scrolling/ios/event-region-visibility-hidden.html
     10
     11        We fail to gather event region from desdendants of non-overflowing elements with 'visibility:hidden'.
     12
     13        * rendering/RenderBlock.cpp:
     14        (WebCore::RenderBlock::paintObject):
     15
     16        Skip the subtree walk only if the current region covers the box already.
     17
     18        * rendering/RenderLayer.cpp:
     19        (WebCore::RenderLayer::paintList):
     20
     21        Remove the (wrong) optimization, we bail out quickly on first renderer if possible so this is not high value.
     22
    1232019-04-01  Emilio Cobos Álvarez  <emilio@crisal.io>
    224
  • trunk/Source/WebCore/rendering/RenderBlock.cpp

    r243674 r243694  
    12491249        }
    12501250
    1251         // No need to check descendants if we don't have overflow.
    1252         if (!hasVisualOverflow())
     1251        // No need to check descendants if we don't have overflow and the area is already covered.
     1252        if (!hasVisualOverflow() && paintInfo.eventRegion->contains(enclosingIntRect(borderRect)))
    12531253            return;
    12541254    }
  • trunk/Source/WebCore/rendering/RenderLayer.cpp

    r243656 r243694  
    44894489        return;
    44904490
    4491     if (paintFlags.contains(PaintLayerCollectingEventRegion) && renderBox() && !renderBox()->hasRenderOverflow())
    4492         return;
    4493 
    44944491#if !ASSERT_DISABLED
    44954492    LayerListMutationDetector mutationChecker(*this);
Note: See TracChangeset for help on using the changeset viewer.