Index: Source/WebCore/dom/Document.cpp |
=================================================================== |
--- Source/WebCore/dom/Document.cpp (revision 81450) |
+++ Source/WebCore/dom/Document.cpp (working copy) |
@@ -370,11 +370,13 @@ |
Document* m_document; |
}; |
+uint64_t Document::s_globalTreeVersion = 0; |
+ |
Document::Document(Frame* frame, const KURL& url, bool isXHTML, bool isHTML, const KURL& baseURL) |
: ContainerNode(0) |
, m_compatibilityMode(NoQuirksMode) |
, m_compatibilityModeLocked(false) |
- , m_domTreeVersion(0) |
+ , m_domTreeVersion(++s_globalTreeVersion) |
, m_styleSheets(StyleSheetList::create(this)) |
, m_readyState(Complete) |
, m_styleRecalcTimer(this, &Document::styleRecalcTimerFired) |