[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/khtml/ecma
From:       Maks Orlovich <maksim () kde ! org>
Date:       2008-03-10 17:13:05
Message-ID: 1205169185.034041.19088.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 784108 by orlovich:

automatically merged revision 784105:
Use the new KJS hook to better hide hidden collections
BUG: 130376

 M  +4 -0      kjs_html.cpp  
 M  +1 -0      kjs_html.h  


--- trunk/KDE/kdelibs/khtml/ecma/kjs_html.cpp #784107:784108
@@ -2945,6 +2945,10 @@
   ScriptInterpreter::forgetDOMObject(m_impl.get());
 }
 
+bool KJS::HTMLCollection::masqueradeAsUndefined() const {
+    return hidden;
+}
+
 bool KJS::HTMLCollection::toBoolean(ExecState *) const {
     return !hidden;
 }
--- trunk/KDE/kdelibs/khtml/ecma/kjs_html.h #784107:784108
@@ -216,6 +216,7 @@
 
     virtual JSValue* callAsFunction(ExecState *exec, JSObject* thisObj, const List& args);
     virtual bool implementsCall() const { return true; }
+    virtual bool masqueradeAsUndefined() const;
     virtual bool toBoolean(ExecState *) const;
     virtual void getPropertyNames(ExecState*, PropertyNameArray&);
     enum { Item, NamedItem, Tags };
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic