Bug 1275766 - Give nsStyleQuoteValues threadsafe refcounting. r=heycam
authorBobby Holley <bobbyholley@gmail.com>
Tue, 24 May 2016 22:06:18 -0700
changeset 299094 53c8478b70c0bac9019babd23f1d5076feb1762b
parent 299093 faf4134b30b9930c9650232f803f354fec6ec3e7
child 299095 fe87fe3e36a93ef95ba922fcfaea60736f992e4b
push id77428
push userbholley@mozilla.com
push dateThu, 26 May 2016 05:06:59 +0000
treeherdermozilla-inbound@fe87fe3e36a9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersheycam
bugs1275766
milestone49.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1275766 - Give nsStyleQuoteValues threadsafe refcounting. r=heycam The contents are immutable after creation and safe to destroy on any thread.
layout/style/nsStyleStruct.h
--- a/layout/style/nsStyleStruct.h
+++ b/layout/style/nsStyleStruct.h
@@ -1376,17 +1376,17 @@ protected:
  * An object that allows sharing of arrays that store 'quotes' property
  * values.  This is particularly important for inheritance, where we want
  * to share the same 'quotes' value with a parent style context.
  */
 class nsStyleQuoteValues
 {
 public:
   typedef nsTArray<std::pair<nsString, nsString>> QuotePairArray;
-  NS_INLINE_DECL_REFCOUNTING(nsStyleQuoteValues);
+  NS_INLINE_DECL_THREADSAFE_REFCOUNTING(nsStyleQuoteValues);
   QuotePairArray mQuotePairs;
 
 private:
   ~nsStyleQuoteValues() {}
 };
 
 struct MOZ_NEEDS_MEMMOVABLE_MEMBERS nsStyleList
 {