Fix approximately equal check for rects
commitbad389d25072ea028b6131a0629e9119808d55e1
authorvollick <vollick@chromium.org>
Mon, 20 Apr 2015 22:22:13 +0000 (20 15:22 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 20 Apr 2015 22:22:32 +0000 (20 22:22 +0000)
tree447d24aea378c73f9ea14c33f66c308623ecd017
parentb075fa90786c045b2d7730f4588edd90d68afacb
Fix approximately equal check for rects

We previously compared left, right, top and bottom of the two rects,
but if one of the two rects is empty, then we lose information as the
rect becomes 0,0 0x0. In these cases, we should ensure that that the
minimum dimension of the other rect doesn't exceed our tolerance.

This CL also relaxes the error tolerance for rects.

BUG=471786

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

Cr-Commit-Position: refs/heads/master@{#325922}
cc/trees/layer_tree_host_common.cc