Bug 249869 - Fix missing invalidation when scrollbar is destroyed
Summary: Fix missing invalidation when scrollbar is destroyed
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Scrolling (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-12-24 07:48 PST by Ahmad Saleem
Modified: 2023-12-20 19:30 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ahmad Saleem 2022-12-24 07:48:25 PST
Hi Team,

I don't know whether this is needed or it will fix any issue but following is Blink commit:

Blink Commit - https://chromium.googlesource.com/chromium/blink/+/f3a2b99c3c2ee5d435c09ceedcd4a1f213c3baf7

WebKit Source - https://searchfox.org/wubkat/source/Source/WebCore/rendering/RenderLayerScrollableArea.cpp#910 & https://searchfox.org/wubkat/source/Source/WebCore/rendering/RenderLayerScrollableArea.cpp#936

Just wanted to raise, if this is needed or not.

Thanks!
Comment 1 Radar WebKit Bug Importer 2022-12-31 07:49:15 PST
<rdar://problem/103790698>
Comment 2 Ahmad Saleem 2023-10-11 03:11:49 PDT
Repaint Rects (pre-this change):

Tests invalidation when a scrollbar is destroyed. Passes if there is no scrollbar.
 (repaint rects
  (rect 0 100 100 200)
  (rect 0 100 100 100)
  (rect 0 100 200 200)
  (rect 0 100 200 200)
)


and post this change:

Tests invalidation when a scrollbar is destroyed. Passes if there is no scrollbar.
 (repaint rects
  (rect 0 100 100 200)
  (rect 0 100 100 100)
  (rect 185 100 15 200)
  (rect 0 100 200 200)
  (rect 0 100 200 200)
)

____

Now we have an additional 'rect'.
Comment 3 Ahmad Saleem 2023-12-20 19:30:26 PST
PR Attempt for future reference - https://github.com/WebKit/WebKit/pull/19001