Bug 1364179 - initialise AutoPreserveAspectRatioOverride::mDidOverride r=jseward
authorRobert Longson <longsonr@gmail.com>
Fri, 12 May 2017 22:16:25 +0100
changeset 406365 2deaa53b7d9d1ae95388dc01f6cf6377d354f932
parent 406364 57bb4f9df629df1abb0e6c2dd36270be0e685977
child 406366 f0f6bd0a45434bcd6159ae9f7c4f558367332fe7
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjseward
bugs1364179
milestone55.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 1364179 - initialise AutoPreserveAspectRatioOverride::mDidOverride r=jseward
dom/svg/SVGSVGElement.h
--- a/dom/svg/SVGSVGElement.h
+++ b/dom/svg/SVGSVGElement.h
@@ -428,16 +428,17 @@ private:
 
 class MOZ_RAII AutoPreserveAspectRatioOverride
 {
 public:
   AutoPreserveAspectRatioOverride(const Maybe<SVGImageContext>& aSVGContext,
                                   dom::SVGSVGElement* aRootElem
                                   MOZ_GUARD_OBJECT_NOTIFIER_PARAM)
     : mRootElem(aRootElem)
+    , mDidOverride(false)
   {
     MOZ_GUARD_OBJECT_NOTIFIER_INIT;
     MOZ_ASSERT(mRootElem, "No SVG node to manage?");
 
     if (aSVGContext.isSome() &&
         aSVGContext->GetPreserveAspectRatio().isSome()) {
       // Override preserveAspectRatio in our helper document.
       // XXXdholbert We should technically be overriding the helper doc's clip