mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-24 20:23:26 +00:00
Fix f78d3ddf71 - actually speed up MP/lobby chat.
f78d3ddf71 / D1781 would fix an important source of lag... If it
actually used the code.
Also clean up some comments.
Reported by: Vladislav
Differential Revision: https://code.wildfiregames.com/D3176
This was SVN commit r24312.
This commit is contained in:
@@ -32,18 +32,19 @@
|
||||
// Include the definition of the generic templates.
|
||||
#include "JSInterface_GUIProxy_impl.h"
|
||||
|
||||
namespace {
|
||||
struct SData
|
||||
{
|
||||
JS::PersistentRootedObject m_ToString;
|
||||
JS::PersistentRootedObject m_Focus;
|
||||
JS::PersistentRootedObject m_Blur;
|
||||
JS::PersistentRootedObject m_GetComputedSize;
|
||||
};
|
||||
namespace
|
||||
{
|
||||
struct SData
|
||||
{
|
||||
JS::PersistentRootedObject m_ToString;
|
||||
JS::PersistentRootedObject m_Focus;
|
||||
JS::PersistentRootedObject m_Blur;
|
||||
JS::PersistentRootedObject m_GetComputedSize;
|
||||
};
|
||||
}
|
||||
|
||||
template <>
|
||||
bool JSI_GUIProxy<IGUIObject>::funcGetter(JS::HandleObject proxy, const std::string& propName, JS::MutableHandleValue vp) const
|
||||
bool JSI_GUIProxy<IGUIObject>::FuncGetter(JS::HandleObject proxy, const std::string& propName, JS::MutableHandleValue vp) const
|
||||
{
|
||||
const SData& data = *static_cast<const SData*>(js::GetProxyReservedSlot(proxy, 0).toPrivate());
|
||||
if (propName == "toString")
|
||||
|
||||
Reference in New Issue
Block a user