diff options
author | win7-7 <win7-7@users.noreply.github.com> | 2019-05-25 16:22:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-25 16:22:19 +0300 |
commit | 449cb277d4dd0cd6269a5874629fd9a5c36db3a3 (patch) | |
tree | c83bf1c874f332e80d25c739858cc5702bbf4037 /dom/base/nsNodeInfoManager.h | |
parent | 915ffc660053cc48153c00dec66b913517dba794 (diff) | |
download | uxp-449cb277d4dd0cd6269a5874629fd9a5c36db3a3.tar.gz |
NodeInfoManager should use a local cache
issue #1111
Diffstat (limited to 'dom/base/nsNodeInfoManager.h')
-rw-r--r-- | dom/base/nsNodeInfoManager.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dom/base/nsNodeInfoManager.h b/dom/base/nsNodeInfoManager.h index 6ece66577d..759dd391eb 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___ */ |