Title: [250027] trunk/Source/WebCore
- Revision
- 250027
- Author
- [email protected]
- Date
- 2019-09-18 00:55:42 -0700 (Wed, 18 Sep 2019)
Log Message
[cairo] Incorrect targetRect in BackingStoreBackendCairoImpl::scroll
https://bugs.webkit.org/show_bug.cgi?id=201895
Reviewed by Carlos Garcia Campos.
In BackingStoreBackendCairoImpl::scroll, targetRect is calculated
wrongly by shifting maxX and maxY. Bug 59655 fixed the issue by
removing the shifting, but only for BackingStoreBackendCairoX11::scroll.
No new tests, no behavior change.
* platform/graphics/cairo/BackingStoreBackendCairoImpl.cpp:
(WebCore::BackingStoreBackendCairoImpl::scroll): Take intersection of targetRect and scrollRect.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (250026 => 250027)
--- trunk/Source/WebCore/ChangeLog 2019-09-18 07:16:11 UTC (rev 250026)
+++ trunk/Source/WebCore/ChangeLog 2019-09-18 07:55:42 UTC (rev 250027)
@@ -1,3 +1,19 @@
+2019-09-18 Fujii Hironori <[email protected]>
+
+ [cairo] Incorrect targetRect in BackingStoreBackendCairoImpl::scroll
+ https://bugs.webkit.org/show_bug.cgi?id=201895
+
+ Reviewed by Carlos Garcia Campos.
+
+ In BackingStoreBackendCairoImpl::scroll, targetRect is calculated
+ wrongly by shifting maxX and maxY. Bug 59655 fixed the issue by
+ removing the shifting, but only for BackingStoreBackendCairoX11::scroll.
+
+ No new tests, no behavior change.
+
+ * platform/graphics/cairo/BackingStoreBackendCairoImpl.cpp:
+ (WebCore::BackingStoreBackendCairoImpl::scroll): Take intersection of targetRect and scrollRect.
+
2019-09-18 Andy Estes <[email protected]>
[Cocoa] Add a WKA extension point
Modified: trunk/Source/WebCore/platform/graphics/cairo/BackingStoreBackendCairoImpl.cpp (250026 => 250027)
--- trunk/Source/WebCore/platform/graphics/cairo/BackingStoreBackendCairoImpl.cpp 2019-09-18 07:16:11 UTC (rev 250026)
+++ trunk/Source/WebCore/platform/graphics/cairo/BackingStoreBackendCairoImpl.cpp 2019-09-18 07:55:42 UTC (rev 250027)
@@ -54,8 +54,7 @@
{
IntRect targetRect = scrollRect;
targetRect.move(scrollOffset);
- targetRect.shiftMaxXEdgeTo(targetRect.maxX() - scrollOffset.width());
- targetRect.shiftMaxYEdgeTo(targetRect.maxY() - scrollOffset.height());
+ targetRect.intersect(scrollRect);
if (targetRect.isEmpty())
return;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes