diff --git a/dom/base/nsDeprecatedOperationList.h b/dom/base/nsDeprecatedOperationList.h
index a0ab81ec3221..f153343e3f30 100644
--- a/dom/base/nsDeprecatedOperationList.h
+++ b/dom/base/nsDeprecatedOperationList.h
@@ -46,7 +46,6 @@ DEPRECATED_OPERATION(MozfullscreenchangeDeprecatedPrefix)
DEPRECATED_OPERATION(MozfullscreenerrorDeprecatedPrefix)
DEPRECATED_OPERATION(External_AddSearchProvider)
DEPRECATED_OPERATION(MouseEvent_MozPressure)
-DEPRECATED_OPERATION(MathML_DeprecatedAlignmentAttributes)
DEPRECATED_OPERATION(MathML_DeprecatedBevelledAttribute)
DEPRECATED_OPERATION(MathML_DeprecatedLineThicknessValue)
DEPRECATED_OPERATION(MathML_DeprecatedMathSizeValue)
diff --git a/dom/locales/en-US/chrome/dom/dom.properties b/dom/locales/en-US/chrome/dom/dom.properties
index 7af001885940..993f1108d118 100644
--- a/dom/locales/en-US/chrome/dom/dom.properties
+++ b/dom/locales/en-US/chrome/dom/dom.properties
@@ -373,8 +373,6 @@ MozfullscreenerrorDeprecatedPrefixWarning=onmozfullscreenerror is deprecated.
External_AddSearchProviderWarning=AddSearchProvider is deprecated.
# LOCALIZATION NOTE: Do not translate "MouseEvent.mozPressure" and "PointerEvent.pressure".
MouseEvent_MozPressureWarning=MouseEvent.mozPressure is deprecated. Use PointerEvent.pressure instead.
-# LOCALIZATION NOTE: Do not translate MathML, align, numalign and denomalign.
-MathML_DeprecatedAlignmentAttributesWarning=MathML attributes “align”, “numalign” and “denomalign” are deprecated values and will be removed at a future date.
# LOCALIZATION NOTE: Do not translate MathML and bevelled.
MathML_DeprecatedBevelledAttribute=MathML attribute “bevelled” is deprecated and may be removed at a future date.
# LOCALIZATION NOTE: Do not translate thin, medium, thick and linethickness.
diff --git a/layout/mathml/nsMathMLmfracFrame.cpp b/layout/mathml/nsMathMLmfracFrame.cpp
index a2407d5016e1..4c5d71b603f3 100644
--- a/layout/mathml/nsMathMLmfracFrame.cpp
+++ b/layout/mathml/nsMathMLmfracFrame.cpp
@@ -401,32 +401,6 @@ nsresult nsMathMLmfracFrame::PlaceInternal(DrawTarget* aDrawTarget,
nscoord dxDen = leftSpace + (width - sizeDen.Width()) / 2;
width += leftSpace + rightSpace;
- if (!StaticPrefs::mathml_deprecated_alignment_attributes_disabled()) {
- // see if the numalign attribute is there
- if (mContent->AsElement()->GetAttr(kNameSpaceID_None,
- nsGkAtoms::numalign_, value)) {
- mContent->OwnerDoc()->WarnOnceAbout(
- dom::DeprecatedOperations::eMathML_DeprecatedAlignmentAttributes);
- if (value.EqualsLiteral("left")) {
- dxNum = leftSpace;
- } else if (value.EqualsLiteral("right")) {
- dxNum = width - rightSpace - sizeNum.Width();
- }
- }
-
- // see if the denomalign attribute is there
- if (mContent->AsElement()->GetAttr(kNameSpaceID_None,
- nsGkAtoms::denomalign_, value)) {
- mContent->OwnerDoc()->WarnOnceAbout(
- dom::DeprecatedOperations::eMathML_DeprecatedAlignmentAttributes);
- if (value.EqualsLiteral("left")) {
- dxDen = leftSpace;
- } else if (value.EqualsLiteral("right")) {
- dxDen = width - rightSpace - sizeDen.Width();
- }
- }
- }
-
mBoundingMetrics.rightBearing =
std::max(dxNum + bmNum.rightBearing, dxDen + bmDen.rightBearing);
if (mBoundingMetrics.rightBearing < width - rightSpace)
diff --git a/layout/mathml/nsMathMLmunderoverFrame.cpp b/layout/mathml/nsMathMLmunderoverFrame.cpp
index 8bea79077ba7..92d36bf7876d 100644
--- a/layout/mathml/nsMathMLmunderoverFrame.cpp
+++ b/layout/mathml/nsMathMLmunderoverFrame.cpp
@@ -579,19 +579,6 @@ nsresult nsMathMLmunderoverFrame::Place(DrawTarget* aDrawTarget,
nscoord dxBase = 0, dxOver = 0, dxUnder = 0;
nsAutoString valueAlign;
- enum { center, left, right } alignPosition = center;
-
- if (!StaticPrefs::mathml_deprecated_alignment_attributes_disabled() &&
- mContent->AsElement()->GetAttr(kNameSpaceID_None, nsGkAtoms::align,
- valueAlign)) {
- mContent->OwnerDoc()->WarnOnceAbout(
- dom::DeprecatedOperations::eMathML_DeprecatedAlignmentAttributes);
- if (valueAlign.EqualsLiteral("left")) {
- alignPosition = left;
- } else if (valueAlign.EqualsLiteral("right")) {
- alignPosition = right;
- }
- }
//////////
// pass 1, do what does: attach the overscript on the base
@@ -607,23 +594,14 @@ nsresult nsMathMLmunderoverFrame::Place(DrawTarget* aDrawTarget,
if (NS_MATHML_EMBELLISH_IS_ACCENTOVER(mEmbellishData.flags)) {
mBoundingMetrics.width = bmBase.width;
- if (alignPosition == center) {
- dxOver += correction;
- }
+ dxOver += correction;
} else {
mBoundingMetrics.width = std::max(bmBase.width, overWidth);
- if (alignPosition == center) {
- dxOver += correction / 2;
- }
+ dxOver += correction / 2;
}
- if (alignPosition == center) {
- dxOver += (mBoundingMetrics.width - overWidth) / 2;
- dxBase = (mBoundingMetrics.width - bmBase.width) / 2;
- } else if (alignPosition == right) {
- dxOver += mBoundingMetrics.width - overWidth;
- dxBase = mBoundingMetrics.width - bmBase.width;
- }
+ dxOver += (mBoundingMetrics.width - overWidth) / 2;
+ dxBase = (mBoundingMetrics.width - bmBase.width) / 2;
mBoundingMetrics.ascent =
bmBase.ascent + overDelta1 + bmOver.ascent + bmOver.descent;
@@ -656,19 +634,13 @@ nsresult nsMathMLmunderoverFrame::Place(DrawTarget* aDrawTarget,
}
nscoord maxWidth = std::max(bmAnonymousBase.width, underWidth);
- if (alignPosition == center &&
- !NS_MATHML_EMBELLISH_IS_ACCENTUNDER(mEmbellishData.flags)) {
+ if (!NS_MATHML_EMBELLISH_IS_ACCENTUNDER(mEmbellishData.flags)) {
GetItalicCorrection(bmAnonymousBase, correction);
dxUnder += -correction / 2;
}
nscoord dxAnonymousBase = 0;
- if (alignPosition == center) {
- dxUnder += (maxWidth - underWidth) / 2;
- dxAnonymousBase = (maxWidth - bmAnonymousBase.width) / 2;
- } else if (alignPosition == right) {
- dxUnder += maxWidth - underWidth;
- dxAnonymousBase = maxWidth - bmAnonymousBase.width;
- }
+ dxUnder += (maxWidth - underWidth) / 2;
+ dxAnonymousBase = (maxWidth - bmAnonymousBase.width) / 2;
// adjust the offsets of the real base and overscript since their
// final offsets should be relative to us...
diff --git a/layout/mathml/tests/test_bug975681.html b/layout/mathml/tests/test_bug975681.html
index 093f9ab3871c..3db4f9ae4e48 100644
--- a/layout/mathml/tests/test_bug975681.html
+++ b/layout/mathml/tests/test_bug975681.html
@@ -32,24 +32,6 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=975681
-
-
-
-
-
-
-
-