Title: [270737] trunk/Source/WebCore
- Revision
- 270737
- Author
- [email protected]
- Date
- 2020-12-12 11:29:02 -0800 (Sat, 12 Dec 2020)
Log Message
Scroll performance logging: rubberbanding should not trigger "Exposed tileless area" logging
https://bugs.webkit.org/show_bug.cgi?id=219827
<rdar://problem/72209189>
Reviewed by Zalan Bujtas.
Clamp the scroll position before computing exposed tile-less area so that rubberbanding
doesn't trigger logging that we revealed areas not covered by tiles.
* page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.mm:
(WebCore::ScrollingTreeFrameScrollingNodeMac::exposedUnfilledArea const):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (270736 => 270737)
--- trunk/Source/WebCore/ChangeLog 2020-12-12 18:40:45 UTC (rev 270736)
+++ trunk/Source/WebCore/ChangeLog 2020-12-12 19:29:02 UTC (rev 270737)
@@ -1,3 +1,17 @@
+2020-12-12 Simon Fraser <[email protected]>
+
+ Scroll performance logging: rubberbanding should not trigger "Exposed tileless area" logging
+ https://bugs.webkit.org/show_bug.cgi?id=219827
+ <rdar://problem/72209189>
+
+ Reviewed by Zalan Bujtas.
+
+ Clamp the scroll position before computing exposed tile-less area so that rubberbanding
+ doesn't trigger logging that we revealed areas not covered by tiles.
+
+ * page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.mm:
+ (WebCore::ScrollingTreeFrameScrollingNodeMac::exposedUnfilledArea const):
+
2020-12-12 Zalan Bujtas <[email protected]>
REGRESSION(r270715) [LFC][IFC] Whitespace as expansion opportunity should not change as we expand the runs
Modified: trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.mm (270736 => 270737)
--- trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.mm 2020-12-12 18:40:45 UTC (rev 270736)
+++ trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.mm 2020-12-12 19:29:02 UTC (rev 270737)
@@ -258,9 +258,9 @@
[sublayers release];
}
- FloatPoint scrollPosition = currentScrollPosition();
- FloatRect viewPortRect({ }, scrollableAreaSize());
- return TileController::blankPixelCountForTiles(tiles, viewPortRect, IntPoint(-scrollPosition.x(), -scrollPosition.y()));
+ FloatPoint clampedScrollPosition = clampScrollPosition(currentScrollPosition());
+ FloatRect viewportRect({ }, scrollableAreaSize());
+ return TileController::blankPixelCountForTiles(tiles, viewportRect, IntPoint(-clampedScrollPosition.x(), -clampedScrollPosition.y()));
}
} // namespace WebCore
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes