From kde-commits Mon Mar 10 17:13:05 2008 From: Maks Orlovich Date: Mon, 10 Mar 2008 17:13:05 +0000 To: kde-commits Subject: KDE/kdelibs/khtml/ecma Message-Id: <1205169185.034041.19088.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=120517107622394 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 };