Small cleanups in StylePropertySet class.

Remove useless casts and remove an unecessary always-true ASSERT.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154862 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove unused using declaration fom StyleColor.cpp

BUG=259121
R=leviw@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154863 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Refactoring: An argument of functions related to focus/blur events should be Element* or EventTarget*.

We should not use PassRefPtr<> because we don't move ownership of
objects when we call these functions.

BUG=258763

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154864 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Have const StyleResolverState return const RenderStyle

Change StyleResolverState to return const RenderStyle pointers if
called using a const StyleResolverState pointer.

BUG=237268
R=dglazkov@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154865 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Change print-json-test-results to use full_results.json by default.

Rather than always require the path to the json file to be passed,
we should support the normal set of default args and use the default
location for the layout test results.

R=eseidel@chromium.org
BUG=263930

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154866 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Clean up Custom Element script binding when a definition is no longer used.

Previously when a definition was registered, information about its
prototype was stuck on the per-context data for life. By associating
it with a definition it is possible to clean the context up when a
definition is no longer used.

This binding information has to live as long as it might be needed to
create a wrapper for a custom element. That is the longer of: (a) as
long as an element associated with this definition is alive, but does
not have a wrapper; (b) as long as new elements might be created which
are associated with this definition.

Case (a) is handled by the CustomElement::definitions() map, which
maps an element to a held refcount of the definition. Case (b) is
handled by the CustomElementRegistrationContext. The document which is
a factory for new elements owns the registration context, which owns a
CustomElementRegistry, which owns a definition.

Leaks can be induced via the custom element prototype because the
CustomElementBinding has a strong reference to the prototype. This
will be made weak in a follow-up change using a hidden reference from
document to prototype.

BUG=255725
R=haraken@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154867 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add devtools command to dispatch touch events.

BUG=chromedriver:219
TEST=new layout tests included

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154868 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove the Custom Element registration context type extension map.

A given custom element either has a definition associated with it, or
goes into the upgrade candidate map. Both of these places encode
whether the custom element is a type extension or not. Thus there is
no need for a side table recording the type extension of a given
element.

BUG=255725
R=dglazkov@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154869 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Clean up registration context state on element death.

Custom Element registration contexts keep the elements they created
which are waiting for a definition around in an "upgrade candidate
map." If the element moves to a different document but subsequently
dies, that state has to be cleaned up if the registration context is
still around.

BUG=255725
R=dglazkov@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154870 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix reading invalid union member in CSSParser::parseValue()

Check for variable token even when integer token is expected in
CSS parser.

BUG=232393

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

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

This sentinal AnimatableValue marks points in a KeyframeVector that need
to be replaced with a snapshot of the element's current computed
CSSValue once such values have been applied during
applyMatchedProperties().

BUG=232273

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

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