Have Node inherit EventTarget interface

Have Node inherit EventTarget interface to match the specification:
http://dom.spec.whatwg.org/#interface-node

Node and its subclasses need slightly different implementation for
addEventListener() / removeEventListener(). Namely, we should not
call createHiddenDependency() / removeHiddenDependency() for Node
and its subclasses. To address this issue, a EventTarget::toNode()
virtual method is used so that we can make the check at runtime.

BUG=257583

Review URL: https://chromiumcodereview.appspot.com/18539006

git-svn-id: svn://svn.chromium.org/blink/trunk@153955 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Attempt to fix crash in MemoryCache::pruneDeadResourcesToSize.

We're not entirely sure what's causing this crash, but based on the stack traces
we have available, the prevailing theory is that refactoring in r150701 changed
how we remove items from MemoryCache's LRU lists. This change means we can
sometimes leave deleted CachedResources in the LRU lists, leading to a crash if
we iterate the LRU list.

BUG=257190

Review URL: https://chromiumcodereview.appspot.com/18612011

git-svn-id: svn://svn.chromium.org/blink/trunk@153956 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Early-out from apply_value_length() in StyleBuilder.cpp.tmpl

If the CSSPrimitiveValue has value CSSValueAuto or CSSValueNone, we can't
satisfy any of the other conditions in the method, so we can safely early-out.

Review URL: https://chromiumcodereview.appspot.com/18983002

git-svn-id: svn://svn.chromium.org/blink/trunk@153957 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Use ASSERT_WITH_SECURITY_IMPLICATION to catch bad cast.

Review URL: https://chromiumcodereview.appspot.com/18539018

git-svn-id: svn://svn.chromium.org/blink/trunk@153958 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Style resolution: Apply animation properties earlier in a separate pass

In order to apply the results of animations earlier in the style cascade
we need to apply animation related properties, generate animations and
trigger transitions earlier in the process.

This change introduces a new pass in the style application process which
allows animation properties to be applied after variable definitions but
before high priority and low priority properties.

Evaluated performance using html5-full-render perf test on Nexus 7 and
observed no regression.

Covered by existing tests. No change in behavior.

NOTRY=true
BUG=232273

Review URL: https://chromiumcodereview.appspot.com/18686005

git-svn-id: svn://svn.chromium.org/blink/trunk@153959 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix some TestExpectations duplicate line errors.

TBR=dpranke@chromium.org

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

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