Remove unused CSSSelector::isCustomPseudoType

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149574 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Pare down the list of failing garden-o-matic unit tests.

It's not all of them, but it's a start.

BUG=
TEST=Tools/GardeningServer/run-unittests.html
R=abarth

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149575 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Replace custom indexed property getter with auto-generated one.

There are 8 IDLs with [CustomIndexedGetter].

Among them, HTMLSelectElement has also item() in IDL, thus it can be replaced with auto-generated one.

Other IDLs don't have item() exposed in IDL:
 core/html/HTMLAppletElement.idl
 core/html/HTMLEmbedElement.idl
 core/html/HTMLFormElement.idl
 core/html/HTMLObjectElement.idl
 core/html/HTMLOptionsCollection.idl
 core/page/DOMWindow.idl
 core/storage/Storage.idl

Regarding these IDLs, I will investigate other browser's behavior and discuss action with related people.

R=haraken@chromium.org
BUG=229740
TEST=No updated test. refactoring.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149576 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make a list in EventTargetFactory.in unix order

Originally, interface names are listed up in unix order. But, after
adding path to each interface names, it broke.

I adopt "cat | sort" to the third and later lines.

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

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149577 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add code tree structure for generating callback header

First step of making code generator structured.
Nest steps:
- Use Block (callback .cpp, non-callback .h .cpp)
- Treat empty lines
- Treat indent

see also:
https://docs.google.com/document/d/19NrrYSSRkavtOz-EAk17kKw8W00MXEpC1wznoGJstYc/edit?usp=sharing

BUG=234939
R=haraken@chromium.org
TEST=No tests. refactoring.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149578 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Update V8GCController to use new V8 GC-related APIs.

The purpose of this is to avoid copying v8::Persistent handles around, and
eventually make them non-copyable.

BUG=NONE

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149579 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Introduce ShouldKeepAttributeAliveForGC() in CodeGenratorV8.pm

The current if conditions are far from understandable.
This is one of steps to clean up the conditions.
This patch just factors out the conditions into a method,
and thus does not change behavior.

R=abarth@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149582 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove [CustomGetOwnPropertySlot] from DOMWindow.idl

- Originally [CustomGetOwnPropertySlot] is a concept of JSC
and it is not needed in V8.

- Instead we should add [CustomNamedGetter] to DOMWindow.idl
because it has a custom named getter.

R=abarth@chromium.org
CC=kojih

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149583 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Create wrappers for unresolved Custom Elements at the correct type

The Custom Elements spec Section 5 [1] says that elements which look like Custom Elements, but which don't have a definition yet, should be wrapped at HTMLElement for HTML elements with custom tags and SVGElement for SVG elements with custom tags.

This rejigs the Custom Element creation code to always create an element for a custom tag, even ones without a definition, and to wrap those elements directly (HTMLElement) instead of as fallback elements (HTMLUnknownElement.)

[1] <https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/index.html#registering-custom-elements>

BUG=233775

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149584 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Get rid of usages of ScriptWrappable::wrapper().

This is needed for getting rid of Persistent handle copying, as we're going to
remove the copy constructor (see bug for more information).

If we need to pass back a Persistent by reference in the V8 API, we can normally
just pass back a Persistent we hold. ScriptWrappable is problematic, because it
does not hold a Persistent, but instead stores the raw pointer. Added
UnsafePersistent to make the conversion from the raw pointer to a Persistent
explicit.

BUG=236290

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149585 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Get rid of more Persistent handle copying by using UnsafePersistent.

Remove ScriptWrappable::wrapper() and store UnsafePersistents in
DOMWrapperMap. This gets rid of more places where Persistent handles are copied
(see bug).

BUG=236290

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149586 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert "Get rid of more Persistent handle copying by using UnsafePersistent."

This reverts commit 9d9a47d065a70e649eb5e56542c503bfff6be69e.

BUG=
TBR=haraken@chromium.org

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

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