+2018-11-13 Miguel Gomez <magomez@igalia.com>
+
+ [GTK][WPE] Incorrect tile coverage when resizing a layer out of the visible area
+ https://bugs.webkit.org/show_bug.cgi?id=191545
+
+ Reviewed by Žan Doberšek.
+
+ Keep track of layer size changes even if they happen when the layer is not in the visible
+ area, so we can update edge tiles when the layer gets visible.
+
+ * platform/graphics/texmap/coordinated/TiledBackingStore.cpp:
+ (WebCore::TiledBackingStore::createTiles):
+ * platform/graphics/texmap/coordinated/TiledBackingStore.h:
+
2018-11-12 Rob Buis <rbuis@igalia.com>
Content-Type parameter values should allow empty quoted strings
void TiledBackingStore::createTiles(const IntRect& visibleRect, const IntRect& scaledContentsRect, float coverAreaMultiplier)
{
// Update our backing store geometry.
- const IntRect previousRect = m_rect;
m_rect = scaledContentsRect;
m_trajectoryVector = m_pendingTrajectoryVector;
m_visibleRect = visibleRect;
// Resize tiles at the edge in case the contents size has changed, but only do so
// after having dropped tiles outside the keep rect.
- if (previousRect != m_rect)
+ if (m_previousRect != m_rect) {
+ m_previousRect = m_rect;
resizeEdgeTiles();
+ }
// Search for the tile position closest to the viewport center that does not yet contain a tile.
// Which position is considered the closest depends on the tileDistance function.