diff options
author | ager@google.com <ager@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-28 10:31:08 +0000 |
---|---|---|
committer | ager@google.com <ager@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-28 10:31:08 +0000 |
commit | 10eec646189ebbf957c898a6b2992a6ff09a1095 (patch) | |
tree | 77dd1efd4aa38141eb35bc3381aeaeb2d068709a /webkit | |
parent | bf3c52c9dce8f232f1b7039eeca89fec4fba403d (diff) | |
download | chromium_src-10eec646189ebbf957c898a6b2992a6ff09a1095.zip chromium_src-10eec646189ebbf957c898a6b2992a6ff09a1095.tar.gz chromium_src-10eec646189ebbf957c898a6b2992a6ff09a1095.tar.bz2 |
Unfork HTMLOptionsCollection.idl. This was forked a long time ago and
we no longer need it. The only unfortunate things is that to unfork
we have to add another custom getter that does not really need to be
customized.
The commit will be a two-step process. I'll update the WebKit DEPS
once I know the new version.
Review URL: http://codereview.chromium.org/10996
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6111 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/port/bindings/v8/v8_custom.cpp | 15 | ||||
-rw-r--r-- | webkit/port/bindings/v8/v8_custom.h | 2 |
2 files changed, 14 insertions, 3 deletions
diff --git a/webkit/port/bindings/v8/v8_custom.cpp b/webkit/port/bindings/v8/v8_custom.cpp index 3f001ec..15028a5 100644 --- a/webkit/port/bindings/v8/v8_custom.cpp +++ b/webkit/port/bindings/v8/v8_custom.cpp @@ -3304,10 +3304,21 @@ ACCESSOR_GETTER(ElementEventHandler) { } +ACCESSOR_GETTER(HTMLOptionsCollectionLength) { + INC_STATS("DOM.HTMLOptionsCollection.length._get"); + HTMLOptionsCollection* imp = + V8Proxy::ToNativeObject<HTMLOptionsCollection>( + V8ClassIndex::HTMLOPTIONSCOLLECTION, info.Holder()); + int v = imp->length(); + return v8::Integer::New(v); +} + + ACCESSOR_SETTER(HTMLOptionsCollectionLength) { + INC_STATS("DOM.HTMLOptionsCollection.length._set"); HTMLOptionsCollection* imp = - V8Proxy::ToNativeObject<HTMLOptionsCollection>( - V8ClassIndex::HTMLOPTIONSCOLLECTION, info.Holder()); + V8Proxy::ToNativeObject<HTMLOptionsCollection>( + V8ClassIndex::HTMLOPTIONSCOLLECTION, info.Holder()); double v = value->NumberValue(); unsigned newLength = 0; ExceptionCode ec = 0; diff --git a/webkit/port/bindings/v8/v8_custom.h b/webkit/port/bindings/v8/v8_custom.h index 8199fe9..c93fdf9 100644 --- a/webkit/port/bindings/v8/v8_custom.h +++ b/webkit/port/bindings/v8/v8_custom.h @@ -184,7 +184,7 @@ DECLARE_PROPERTY_ACCESSOR_SETTER(HTMLIFrameElementSrc) DECLARE_PROPERTY_ACCESSOR_SETTER(AttrValue) // Customized setter of HTMLOptionsCollection length -DECLARE_PROPERTY_ACCESSOR_SETTER(HTMLOptionsCollectionLength) +DECLARE_PROPERTY_ACCESSOR(HTMLOptionsCollectionLength) // Customized accessors for HTMLInputElement DECLARE_PROPERTY_ACCESSOR_GETTER(HTMLInputElementSelectionStart) |