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
R=dcarney@chromium.org, haraken@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149588 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Set a bit on Custom Elements on creation to simplify wrapping

For now, this makes wrapping faster because the wrapper factory can
check this bit instead of examining the tag name and "is" attribute.

This bit will soon be required for correctness: Currently, because
elements are only activated at creation time, there is no window in
which the "is" attribute can be changed by script before the element
is upgraded. Soon we will do post-hoc upgrade of custom elements
created before their definitions are available. This bit will be
necessary for opting elements into that processing.

BUG=233775

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

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

This reverts commit 08a226db07686f35bc0ca5d95b7a1af496ee58b1.

BUG=
TBR=haraken@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149590 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
R=dcarney@chromium.org, haraken@chromium.org

Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=149588

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149592 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 149589 "Set a bit on Custom Elements on creation to simplify wrapping"

> Set a bit on Custom Elements on creation to simplify wrapping
> For now, this makes wrapping faster because the wrapper factory can
> check this bit instead of examining the tag name and "is" attribute.
>
> This bit will soon be required for correctness: Currently, because
> elements are only activated at creation time, there is no window in
> which the "is" attribute can be changed by script before the element
> is upgraded. Soon we will do post-hoc upgrade of custom elements
> created before their definitions are available. This bit will be
> necessary for opting elements into that processing.
>
> BUG=233775
>
> Review URL: https://chromiumcodereview.appspot.com/14834002

fast/dom/wrapper-classes.html crashes on debug builds

NOTRY=true
TBR=dominicc@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149593 bbb929c8-8fbe-4397-9dbb-9b2b20218538
More Win7/Debug timeouts

BUG=237270
TBR=dglazkov@chromium.org
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149594 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Get rid of some usages of v8::Persistent::New.

We need the swap() functionality to get rid of the rest.

This gets rid of more places where Persistent handles are copied
(see bug).

BUG=236290

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149596 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Update binding test result changed by 149578

(I forgot to update test result)

BUG=234939
R=haraken@chromium.org
TEST=V8TestCallback.h

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149597 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Clean up special cases in code generator.

Removed some special cases related to
IndexedGetter, CustomNamedGetter, CustomIndexedSetter,
hasEnumrator, CustomDeleteProperty

Changes in generated code:
Remove prototype of indexedPropertyDeleter and namedPropertyDeleter
from V8DataTransferItemList.h
Actually they have no implementation in custom or auto-generated.

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

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149598 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove CSS_REGIONS compile flag from Blink.

The regions functionality will be enabled/disabled at runtime.

BUG=232294

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149599 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Replace IDL 'int' and 'unsigned int' with 'long' and 'unsigned long'

Per the Web IDL spec.

R=abarth,eseidel

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149600 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Rename IDL attributes about toV8() and wrap()

- [SuppressToJSObject] => [DoNotGenerateToV8]
- [NoWrapperCache] => [DoNotGenerateWrap]
- [CustomToJSObject] => [CustomToV8]

R=abarth,eseidel

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

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