Title: [250215] releases/WebKitGTK/webkit-2.26/Source/WebCore
- Revision
- 250215
- Author
- [email protected]
- Date
- 2019-09-23 01:46:46 -0700 (Mon, 23 Sep 2019)
Log Message
Merge r250027 - [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: releases/WebKitGTK/webkit-2.26/Source/WebCore/ChangeLog (250214 => 250215)
--- releases/WebKitGTK/webkit-2.26/Source/WebCore/ChangeLog 2019-09-23 08:46:42 UTC (rev 250214)
+++ releases/WebKitGTK/webkit-2.26/Source/WebCore/ChangeLog 2019-09-23 08:46:46 UTC (rev 250215)
@@ -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-16 Fujii Hironori <[email protected]>
[Cairo] Image::drawTiled → Cairo::drawSurface → cairo_paint_with_alpha → segfault happens in pixman
Modified: releases/WebKitGTK/webkit-2.26/Source/WebCore/platform/graphics/cairo/BackingStoreBackendCairoImpl.cpp (250214 => 250215)
--- releases/WebKitGTK/webkit-2.26/Source/WebCore/platform/graphics/cairo/BackingStoreBackendCairoImpl.cpp 2019-09-23 08:46:42 UTC (rev 250214)
+++ releases/WebKitGTK/webkit-2.26/Source/WebCore/platform/graphics/cairo/BackingStoreBackendCairoImpl.cpp 2019-09-23 08:46:46 UTC (rev 250215)
@@ -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