Bug 192217

Summary: CSS Painting API should scale display list when drawing
Product: WebKit Reporter: Justin Michaud <justin_michaud>
Component: Layout and RenderingAssignee: Justin Michaud <justin_michaud>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, cdumez, commit-queue, esprehn+autocc, ews-watchlist, gyuyoung.kim, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 190217    
Attachments:
Description Flags
Patch
none
Archive of layout-test-results from ews124 for ios-simulator-wk2
none
Patch
none
Patch none

Description Justin Michaud 2018-11-29 22:34:06 PST
When the user zooms in on a custom paint element, it should be sharp. This should not be visible to the paint worklet.
Comment 1 Justin Michaud 2018-11-29 22:37:54 PST
Created attachment 356142 [details]
Patch
Comment 2 EWS Watchlist 2018-11-30 02:58:38 PST Comment hidden (obsolete)
Comment 3 EWS Watchlist 2018-11-30 02:58:40 PST Comment hidden (obsolete)
Comment 4 Simon Fraser (smfr) 2018-11-30 10:19:11 PST
Comment on attachment 356142 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=356142&action=review

> Source/WebCore/ChangeLog:9
> +        There are no tests for this because I do not know how to make tests that would not be flaky.

Why?

> Source/WebCore/html/CustomPaintCanvas.cpp:114
> +    m_destinationGraphicsContext = &image->context();
> +    m_destinationGraphicsContext->translate(-ctx->clipBounds().location());
> +    if (m_context)
> +        m_context->paintRenderingResultsToCanvas();
> +    m_destinationGraphicsContext = nullptr;

This is weird. Don't have the m_destinationGraphicsContext data member; just pass the destination context around.
Comment 5 Justin Michaud 2018-11-30 14:48:03 PST
Created attachment 356243 [details]
Patch
Comment 6 Justin Michaud 2018-11-30 18:12:15 PST
Created attachment 356278 [details]
Patch
Comment 7 WebKit Commit Bot 2018-12-03 20:03:22 PST
Comment on attachment 356278 [details]
Patch

Clearing flags on attachment: 356278

Committed r238839: <https://trac.webkit.org/changeset/238839>
Comment 8 WebKit Commit Bot 2018-12-03 20:03:24 PST
All reviewed patches have been landed.  Closing bug.
Comment 9 Radar WebKit Bug Importer 2018-12-03 20:04:30 PST
<rdar://problem/46441508>