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:
Jeff Muizelaar 2014-07-25 17:16:51 -04:00
parent 00da085b5f
commit 21b11a99aa

View File

@ -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)