Bug 1436279 - Remove unneeded mutable from DisplayItemClipChain::mRefCount - r=mattwoodrow
authorGerald Squelart <gsquelart@mozilla.com>
Tue, 21 Nov 2017 11:46:48 +1100
changeset 402838 5cede934f90ff02f3faf4ff52aac452e4a0bfc55
parent 402837 d00497dcbe240a47619d8ee17c765cdb9af4d1dd
child 402839 b8c06ff9a1759e203d4c249481c181987824bc44
push id33404
push usershindli@mozilla.com
push dateThu, 08 Feb 2018 10:03:18 +0000
treeherdermozilla-central@06b5d7476ebd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattwoodrow
bugs1436279
milestone60.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 1436279 - Remove unneeded mutable from DisplayItemClipChain::mRefCount - r=mattwoodrow mRefCount is only accessed from non-const methods, so there is no need for 'mutable'. MozReview-Commit-ID: Bwv6cO1utU5
layout/painting/DisplayItemClipChain.h
--- a/layout/painting/DisplayItemClipChain.h
+++ b/layout/painting/DisplayItemClipChain.h
@@ -75,17 +75,17 @@ struct DisplayItemClipChain {
 #ifdef DEBUG
     : mOnStack(true)
 #endif
   {}
 
   DisplayItemClip mClip;
   const ActiveScrolledRoot* mASR;
   RefPtr<const DisplayItemClipChain> mParent;
-  mutable uint32_t mRefCount = 0;
+  uint32_t mRefCount = 0;
 #ifdef DEBUG
   bool mOnStack;
 #endif
 };
 
 struct DisplayItemClipChainHasher
 {
   typedef const DisplayItemClipChain* Key;