Bug 31968

Summary: Document::incDOMTreeVersion() and domTreeVersion() need documentation
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: ahmad.saleem792, ap, cdumez, darin, mjs, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

Eric Seidel (no email)
Reported 2009-11-29 17:17:34 PST
Document::incDOMTreeVersion() and domTreeVersion() need documentation void incDOMTreeVersion() { ++m_domtree_version; } unsigned domTreeVersion() const { return m_domtree_version; } I have no idea when these are supposed to be called, or if we're calling them in all the places we should be. Document.h needs to document these methods. They were added by mjs in http://trac.webkit.org/changeset/8037
Attachments
Alexey Proskuryakov
Comment 1 2009-11-30 16:42:07 PST
The DOM tree version needs to be changed each time the DOM tree changes. Do you have any specific non-obvious examples that should be documented? The DOM tree version is used to invalidate HTMLCollection caches and XPathResult, so any modification that can affect either should change the version. That's easy to discover by searching through WebCore code.
Ahmad Saleem
Comment 2 2023-04-25 06:59:59 PDT
We still have this: https://searchfox.org/wubkat/source/Source/WebCore/dom/Document.h#1142 Do we need to do anything here?
Ryosuke Niwa
Comment 3 2023-04-25 10:53:08 PDT
We don't need a documentation for this. The purpose of these tree versions are self explanatory.
Note You need to log in before you can comment on or make changes to this bug.