diff --git a/mozilla/content/base/src/nsStyleContext.cpp b/mozilla/content/base/src/nsStyleContext.cpp index edc98008e9c..d3427b91d38 100644 --- a/mozilla/content/base/src/nsStyleContext.cpp +++ b/mozilla/content/base/src/nsStyleContext.cpp @@ -421,6 +421,14 @@ nsStyleContext::GetUniqueStyleData(nsIPresContext* aPresContext, const nsStyleSt mBits &= ~NS_STYLE_INHERIT_TEXT; break; } + case eStyleStruct_TextReset: { + const nsStyleTextReset* reset = (const nsStyleTextReset*)GetStyleData(aSID); + nsStyleTextReset* newReset = new (aPresContext) nsStyleTextReset(*reset); + SetStyle(aSID, *newReset); + result = newReset; + mBits &= ~NS_STYLE_INHERIT_TEXT_RESET; + break; + } default: NS_ERROR("Struct type not supported. Please find another way to do this if you can!\n"); } diff --git a/mozilla/layout/style/nsStyleContext.cpp b/mozilla/layout/style/nsStyleContext.cpp index edc98008e9c..d3427b91d38 100644 --- a/mozilla/layout/style/nsStyleContext.cpp +++ b/mozilla/layout/style/nsStyleContext.cpp @@ -421,6 +421,14 @@ nsStyleContext::GetUniqueStyleData(nsIPresContext* aPresContext, const nsStyleSt mBits &= ~NS_STYLE_INHERIT_TEXT; break; } + case eStyleStruct_TextReset: { + const nsStyleTextReset* reset = (const nsStyleTextReset*)GetStyleData(aSID); + nsStyleTextReset* newReset = new (aPresContext) nsStyleTextReset(*reset); + SetStyle(aSID, *newReset); + result = newReset; + mBits &= ~NS_STYLE_INHERIT_TEXT_RESET; + break; + } default: NS_ERROR("Struct type not supported. Please find another way to do this if you can!\n"); }