Bug 1369929 - Do not increase the indent twice in the TreeAutoIndent copy constructor. r=kats draft
authorBotond Ballo <botond@mozilla.com>
Mon, 05 Jun 2017 12:42:28 -0400
changeset 589099 ff590dc7e5aa31f6d93baf91f8e8df2f27c95628
parent 589097 f0cf90be411a15e106457c06609c377082259af0
child 631768 127e7d2d7967811b2538e62323c35795b3e95c30
push id62251
push userbballo@mozilla.com
push dateMon, 05 Jun 2017 16:43:05 +0000
reviewerskats
bugs1369929
milestone55.0a1
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();
   }