Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/script/bridge/qscriptobject.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    8282
    8383bool QScriptObject::deleteProperty(JSC::ExecState* exec,
    84                                    const JSC::Identifier& propertyName,
    85                                    bool checkDontDelete)
    86 {
    87     if (!d || !d->delegate)
    88         return JSC::JSObject::deleteProperty(exec, propertyName, checkDontDelete);
    89     return d->delegate->deleteProperty(this, exec, propertyName, checkDontDelete);
    90 }
    91 
    92 bool QScriptObject::getPropertyAttributes(JSC::ExecState* exec, const JSC::Identifier& propertyName,
    93                                           unsigned& attributes) const
    94 {
    95     if (!d || !d->delegate)
    96         return JSC::JSObject::getPropertyAttributes(exec, propertyName, attributes);
    97     return d->delegate->getPropertyAttributes(this, exec, propertyName, attributes);
     84                                   const JSC::Identifier& propertyName)
     85{
     86    if (!d || !d->delegate)
     87        return JSC::JSObject::deleteProperty(exec, propertyName);
     88    return d->delegate->deleteProperty(this, exec, propertyName);
    9889}
    9990
    10091void QScriptObject::getOwnPropertyNames(JSC::ExecState* exec, JSC::PropertyNameArray& propertyNames,
    101                                         bool includeNonEnumerable)
    102 {
    103     if (!d || !d->delegate) {
    104         JSC::JSObject::getOwnPropertyNames(exec, propertyNames, includeNonEnumerable);
    105         return;
    106     }
    107     d->delegate->getOwnPropertyNames(this, exec, propertyNames, includeNonEnumerable);
     92                                        e)
     93{
     94    if (!d || !d->delegate) {
     95        JSC::JSObject::getOwnPropertyNames(exec, propertyNames, e);
     96        return;
     97    }
     98    d->delegate->getOwnPropertyNames(this, exec, propertyNames, e);
    10899}
    109100
     
    190181
    191182bool QScriptObjectDelegate::deleteProperty(QScriptObject* object, JSC::ExecState* exec,
    192                                            const JSC::Identifier& propertyName,
    193                                            bool checkDontDelete)
    194 {
    195     return object->JSC::JSObject::deleteProperty(exec, propertyName, checkDontDelete);
    196 }
    197 
    198 bool QScriptObjectDelegate::getPropertyAttributes(const QScriptObject* object,
    199                                                   JSC::ExecState* exec,
    200                                                   const JSC::Identifier& propertyName,
    201                                                   unsigned& attributes) const
    202 {
    203     return object->JSC::JSObject::getPropertyAttributes(exec, propertyName, attributes);
     183                                           const JSC::Identifier& propertyName)
     184{
     185    return object->JSC::JSObject::deleteProperty(exec, propertyName);
    204186}
    205187
    206188void QScriptObjectDelegate::getOwnPropertyNames(QScriptObject* object, JSC::ExecState* exec,
    207189                                                JSC::PropertyNameArray& propertyNames,
    208                                                 bool includeNonEnumerable)
    209 {
    210     object->JSC::JSObject::getOwnPropertyNames(exec, propertyNames, includeNonEnumerable);
     190                                                e)
     191{
     192    object->JSC::JSObject::getOwnPropertyNames(exec, propertyNames, e);
    211193}
    212194
Note: See TracChangeset for help on using the changeset viewer.