PartitionAlloc: correct the tryLen calculation.

Currently, we allocate one unit of allocation granularity more than we need to
guarantee we can carve out the aligned section.

BUG=324960
R=tsepez@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163365 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Shrink the per-partition page metadata structure.

The space required per partition page is down to 32 bytes now, on all systems.
This CL realizes the following benefits:

- The allocator metadata load is now 32/16384, or 0.2%. This compares favourably
with tcmalloc, which usually is around 1%.

- The doubly-linked active page ring list is now a singly-linked NULL-terminated
list. Operations that scan over and modify this list are now much simpler and
in some cases cheaper.

BUG=324960

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163366 bbb929c8-8fbe-4397-9dbb-9b2b20218538
IndexedDB: Move connection hookup into IDBDatabase constructor

Minor DRY refactor inspired by crrev.com/18227006

BUG=234277
R=alecflett@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163367 bbb929c8-8fbe-4397-9dbb-9b2b20218538