Bug 1467536: followup: Use a more specific capture for the lambda. r=xidorn
☠☠ backed out by d2da1fe0c939 ☠ ☠
authorEmilio Cobos Álvarez <emilio@crisal.io>
Fri, 08 Jun 2018 15:07:19 +0200
changeset 422007 b664f1fdec855499403ac749d5a405716b6328a9
parent 422006 3e1da01d48780656bc9e0dd014b89ee0a75129d6
child 422008 2ed797e0a24ef9150170f92f0f2936b7a8d771e3
push id34114
push userbtara@mozilla.com
push dateSat, 09 Jun 2018 15:31:58 +0000
treeherdermozilla-central@e02a5155d815 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersxidorn
bugs1467536
milestone62.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 1467536: followup: Use a more specific capture for the lambda. r=xidorn MozReview-Commit-ID: 8ykWCzCO0yw
layout/style/nsComputedDOMStyle.cpp
--- a/layout/style/nsComputedDOMStyle.cpp
+++ b/layout/style/nsComputedDOMStyle.cpp
@@ -447,17 +447,17 @@ nsComputedDOMStyle::GetPropertyValue(con
   }
 
   const bool layoutFlushIsNeeded = entry && entry->IsLayoutFlushNeeded();
   UpdateCurrentStyleSources(layoutFlushIsNeeded);
   if (!mComputedStyle) {
     return NS_ERROR_NOT_AVAILABLE;
   }
 
-  auto cleanup = mozilla::MakeScopeExit([&] {
+  auto cleanup = mozilla::MakeScopeExit([this] {
     ClearCurrentStyleSources();
   });
 
   if (!entry) {
     MOZ_ASSERT(nsCSSProps::IsCustomPropertyName(aPropertyName));
     const nsAString& name =
       Substring(aPropertyName, CSS_CUSTOM_NAME_PREFIX_LENGTH);
     Servo_GetCustomPropertyValue(mComputedStyle, &name, &aReturn);