Changeset 12489 in webkit for trunk/JavaScriptCore/kjs/object.h


Ignore:
Timestamp:
Jan 30, 2006, 11:41:01 PM (19 years ago)
Author:
andersca
Message:

2006-01-30 Anders Carlsson <[email protected]>

Reviewed by Darin.

Fix http://bugzilla.opendarwin.org/show_bug.cgi?id=6907
REGRESSION: United.com menus messed up due to document.all/MSIE sniff


  • kjs/nodes.cpp: (typeStringForValue): Return "undefined" if the given object should masquerade as undefined.


  • kjs/object.h: (KJS::JSObject::masqueradeAsUndefined): Rename from isEqualToNull.


  • kjs/operations.cpp: (KJS::equal): Update for name change.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/object.h

    r12317 r12489  
    495495    bool getPropertyAttributes(const Identifier& propertyName, int& attributes) const;
    496496   
    497     // Returns whether the object should be treated as null when doing equality comparisons
    498     virtual bool isEqualToNull(ExecState *) const { return false; }
     497    // Returns whether the object should be treated as undefined when doing equality comparisons
     498    virtual bool masqueradeAsUndefined() const { return false; }
    499499   
    500500    // This get function only looks at the property map.
Note: See TracChangeset for help on using the changeset viewer.