Bug 1369929 - Do not increase the indent twice in the TreeAutoIndent copy constructor. r=kats
MozReview-Commit-ID: BVudzxWZnQS
--- 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();
}