Bug 1020847 - Add handwriting IME for Simplified Chinese.

Replaced number 2 with `window.devicePixelRatio` and keep rowSpan in this.rowSpan which is used in `setCanvasHeight`, prevent getting it from DOM dataset.