Free HashSets on setWholeSubtreeInvalid.

In order to keep memory use as low as possible, free any HashSets which are
allocated in DescendantInvalidationSets when setWholeSubtreeInvalid is
called. Also ensure that none of the HashSets are re-created in a
DescendantInvalidationSet when wholeSubtreeInvalid is already true.

Additionally fixed some constness and removed non-existing method from header
file.

R=esprehn@chromium.org, chrishtr@chromium.org
BUG=335247

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167709 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Clean up filterRes handling on the deferred filters path.

Now that SkResizeImageFilter scales from the device origin (not the
saveLayer() origin, badly) and skia filters automatically adjust the
clip bounds to accommodate filter margins, we can remove a lot of the
ugliness from the deferred filters path: we don't need to force the
clip bounds with SkRegion::kReplace_Op, we don't need to save the old
bounds, and we don't need to offset the scale applied to the CTM (it
should be scaled from origin (0, 0)).

We do need to set the clip region before the saveLayer() to the
primitive bounds, however, so that filters aren't drawn outside it
in both the filterRes and non-filterRes case (e.g.,
svg/filters/feImage-preserveAspectratio.svg was failing due to
FEImage draws straddling the clip rect not being clipped).

Test: run svg/filters layout tests with --enable-deferred-filters.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167710 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Makes various callFunction functions take v8::value.

The v8 side changed a while back for these to take a v8::Value rather
than v8::Object. This makes the two match.

BUG=none
TEST=none
R=abarth@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167711 bbb929c8-8fbe-4397-9dbb-9b2b20218538
WATCHLIST entries for serviceworkers and updates for indexed_db

NOTRY=true
TBR=alecflett,ericu

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

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