Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5f8306750a54e227a29119f33f4a888c778d54a0
      
https://github.com/WebKit/WebKit/commit/5f8306750a54e227a29119f33f4a888c778d54a0
  Author: Ahmad Saleem <[email protected]>
  Date:   2023-01-21 (Sat, 21 Jan 2023)

  Changed paths:
    M Source/WebCore/rendering/RenderOverflow.h

  Log Message:
  -----------
  Prevent overflow of width/height of layout overflow rectangle which can cause 
scroll bar to malfunction

Prevent overflow of width/height of layout overflow rectangle which can cause 
scroll bar to malfunction
https://bugs.webkit.org/show_bug.cgi?id=250944

Reviewed by Alan Baradlay.

This patch is to align WebKit behavior with Gecko / Firefox and Blink / 
Chromium.

Merge - 
https://chromium.googlesource.com/chromium/blink/+/d050f9be579d02e40c8924b4153376bc32ffba1a

When a child element is positioned very far away the width/height of
layout overflow rectangle may overflow. The patch detects such cases in
RenderOverflow::addLayoutOverflow and shift the top/left edges of the
rectangle to avoid overflow.

NOTE - The test case was already added by 138972@main from same
commit but original patch was not added. The test case still does not show
scrollbar like other browsers.

* Source/WebCore/rendering/RenderOverflow.h:
(RenderOverflow:addLayoutOverflow): Update to account for overflow of 
width/height

Canonical link: https://commits.webkit.org/259178@main


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to