summaryrefslogtreecommitdiffstats
path: root/dom/base/nsNodeInfoManager.h
diff options
context:
space:
mode:
authorwin7-7 <win7-7@users.noreply.github.com>2019-05-25 16:22:19 +0300
committerGitHub <noreply@github.com>2019-05-25 16:22:19 +0300
commit449cb277d4dd0cd6269a5874629fd9a5c36db3a3 (patch)
treec83bf1c874f332e80d25c739858cc5702bbf4037 /dom/base/nsNodeInfoManager.h
parent915ffc660053cc48153c00dec66b913517dba794 (diff)
downloadUXP-449cb277d4dd0cd6269a5874629fd9a5c36db3a3.tar
UXP-449cb277d4dd0cd6269a5874629fd9a5c36db3a3.tar.gz
UXP-449cb277d4dd0cd6269a5874629fd9a5c36db3a3.tar.lz
UXP-449cb277d4dd0cd6269a5874629fd9a5c36db3a3.tar.xz
UXP-449cb277d4dd0cd6269a5874629fd9a5c36db3a3.zip
NodeInfoManager should use a local cache
issue #1111
Diffstat (limited to 'dom/base/nsNodeInfoManager.h')
-rw-r--r--dom/base/nsNodeInfoManager.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/dom/base/nsNodeInfoManager.h b/dom/base/nsNodeInfoManager.h
index 6ece66577..759dd391e 100644
--- a/dom/base/nsNodeInfoManager.h
+++ b/dom/base/nsNodeInfoManager.h
@@ -32,6 +32,8 @@ class NodeInfo;
} // namespace dom
} // namespace mozilla
+#define RECENTLY_USED_NODEINFOS_SIZE 31
+
class nsNodeInfoManager final
{
private:
@@ -137,6 +139,7 @@ private:
mozilla::dom::NodeInfo * MOZ_NON_OWNING_REF mCommentNodeInfo; // WEAK to avoid circular ownership
mozilla::dom::NodeInfo * MOZ_NON_OWNING_REF mDocumentNodeInfo; // WEAK to avoid circular ownership
RefPtr<nsBindingManager> mBindingManager;
+ mozilla::dom::NodeInfo* mRecentlyUsedNodeInfos[RECENTLY_USED_NODEINFOS_SIZE];
};
#endif /* nsNodeInfoManager_h___ */