Bug 182685 - CanvasRenderingContext2DBase: use CanvasBase more extensively
Summary: CanvasRenderingContext2DBase: use CanvasBase more extensively
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Zan Dobersek
Depends on: 182503
Blocks: 182686 183720
  Show dependency treegraph
Reported: 2018-02-11 23:27 PST by Zan Dobersek
Modified: 2018-03-17 00:48 PDT (History)
5 users (show)

See Also:

WIP patch (11.57 KB, patch)
2018-02-11 23:28 PST, Zan Dobersek
no flags Details | Formatted Diff | Diff
Patch (14.84 KB, patch)
2018-03-01 01:48 PST, Zan Dobersek
zan: review?
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zan Dobersek 2018-02-11 23:27:11 PST
In CanvasRenderingContext2DBase, instead of downcasting the CanvasBase object to HTMLCanvasElement, call CanvasBase methods introduced in bug #182503, making it possible for OffscreenCanvas to leverage this class properly.
Comment 1 Zan Dobersek 2018-02-11 23:28:47 PST
Created attachment 333582 [details]
WIP patch

Depends on changes in bug #182503.
Comment 2 Zan Dobersek 2018-03-01 01:48:02 PST
Created attachment 334802 [details]

Reviewable, but still depends on bug #182503.