Bug 188445

Summary: Update IDL for IntersectionObserverEntry and IntersectionObserverEntryInit
Product: WebKit Reporter: Ali Juma <ajuma>
Component: Layout and RenderingAssignee: Ali Juma <ajuma>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, cdumez, commit-queue, esprehn+autocc, ews-watchlist, kondapallykalyan, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 159475    
Attachments:
Description Flags
Patch
none
Patch for landing none

Description Ali Juma 2018-08-09 11:03:22 PDT
Update IntersectionObserverEntry by adding |isIntersecting| and making |rootBounds| nullable. Make the same changes to IntersectionObserverEntryInit, and also add intersectionRatio.
Comment 1 Ali Juma 2018-08-09 11:09:42 PDT
Created attachment 346847 [details]
Patch
Comment 2 Simon Fraser (smfr) 2018-08-09 11:15:28 PDT
Comment on attachment 346847 [details]
Patch

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

> Source/WebCore/page/IntersectionObserverEntry.h:51
> +        std::optional<DOMRectInit> rootBounds;
>          DOMRectInit boundingClientRect;
>          DOMRectInit intersectionRect;
> +        bool isIntersecting;
> +        double intersectionRatio;
>          RefPtr<Element> target;

This would pack better if you put the bool at the end

> Source/WebCore/page/IntersectionObserverEntry.h:77
> +    bool m_isIntersecting { false };
>      double m_intersectionRatio { 0 };
>      RefPtr<Element> m_target;

Ditto
Comment 3 Ali Juma 2018-08-09 11:26:29 PDT
Created attachment 346851 [details]
Patch for landing
Comment 4 WebKit Commit Bot 2018-08-09 12:36:45 PDT
Comment on attachment 346851 [details]
Patch for landing

Clearing flags on attachment: 346851

Committed r234732: <https://trac.webkit.org/changeset/234732>
Comment 5 WebKit Commit Bot 2018-08-09 12:36:47 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 Radar WebKit Bug Importer 2018-08-09 12:37:19 PDT
<rdar://problem/43106234>