Bug 1267524 Part 13 - Use member initializer list for nsStyleTextReset.
MozReview-Commit-ID: GqlFSXXCSZ9
--- a/layout/style/nsStyleStruct.cpp
+++ b/layout/style/nsStyleStruct.cpp
@@ -3497,27 +3497,27 @@ nsresult nsStyleContent::AllocateContent
}
// --------------------
// nsStyleTextReset
//
nsStyleTextReset::nsStyleTextReset(StyleStructContext aContext)
-{
+ : mTextDecorationLine(NS_STYLE_TEXT_DECORATION_LINE_NONE)
+ , mUnicodeBidi(NS_STYLE_UNICODE_BIDI_NORMAL)
+ , mTextDecorationStyle(NS_STYLE_TEXT_DECORATION_STYLE_SOLID |
+ BORDER_COLOR_FOREGROUND)
+ , mTextDecorationColor(NS_RGB(0, 0, 0))
+{
MOZ_COUNT_CTOR(nsStyleTextReset);
- mTextDecorationLine = NS_STYLE_TEXT_DECORATION_LINE_NONE;
- mTextDecorationColor = NS_RGB(0,0,0);
- mTextDecorationStyle =
- NS_STYLE_TEXT_DECORATION_STYLE_SOLID | BORDER_COLOR_FOREGROUND;
- mUnicodeBidi = NS_STYLE_UNICODE_BIDI_NORMAL;
}
-nsStyleTextReset::nsStyleTextReset(const nsStyleTextReset& aSource)
-{
+nsStyleTextReset::nsStyleTextReset(const nsStyleTextReset& aSource)
+{
MOZ_COUNT_CTOR(nsStyleTextReset);
*this = aSource;
}
nsStyleTextReset::~nsStyleTextReset(void)
{
MOZ_COUNT_DTOR(nsStyleTextReset);
}