Fix bug where setting canvas size to 0 was treated as if context was lost

The canvas context lost handling logic was falsely kicking, rendering
the canvas unusable when setting one of its dimensions to zero.

BUG=532148

Review URL: https://codereview.chromium.org/1350883002

git-svn-id: svn://svn.chromium.org/blink/trunk@202645 bbb929c8-8fbe-4397-9dbb-9b2b20218538
4 files changed
tree: 9f2b3976a1a301a98ec865ae1e61464042cfc5a3
  1. third_party/