[webkit-changes] [WebKit/WebKit] bc5250: Remove non-standard `webkitBackingStorePixelRatio`

Ahmad Saleem noreply at github.com
Sun Dec 8 15:03:44 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bc5250e9ad63fa56c5b0e8049d06b58038519e70
      https://github.com/WebKit/WebKit/commit/bc5250e9ad63fa56c5b0e8049d06b58038519e70
  Author: Ahmad Saleem <ahmad.saleem792+github at gmail.com>
  Date:   2024-12-08 (Sun, 08 Dec 2024)

  Changed paths:
    R LayoutTests/fast/canvas/2d.backingStorePixelRatio-expected.txt
    R LayoutTests/fast/canvas/2d.backingStorePixelRatio.html
    R LayoutTests/fast/canvas/canvas-resize-reset-pixelRatio-expected.txt
    R LayoutTests/fast/canvas/canvas-resize-reset-pixelRatio.html
    M Source/WebCore/html/canvas/CanvasRenderingContext2D.idl
    M Source/WebCore/html/canvas/CanvasRenderingContext2DBase.h

  Log Message:
  -----------
  Remove non-standard `webkitBackingStorePixelRatio`

https://bugs.webkit.org/show_bug.cgi?id=270057
rdar://problem/123980544

Reviewed by Tim Nguyen.

This patch is to align WebKit with Gecko / Firefox and Blink / Chromium.

`webkitBackingStorePixelRatio` was removed from Blink in 2014 with below
commit:

Commit: https://github.com/chromium/chromium/commit/07ee81b34997614fcc8785df2aefaa3dd2092306

It was updated to return value of '1' in 133750 at main for high-dpi devices as well.
In other browser, it returns 'undefined' now, so this is to align with them.

* Source/WebCore/html/canvas/CanvasRenderingContext2D.idl:
* Source/WebCore/html/canvas/CanvasRenderingContext2DBase.h:

> Deleted Tests & Test Expectations:
* LayoutTests/fast/canvas/canvas-resize-reset-pixelRatio.html:
* LayoutTests/fast/canvas/canvas-resize-reset-pixelRatio-expected.txt:
* LayoutTests/fast/canvas/2d.backingStorePixelRatio.html:
* LayoutTests/fast/canvas/2d.backingStorePixelRatio-expected.txt:

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list