Bug 198832 - twitch.tv: embedded video hovers down the screen when scrolling on iPad
Summary: twitch.tv: embedded video hovers down the screen when scrolling on iPad
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Scrolling (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-06-13 08:43 PDT by Antti Koivisto
Modified: 2019-06-13 11:36 PDT (History)
3 users (show)

See Also:


Attachments
patch (4.92 KB, patch)
2019-06-13 08:55 PDT, Antti Koivisto
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Koivisto 2019-06-13 08:43:54 PDT
It does.
Comment 1 Antti Koivisto 2019-06-13 08:44:22 PDT
<rdar://problem/51541439>
Comment 2 Antti Koivisto 2019-06-13 08:55:23 PDT
Created attachment 372056 [details]
patch
Comment 3 Geoffrey Garen 2019-06-13 10:50:41 PDT
Comment on attachment 372056 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=372056&action=review

> Source/WebCore/rendering/RenderLayer.cpp:2522
> +                if (auto* paintParent = paintOrderParent())
> +                    paintParent->setDescendantsNeedUpdateBackingAndHierarchyTraversal();

This might be a stupid question, but... In the case where paintParent is null, shouldn't we still setDescendantsNeedUpdateBackingAndHierarchyTraversal() on ourselves?

auto* layer = paintOrderParent() ? paintOrderParent() : this;
layer->setDescendantsNeedUpdateBackingAndHierarchyTraversal();
Comment 4 Antti Koivisto 2019-06-13 10:55:02 PDT
I believe that case is impossible and that if() is just being overly defensive.
Comment 5 Simon Fraser (smfr) 2019-06-13 10:58:14 PDT
Comment on attachment 372056 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=372056&action=review

>> Source/WebCore/rendering/RenderLayer.cpp:2522
>> +                    paintParent->setDescendantsNeedUpdateBackingAndHierarchyTraversal();
> 
> This might be a stupid question, but... In the case where paintParent is null, shouldn't we still setDescendantsNeedUpdateBackingAndHierarchyTraversal() on ourselves?
> 
> auto* layer = paintOrderParent() ? paintOrderParent() : this;
> layer->setDescendantsNeedUpdateBackingAndHierarchyTraversal();

paintOrderParent() is only null for RenderView, so that should never hit this code.
Comment 6 WebKit Commit Bot 2019-06-13 11:36:09 PDT
Comment on attachment 372056 [details]
patch

Clearing flags on attachment: 372056

Committed r246407: <https://trac.webkit.org/changeset/246407>
Comment 7 WebKit Commit Bot 2019-06-13 11:36:10 PDT
All reviewed patches have been landed.  Closing bug.