[webkit-changes] [WebKit/WebKit] f4154c: [UI-side compositing] Fix 2-up shrink mode to work...

Nikos Mouchtaris noreply at github.com
Fri Jan 6 14:48:27 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f4154cb024ec669f8cd2355ee59896164c2e7a47
      https://github.com/WebKit/WebKit/commit/f4154cb024ec669f8cd2355ee59896164c2e7a47
  Author: Nikolaos Mouchtaris <nmouchtaris at apple.com>
  Date:   2023-01-06 (Fri, 06 Jan 2023)

  Changed paths:
    M Source/WebKit/WebProcess/WebPage/DrawingArea.cpp
    M Source/WebKit/WebProcess/WebPage/DrawingArea.h
    M Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteLayerTreeDrawingArea.mm
    M Source/WebKit/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h
    M Source/WebKit/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm

  Log Message:
  -----------
  [UI-side compositing] Fix 2-up shrink mode to work with UI-side compositing
https://bugs.webkit.org/show_bug.cgi?id=250172
<rdar://103373463>

Reviewed by Simon Fraser.

Move TiledCoreAnimationDrawingArea::scaleViewToFitDocumentIfNeeded to DrawingArea
so that it can be called in RemoteLayerTreeDrawingArea as well. Call is added to
RemoteLayerTreeDrawingArea::updateRendering.

* Source/WebKit/WebProcess/WebPage/DrawingArea.cpp:
(WebKit::DrawingArea::setShouldScaleViewToFitDocument):
(WebKit::DrawingArea::scaleViewToFitDocumentIfNeeded):
* Source/WebKit/WebProcess/WebPage/DrawingArea.h:
(WebKit::DrawingArea::setShouldScaleViewToFitDocument): Deleted.
* Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteLayerTreeDrawingArea.mm:
(WebKit::RemoteLayerTreeDrawingArea::updateRendering):
* Source/WebKit/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
* Source/WebKit/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
(WebKit::TiledCoreAnimationDrawingArea::setShouldScaleViewToFitDocument): Deleted.
(WebKit::TiledCoreAnimationDrawingArea::scaleViewToFitDocumentIfNeeded): Deleted.

Canonical link: https://commits.webkit.org/258565@main




More information about the webkit-changes mailing list