Bug 179277

Summary: UIWebView is not rendering content that comes on screen during overflow scroll
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: New BugsAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, fred.wang, sam, simon.fraser, thorton, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=179315
Attachments:
Description Flags
Patch
none
Patch thorton: review+

Description Simon Fraser (smfr) 2017-11-03 19:26:39 PDT
UIWebView is not rendering content that comes on screen during overflow scroll
Comment 1 Simon Fraser (smfr) 2017-11-03 19:32:55 PDT
Created attachment 326001 [details]
Patch
Comment 2 Simon Fraser (smfr) 2017-11-03 19:34:40 PDT
Created attachment 326002 [details]
Patch
Comment 3 Simon Fraser (smfr) 2017-11-03 19:39:35 PDT
rdar://problem/34272949
Comment 4 Sam Weinig 2017-11-06 11:21:18 PST
Comment on attachment 326002 [details]
Patch

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

> Source/WebCore/rendering/RenderLayerCompositor.cpp:427
> +#if PLATFORM(IOS)
> +        return frameView.exposedContentRect();
> +#else
> +        // Having a m_clipLayer indicates that we're doing scrolling via GraphicsLayers.
> +        FloatRect visibleRect = m_clipLayer ? FloatRect({ }, frameView.sizeForVisibleContent()) : frameView.visibleContentRect();
> +
> +        if (frameView.viewExposedRect())
> +            visibleRect.intersect(frameView.viewExposedRect().value());
> +
> +    return visibleRect;

Why the extra indent?
Comment 5 Simon Fraser (smfr) 2017-11-06 13:43:21 PST
https://trac.webkit.org/changeset/224510/webkit