diff options
author | Jonathan Kew <jkew@mozilla.com> | 2018-05-23 11:57:42 -0700 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-06-07 06:12:01 +0200 |
commit | 01e813736810d4afade739af76893f2d9ff1f93a (patch) | |
tree | a5251fbf7b55e1e8076eb4ab24fca67527454624 /dom/canvas/CanvasRenderingContext2D.h | |
parent | f35bf8b65d25f88c7e34263337b05619a78868f6 (diff) | |
download | UXP-01e813736810d4afade739af76893f2d9ff1f93a.tar UXP-01e813736810d4afade739af76893f2d9ff1f93a.tar.gz UXP-01e813736810d4afade739af76893f2d9ff1f93a.tar.lz UXP-01e813736810d4afade739af76893f2d9ff1f93a.tar.xz UXP-01e813736810d4afade739af76893f2d9ff1f93a.zip |
Update dimensions early in ClearTarget.
Diffstat (limited to 'dom/canvas/CanvasRenderingContext2D.h')
-rw-r--r-- | dom/canvas/CanvasRenderingContext2D.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dom/canvas/CanvasRenderingContext2D.h b/dom/canvas/CanvasRenderingContext2D.h index d5dff8f3b..848b3ee08 100644 --- a/dom/canvas/CanvasRenderingContext2D.h +++ b/dom/canvas/CanvasRenderingContext2D.h @@ -669,8 +669,11 @@ protected: /** * Disposes an old target and prepares to lazily create a new target. + * + * Parameters are the new dimensions to be used, or if either is negative, + * existing dimensions will be left unchanged. */ - void ClearTarget(); + void ClearTarget(int32_t aWidth = -1, int32_t aHeight = -1); /* * Returns the target to the buffer provider. i.e. this will queue a frame for |