| Summary: | Determination of horizontal overflow incorrect when direction:rtl | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> |
| Component: | Scrolling | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | karlcow, simon.fraser, webkit-bug-importer |
| Priority: | P2 | Keywords: | BrowserCompat, InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | https://jsfiddle.net/f4hack6e/show | ||
|
Description
Ahmad Saleem
2023-06-26 23:09:15 PDT
Following in RenderLayrScrollableArea.cpp: int scrollableLeftOverflow = roundToInt((overflowLeft() - box->borderLeft()) - (box->style().shouldPlaceVerticalScrollbarOnLeft() ? box->verticalScrollbarWidth() : 0)); and following in RenderBox.cpp: LayoutUnit left = borderLeft() + (style().shouldPlaceVerticalScrollbarOnLeft() ? verticalScrollbarWidth() : 0); ____ This compiles but I think 'RenderLayerScrollableArea.cpp' one is wrong since it has 'if' just below it, which might need tweaking. Also doing this on top of this commit: https://chromium.googlesource.com/chromium/blink/+/70c32d139270f1a08a6fd46ed079b89d062590a0 ^ This will improve performance. |