Changeset 43392 in webkit for trunk/WebCore/dom/XMLTokenizerLibxml2.cpp
- Timestamp:
- May 7, 2009, 11:47:19 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/dom/XMLTokenizerLibxml2.cpp
r43366 r43392 327 327 328 328 static int globalDescriptor = 0; 329 330 static ThreadIdentifier& libxmlLoaderThread() { 331 DEFINE_STATIC_LOCAL(ThreadIdentifier, staticLibxmlLoaderThread, ()); 332 return staticLibxmlLoaderThread; 333 } 329 static ThreadIdentifier libxmlLoaderThread = 0; 334 330 335 331 static int matchFunc(const char*) … … 337 333 // Only match loads initiated due to uses of libxml2 from within XMLTokenizer to avoid 338 334 // interfering with client applications that also use libxml2. http://bugs.webkit.org/show_bug.cgi?id=17353 339 return XMLTokenizerScope::currentDocLoader && currentThread() == libxmlLoaderThread ();335 return XMLTokenizerScope::currentDocLoader && currentThread() == libxmlLoaderThread; 340 336 } 341 337 … … 398 394 { 399 395 ASSERT(XMLTokenizerScope::currentDocLoader); 400 ASSERT(currentThread() == libxmlLoaderThread ());396 ASSERT(currentThread() == libxmlLoaderThread); 401 397 402 398 KURL url(KURL(), uri); … … 467 463 xmlRegisterInputCallbacks(matchFunc, openFunc, readFunc, closeFunc); 468 464 xmlRegisterOutputCallbacks(matchFunc, openFunc, writeFunc, closeFunc); 469 libxmlLoaderThread ()= currentThread();465 libxmlLoaderThread = currentThread(); 470 466 didInit = true; 471 467 } … … 489 485 xmlRegisterInputCallbacks(matchFunc, openFunc, readFunc, closeFunc); 490 486 xmlRegisterOutputCallbacks(matchFunc, openFunc, writeFunc, closeFunc); 491 libxmlLoaderThread ()= currentThread();487 libxmlLoaderThread = currentThread(); 492 488 didInit = true; 493 489 }
Note:
See TracChangeset
for help on using the changeset viewer.