Bug 206541

Summary: Remove ImageBuffer::sizeForDestinationSize()
Product: WebKit Reporter: Said Abou-Hallawa <sabouhallawa>
Component: CanvasAssignee: Said Abou-Hallawa <sabouhallawa>
Status: RESOLVED FIXED    
Severity: Normal CC: alecflett, annulen, beidson, cdumez, cmarcelo, commit-queue, dino, eric.carlson, esprehn+autocc, ews-watchlist, fmalita, fred.wang, glenn, graouts, gyuyoung.kim, jer.noble, jsbell, kondapallykalyan, luiz, macpherson, menard, noam, pdr, philipj, ryuan.choi, schenney, sergio, simon.fraser, thorton, webkit-bug-importer
Priority: P2 Keywords: DoNotImportToRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 206519    
Bug Blocks: 204955    
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch none

Description Said Abou-Hallawa 2020-01-21 10:11:29 PST
This function is currently does nothing. For CG ports, it scales a rect by the ratio backingStoreSize / internalSize which is always 1. The constructor ImageBuffer::ImageBuffer() sets m_size and m_data.backingStoreSize to the same value always.

    m_size = IntSize(scaledWidth, scaledHeight);
    m_data.backingStoreSize = m_size;

For other ports ImageBuffer::sizeForDestinationSize() returns the passed rectangle.
Comment 1 Said Abou-Hallawa 2020-01-21 10:15:32 PST
Created attachment 388315 [details]
Patch
Comment 2 Said Abou-Hallawa 2020-01-21 13:48:12 PST
Created attachment 388342 [details]
Patch
Comment 3 Said Abou-Hallawa 2020-01-22 00:18:03 PST
Created attachment 388402 [details]
Patch
Comment 4 Said Abou-Hallawa 2020-01-22 12:20:42 PST
Created attachment 388457 [details]
Patch
Comment 5 WebKit Commit Bot 2020-01-22 13:31:43 PST
The commit-queue encountered the following flaky tests while processing attachment 388457 [details]:

editing/spelling/spellcheck-async-remove-frame.html bug 158401 (authors: morrita@google.com, rniwa@webkit.org, and tony@chromium.org)
The commit-queue is continuing to process your patch.
Comment 6 WebKit Commit Bot 2020-01-22 13:32:16 PST
Comment on attachment 388457 [details]
Patch

Clearing flags on attachment: 388457

Committed r254941: <https://trac.webkit.org/changeset/254941>
Comment 7 WebKit Commit Bot 2020-01-22 13:32:18 PST
All reviewed patches have been landed.  Closing bug.
Comment 8 Radar WebKit Bug Importer 2020-01-22 15:58:33 PST
<rdar://problem/58814730>