summaryrefslogtreecommitdiffstats
path: root/dom/canvas/CanvasRenderingContext2D.h
diff options
context:
space:
mode:
authorJonathan Kew <jkew@mozilla.com>2018-05-23 11:57:42 -0700
committerwolfbeast <mcwerewolf@gmail.com>2018-06-07 06:12:01 +0200
commit01e813736810d4afade739af76893f2d9ff1f93a (patch)
treea5251fbf7b55e1e8076eb4ab24fca67527454624 /dom/canvas/CanvasRenderingContext2D.h
parentf35bf8b65d25f88c7e34263337b05619a78868f6 (diff)
downloadUXP-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.h5
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