Changeset 53946 in webkit


Ignore:
Timestamp:
Jan 27, 2010 12:00:13 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-01-27 Mads Ager <ager@chromium.org>

Reviewed by Dimitri Glazkov.

[V8] Support getting integer-named properties using indexing notation on document object
https://bugs.webkit.org/show_bug.cgi?id=34211

  • fast/dom/HTMLDocument/get-iframe-with-integer-name-expected.txt: Added.
  • fast/dom/HTMLDocument/get-iframe-with-integer-name.html: Added.

2010-01-27 Mads Ager <ager@chromium.org>

Reviewed by Dimitri Glazkov.

[V8] Support getting integer-named properties using indexing notation on document object
https://bugs.webkit.org/show_bug.cgi?id=34211

Add indexed property getter to HTMLDocument to support getting
elements with integer names using indexing notation on document.

Test: fast/dom/HTMLDocument/get-iframe-with-integer-name.html

  • bindings/scripts/CodeGeneratorV8.pm:
  • bindings/v8/custom/V8HTMLDocumentCustom.cpp: (WebCore::V8HTMLDocument::indexedPropertyGetter):
Location:
trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r53942 r53946  
     12010-01-27  Mads Ager  <ager@chromium.org>
     2
     3        Reviewed by Dimitri Glazkov.
     4
     5        [V8] Support getting integer-named properties using indexing notation on document object
     6        https://bugs.webkit.org/show_bug.cgi?id=34211
     7
     8        * fast/dom/HTMLDocument/get-iframe-with-integer-name-expected.txt: Added.
     9        * fast/dom/HTMLDocument/get-iframe-with-integer-name.html: Added.
     10
    1112010-01-27  Kinuko Yasuda  <kinuko@chromium.org>
    212
  • trunk/WebCore/ChangeLog

    r53945 r53946  
     12010-01-27  Mads Ager  <ager@chromium.org>
     2
     3        Reviewed by Dimitri Glazkov.
     4
     5        [V8] Support getting integer-named properties using indexing notation on document object
     6        https://bugs.webkit.org/show_bug.cgi?id=34211
     7
     8        Add indexed property getter to HTMLDocument to support getting
     9        elements with integer names using indexing notation on document.
     10
     11        Test: fast/dom/HTMLDocument/get-iframe-with-integer-name.html
     12
     13        * bindings/scripts/CodeGeneratorV8.pm:
     14        * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
     15        (WebCore::V8HTMLDocument::indexedPropertyGetter):
     16
    1172010-01-27  Yury Semikhatsky  <yurys@chromium.org>
    218
  • trunk/WebCore/bindings/scripts/CodeGeneratorV8.pm

    r53931 r53946  
    430430    "Storage" => 1,
    431431    "HTMLAppletElement" => 1,
     432    "HTMLDocument" => 1,
    432433    "HTMLEmbedElement" => 1,
    433434    "HTMLObjectElement" => 1
     
    13061307    if ($isSpecialCase) {
    13071308        $hasGetter = 1;
    1308         $hasCustomSetter = 1;
     1309        if ($dataNode->extendedAttributes->{"DelegatingPutFunction"}) {
     1310            $hasCustomSetter = 1;
     1311        }
    13091312    }
    13101313
  • trunk/WebCore/bindings/v8/custom/V8HTMLDocumentCustom.cpp

    r53271 r53946  
    100100}
    101101
     102v8::Handle<v8::Value> V8HTMLDocument::indexedPropertyGetter(uint32_t index, const v8::AccessorInfo &info)
     103{
     104    INC_STATS("DOM.HTMLDocument.IndexedPropertyGetter");
     105    v8::Local<v8::Integer> indexV8 = v8::Integer::NewFromUnsigned(index);
     106    return namedPropertyGetter(indexV8->ToString(), info);
     107}
     108
    102109// HTMLDocument ----------------------------------------------------------------
    103110
Note: See TracChangeset for help on using the changeset viewer.