Changeset 248514 in webkit
- Timestamp:
- Aug 10, 2019 9:03:56 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r248513 r248514 1 2019-08-10 Simon Fraser <simon.fraser@apple.com> 2 3 REGRESSION (r245974): Missing content on habitburger.com, amazon.com 4 https://bugs.webkit.org/show_bug.cgi?id=200618 5 rdar://problem/53920224 6 7 Reviewed by Zalan Bujtas. 8 9 * compositing/backing/layer-outside-tiled-parent-expected.txt: Added. 10 * compositing/backing/layer-outside-tiled-parent.html: Added. 11 * platform/ios-wk2/compositing/backing/layer-outside-tiled-parent-expected.txt: Added. 12 * tiled-drawing/tile-coverage-iframe-to-zero-coverage-expected.txt: 13 * tiled-drawing/tiled-backing-in-window-expected.txt: 14 1 15 2019-08-10 Andres Gonzalez <andresg_22@apple.com> 2 16 -
trunk/LayoutTests/tiled-drawing/tile-coverage-iframe-to-zero-coverage-expected.txt
r245990 r248514 80 80 (drawsContent 1) 81 81 (visible rect 0.00, 0.00 0.00 x 0.00) 82 (coverage rect 0.00, 0.00 0.00 x 0.00)82 (coverage rect -8.00, -8.00 0.00 x 0.00) 83 83 (intersects coverage rect 0) 84 84 (contentsScale 1.00) -
trunk/LayoutTests/tiled-drawing/tiled-backing-in-window-expected.txt
r245974 r248514 64 64 (drawsContent 1) 65 65 (visible rect 0.00, 0.00 777.00 x 200.00) 66 (coverage rect 0.00, 0.00 777.00 x 200.00)66 (coverage rect -8.00, -8.00 785.00 x 585.00) 67 67 (intersects coverage rect 1) 68 68 (contentsScale 1.00) -
trunk/Source/WebCore/ChangeLog
r248513 r248514 1 2019-08-10 Simon Fraser <simon.fraser@apple.com> 2 3 REGRESSION (r245974): Missing content on habitburger.com, amazon.com 4 https://bugs.webkit.org/show_bug.cgi?id=200618 5 rdar://problem/53920224 6 7 Reviewed by Zalan Bujtas. 8 9 In r245974 TileController::adjustTileCoverageRect() started to intersect the coverage 10 rect with the bounds of the layer, which is wrong because this coverage rect is passed down 11 to descendant layers, and they may project outside the bounds of this tiled layer. 12 13 This caused missing dropdowns on amazon.com, and a missing menu on habitburger.com on iPhone. 14 15 The fix is to just not do the intersection with the bounds. TileGrid::getTileIndexRangeForRect() 16 already ensures that we never make tiles outside the bounds of a TileController. 17 18 Test: compositing/backing/layer-outside-tiled-parent.html 19 20 * platform/graphics/ca/TileController.cpp: 21 (WebCore::TileController::adjustTileCoverageRect): 22 * platform/graphics/ca/TileGrid.cpp: 23 (WebCore::TileGrid::ensureTilesForRect): 24 1 25 2019-08-10 Andres Gonzalez <andresg_22@apple.com> 2 26 -
trunk/Source/WebCore/platform/graphics/ca/TileController.cpp
r246091 r248514 369 369 return unionRect(coverageRect, currentVisibleRect); 370 370 371 auto expandedCoverageRect = GraphicsLayer::adjustCoverageRectForMovement(coverageRect, previousVisibleRect, currentVisibleRect); 372 return intersection(expandedCoverageRect, boundsWithoutMargin()); 371 return GraphicsLayer::adjustCoverageRectForMovement(coverageRect, previousVisibleRect, currentVisibleRect); 373 372 } 374 373 -
trunk/Source/WebCore/platform/graphics/ca/TileGrid.cpp
r237925 r248514 558 558 return IntRect(); 559 559 560 LOG_WITH_STREAM(Tiling, stream << "TileGrid " << this << " ensureTilesForRect: " << rect);561 562 560 FloatRect scaledRect(rect); 563 561 scaledRect.scale(m_scale); … … 609 607 } 610 608 } 611 609 612 610 if (tilesInCohort) 613 611 startedNewCohort(currCohort); 612 613 LOG_WITH_STREAM(Tiling, stream << "TileGrid " << this << " (bounds " << m_controller.bounds() << ") ensureTilesForRect: " << rect << " covered " << coverageRect); 614 614 615 615 return coverageRect;
Note: See TracChangeset
for help on using the changeset viewer.