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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 1491253004: Release Oilpan heap singletons prior to LSan leak detection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comment to motivate DEFINE_STATIC_LOCAL_NO_REGISTER() Created 5 years 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
Index: third_party/WebKit/Source/core/style/ComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index 43ca7e6f9bbb99b9699b3b314fb8cb23c2a066c2..d1a7d3f2516aa615942924217e900df93229fb7d 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -78,6 +78,7 @@
#include "platform/text/UnicodeBidi.h"
#include "platform/transforms/TransformOperations.h"
#include "wtf/Forward.h"
+#include "wtf/LeakAnnotations.h"
#include "wtf/OwnPtr.h"
#include "wtf/RefCounted.h"
#include "wtf/StdLibExtras.h"
@@ -349,6 +350,7 @@ private:
static PassRefPtr<ComputedStyle> createInitialStyle();
static inline ComputedStyle* initialStyle()
{
+ WTF_ANNOTATE_SCOPED_MEMORY_LEAK;
DEFINE_STATIC_REF(ComputedStyle, s_initialStyle, (ComputedStyle::createInitialStyle()));
return s_initialStyle;
}

Powered by Google App Engine
This is Rietveld 408576698