mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
Bug 1035244. Initialize canvas context width/height to 0, 0. r=bas
This fixes a ~50ms Phone and Contacts launch regression that's not really understood. --HG-- extra : rebase_source : df7cfefb53f4caa7a3719e02a8f399539d5dce02
This commit is contained in:
parent
00da085b5f
commit
21b11a99aa
@ -561,7 +561,7 @@ DrawTarget* CanvasRenderingContext2D::sErrorTarget = nullptr;
|
||||
CanvasRenderingContext2D::CanvasRenderingContext2D()
|
||||
: mForceSoftware(false)
|
||||
// these are the default values from the Canvas spec
|
||||
, mWidth(300), mHeight(150)
|
||||
, mWidth(0), mHeight(0)
|
||||
, mZero(false), mOpaque(false)
|
||||
, mResetLayer(true)
|
||||
, mIPC(false)
|
||||
|
Loading…
Reference in New Issue
Block a user