Index: third_party/WebKit/Source/core/style/NinePieceImage.cpp |
diff --git a/third_party/WebKit/Source/core/style/NinePieceImage.cpp b/third_party/WebKit/Source/core/style/NinePieceImage.cpp |
index c6f11acac8dd184520363892fbab43b656176214..2956eacf1d9f4e185a0c868aa832355819e4fd74 100644 |
--- a/third_party/WebKit/Source/core/style/NinePieceImage.cpp |
+++ b/third_party/WebKit/Source/core/style/NinePieceImage.cpp |
@@ -29,9 +29,11 @@ namespace blink { |
static DataRef<NinePieceImageData>& defaultData() |
{ |
- static DataRef<NinePieceImageData>* data = new DataRef<NinePieceImageData>; |
- if (!data->get()) |
+ DEFINE_THREAD_SAFE_STATIC_LOCAL(ThreadSpecific<DataRef<NinePieceImageData>>, data, |
+ new ThreadSpecific<DataRef<NinePieceImageData>>); |
esprehn
2016/09/12 20:53:12
ditto
|
+ if (!data->get()) { |
data->init(); |
+ } |
return *data; |
} |