Add assert that the referrer header is modified via the correct method

BUG=none
R=abarth@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@166622 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Update HTMLCollection's named property getter to behave according to spec

Update HTMLCollection's named property getter to behave according to spec:
http://dom.spec.whatwg.org/#htmlcollection

1. namedItem() should be marked as named getter in IDL as per the spec.
   This also means we can get rid of the anonymous named getter in our
   IDL.
2. The named getter should be enumerable as per Web IDL, meaning that
   elements id / names should be enumerated. The supported property names
   are spec'd at:
   http://dom.spec.whatwg.org/#htmlcollection
   Firefox 26 and IE11 both show the names while enumerating. However, IE11
   does not show the ids when enumerating, which is incorrect.
3. The argument to namedItem() named getter should be mandatory. This is
   consistent with the spec, Firefox 26 and IE11.

IDL interfaces inheriting HTMLCollection will need similar work (e.g.
HTMLFormControlsCollection). This will be taken care of in follow-up
patches to limit patch size and facilitate review.

R=haraken, arv, tkent
BUG=341269

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

git-svn-id: svn://svn.chromium.org/blink/trunk@166623 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Implement finalization for garbage collected heap owned by an attached thread.

At thread detachment the heap is expected to become empty after the last GC.

Postpone V8 isolate destruction until after thread has finished destroying objects on its garbage collected heap as some of finalizers might want to access V8 instance.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@166624 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make sure begin and end events are dispatched for back-to-back intervals

When the end time of the previous interval is the same as the
begin time of the new/current interval, the active state won't 
visibly transition Inactive -> Active (for 'begin' - the other
way around for 'end') if the interval can be resolved up
front (i.e. isn't event-base).

Fix by having SVGSMILElement::checkRestart return a bool indicating
whether an interval ended up being restarted, and then use this bool to
extend the predicates looking for Inactive<->Active transitions.

BUG=337724

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

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