Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(722)

Unified Diff: Source/core/dom/QualifiedName.cpp

Issue 311803003: [oilpan]: Avoid refcounting QualifiedName's nullQName when tracing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: New QName hash trait Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« Source/core/dom/QualifiedName.h ('K') | « Source/core/dom/QualifiedName.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/QualifiedName.cpp
diff --git a/Source/core/dom/QualifiedName.cpp b/Source/core/dom/QualifiedName.cpp
index 4400201a5628d53885e0715f4127da8e0b7977e7..9ca243ee98576a5c5d059d47fcd05add60877eb2 100644
--- a/Source/core/dom/QualifiedName.cpp
+++ b/Source/core/dom/QualifiedName.cpp
@@ -21,8 +21,6 @@
#ifdef SKIP_STATIC_CONSTRUCTORS_ON_GCC
#define WEBCORE_QUALIFIEDNAME_HIDE_GLOBALS 1
-#else
-#define QNAME_DEFAULT_CONSTRUCTOR
#endif
#include "HTMLNames.h"
@@ -114,6 +112,8 @@ const QualifiedName& nullQName()
const AtomicString& QualifiedName::localNameUpper() const
{
+ if (!m_impl)
+ return nullAtom;
if (!m_impl->m_localNameUpper)
m_impl->m_localNameUpper = m_impl->m_localName.upper();
return m_impl->m_localNameUpper;
« Source/core/dom/QualifiedName.h ('K') | « Source/core/dom/QualifiedName.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698