Bug 1369929 - Do not increase the indent twice in the TreeAutoIndent copy constructor. r=kats
authorBotond Ballo <botond@mozilla.com>
Mon, 05 Jun 2017 12:42:28 -0400
changeset 410497 dd1ece6b618002addfc032d4d040e66b0b0d9845
parent 410496 6af1b1e458f0fb9927a4e11ce366b047ef6641f6
child 410498 f9acc145b45ee96a24859b93bd5389bde4925c5e
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)
reviewerskats
bugs1369929
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 1369929 - Do not increase the indent twice in the TreeAutoIndent copy constructor. r=kats MozReview-Commit-ID: BVudzxWZnQS
gfx/2d/Logging.h
--- a/gfx/2d/Logging.h
+++ b/gfx/2d/Logging.h
@@ -687,17 +687,17 @@ private:
 class TreeAutoIndent
 {
 public:
   explicit TreeAutoIndent(TreeLog& aTreeLog) : mTreeLog(aTreeLog) {
     mTreeLog.IncreaseIndent();
   }
 
   TreeAutoIndent(const TreeAutoIndent& aTreeAutoIndent) :
-      TreeAutoIndent(aTreeAutoIndent.mTreeLog) {
+      mTreeLog(aTreeAutoIndent.mTreeLog) {
     mTreeLog.IncreaseIndent();
   }
 
   TreeAutoIndent& operator=(const TreeAutoIndent& aTreeAutoIndent) = delete;
 
   ~TreeAutoIndent() {
     mTreeLog.DecreaseIndent();
   }