Stabilize empty rect handling in EnclosingRect.

We want empty Rects to have empty enclosing rects, per
https://chromiumcodereview.appspot.com/15233003, but we would
prefer this to not bounce around based on floating point calculations
accumulating some epsilon sized errors.

roundOut in SKIA does not have either the former or the new behavior,
so we are drifting apart from an underlying expectation, and should be
careful this doesn't cause future inconsistencies between paths,
like mainthread/ impl thread.

BUG=None
R=danakj
CC=sky
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel

Review-Url: https://codereview.chromium.org/2749513011
Cr-Commit-Position: refs/heads/master@{#460794}


CrOS-Libchrome-Original-Commit: faa28efcb640abddbf5f80a75724bad3d6e20a31
4 files changed
tree: 49017812c973acd9d4295e6cfae46de51c803939
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/