Changeset 167240 in webkit


Ignore:
Timestamp:
Apr 14, 2014 4:21:49 AM (10 years ago)
Author:
Manuel Rego Casasnovas
Message:

[JSC] CSSStyleDeclaration report incorrect descriptor
https://bugs.webkit.org/show_bug.cgi?id=89697

Reviewed by Benjamin Poulain.

Source/WebCore:

Change descriptor of CSSStyleDeclaration properties in order to have
writable and enumerable attributes set to true. Configurable is kept to
false since the property is not deleteable.

Test: fast/dom/CSSStyleDeclaration/cssstyledeclaration-properties-descriptor.html

  • bindings/js/JSCSSStyleDeclarationCustom.cpp:

(WebCore::JSCSSStyleDeclaration::getOwnPropertySlotDelegate): Only set
DontDelete attribute when creating the descriptor for
CSSStyleDeclaration properties.

LayoutTests:

Add new test to check the descriptor of CSSStyleDeclaration properties.

  • fast/dom/CSSStyleDeclaration/cssstyledeclaration-properties-descriptor-expected.txt: Added.
  • fast/dom/CSSStyleDeclaration/cssstyledeclaration-properties-descriptor.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r167218 r167240  
     12014-04-14  Manuel Rego Casasnovas  <rego@igalia.com>
     2
     3        [JSC] CSSStyleDeclaration report incorrect descriptor
     4        https://bugs.webkit.org/show_bug.cgi?id=89697
     5
     6        Reviewed by Benjamin Poulain.
     7
     8        Add new test to check the descriptor of CSSStyleDeclaration properties.
     9
     10        * fast/dom/CSSStyleDeclaration/cssstyledeclaration-properties-descriptor-expected.txt: Added.
     11        * fast/dom/CSSStyleDeclaration/cssstyledeclaration-properties-descriptor.html: Added.
     12
    1132014-04-14  Benjamin Poulain  <benjamin@webkit.org>
    214
  • trunk/Source/WebCore/ChangeLog

    r167220 r167240  
     12014-04-14  Manuel Rego Casasnovas  <rego@igalia.com>
     2
     3        [JSC] CSSStyleDeclaration report incorrect descriptor
     4        https://bugs.webkit.org/show_bug.cgi?id=89697
     5
     6        Reviewed by Benjamin Poulain.
     7
     8        Change descriptor of CSSStyleDeclaration properties in order to have
     9        writable and enumerable attributes set to true. Configurable is kept to
     10        false since the property is not deleteable.
     11
     12        Test: fast/dom/CSSStyleDeclaration/cssstyledeclaration-properties-descriptor.html
     13
     14        * bindings/js/JSCSSStyleDeclarationCustom.cpp:
     15        (WebCore::JSCSSStyleDeclaration::getOwnPropertySlotDelegate): Only set
     16        DontDelete attribute when creating the descriptor for
     17        CSSStyleDeclaration properties.
     18
    1192014-04-14  Benjamin Poulain  <benjamin@webkit.org>
    220
  • trunk/Source/WebCore/bindings/js/JSCSSStyleDeclarationCustom.cpp

    r166091 r167240  
    337337
    338338    if (propertyInfo.hadPixelOrPosPrefix)
    339         slot.setCustomIndex(this, ReadOnly | DontDelete | DontEnum, static_cast<unsigned>(propertyInfo.propertyID), cssPropertyGetterPixelOrPosPrefixCallback);
     339        slot.setCustomIndex(this, DontDelete, static_cast<unsigned>(propertyInfo.propertyID), cssPropertyGetterPixelOrPosPrefixCallback);
    340340    else
    341         slot.setCustomIndex(this, ReadOnly | DontDelete | DontEnum, static_cast<unsigned>(propertyInfo.propertyID), cssPropertyGetterCallback);
     341        slot.setCustomIndex(this, DontDelete, static_cast<unsigned>(propertyInfo.propertyID), cssPropertyGetterCallback);
    342342    return true;
    343343}
Note: See TracChangeset for help on using the changeset viewer.