Canvas2d: Fix a bug to update incorrect rect bounds for accessibility.

This CL is fixing the bug to update incorrect rect bounds for accessibility in
drawFocusIfNeeded() and addHitRegion() APIs. The bug couldn't reproduce in
existing tests because layout tree was updated by other apis incidentally.
So, this CL adds two unit tests for the issue to resolve.

BUG=328961,513763

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

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