Changeset 50637 in webkit


Ignore:
Timestamp:
Nov 8, 2009 9:52:39 PM (14 years ago)
Author:
eric@webkit.org
Message:

2009-11-08 Johnny Ding <johnnyding.webkit@gmail.com>

Reviewed by Dimitri Glazkov.

https://bugs.webkit.org/show_bug.cgi?id=31224
[V8] Return StyleSheet object instead of HTMLStyleElement w/document.styleSheets named property getter.

  • fast/dom/StyleSheet/get-stylesheet-byname-expected.txt: Added.
  • fast/dom/StyleSheet/get-stylesheet-byname.html: Added.
  • fast/dom/StyleSheet/script-tests: Added.
  • fast/dom/StyleSheet/script-tests/get-stylesheet-byname.js: Added.

2009-11-08 Johnny Ding <johnnyding.webkit@gmail.com>

Reviewed by Dimitri Glazkov.

https://bugs.webkit.org/show_bug.cgi?id=31224
[V8] Return StyleSheet object instead of HTMLStyleElement w/document.styleSheets named property getter.

Test: fast/dom/StyleSheet/get-stylesheet-byname.html

  • bindings/v8/custom/V8StyleSheetListCustom.cpp: (WebCore::NAMED_PROPERTY_GETTER):
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r50631 r50637  
     12009-11-08  Johnny Ding  <johnnyding.webkit@gmail.com>
     2
     3        Reviewed by Dimitri Glazkov.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=31224
     6        [V8] Return StyleSheet object instead of HTMLStyleElement w/document.styleSheets named property getter.
     7
     8        * fast/dom/StyleSheet/get-stylesheet-byname-expected.txt: Added.
     9        * fast/dom/StyleSheet/get-stylesheet-byname.html: Added.
     10        * fast/dom/StyleSheet/script-tests: Added.
     11        * fast/dom/StyleSheet/script-tests/get-stylesheet-byname.js: Added.
     12
    1132009-11-08  Daniel Bates  <dbates@webkit.org>
    214
  • trunk/WebCore/ChangeLog

    r50635 r50637  
     12009-11-08  Johnny Ding  <johnnyding.webkit@gmail.com>
     2
     3        Reviewed by Dimitri Glazkov.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=31224
     6        [V8] Return StyleSheet object instead of HTMLStyleElement w/document.styleSheets named property getter.
     7
     8        Test: fast/dom/StyleSheet/get-stylesheet-byname.html
     9
     10        * bindings/v8/custom/V8StyleSheetListCustom.cpp:
     11        (WebCore::NAMED_PROPERTY_GETTER):
     12
    1132009-11-08  Pavel Feldman  <pfeldman@chromium.org>
    214
  • trunk/WebCore/bindings/v8/custom/V8StyleSheetListCustom.cpp

    r45659 r50637  
    3030
    3131#include "config.h"
     32#include "HTMLStyleElement.h"
    3233#include "StyleSheetList.h"
    3334
     
    5152        return notHandledByInterceptor();
    5253
    53     return V8DOMWrapper::convertToV8Object(V8ClassIndex::HTMLSTYLEELEMENT, item);
     54    return V8DOMWrapper::convertToV8Object(V8ClassIndex::STYLESHEET, item->sheet());
    5455}
    5556
Note: See TracChangeset for help on using the changeset viewer.