1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-26 13:58:49 +00:00

Issue #2548 - Part 1 - Implement MathML DOM and pre-requisites. https://bugzilla.mozilla.org/show_bug.cgi?id=1571487 Introduce interface mixins. https://bugzilla.mozilla.org/show_bug.cgi?id=1414372 Switch XPathEvaluator to using IDL mixins and remaining users of IDL "implements" over to mixin syntax. https://bugzilla.mozilla.org/show_bug.cgi?id=1574195 Introduce GlobalEventHandlers/DocumentAndElementEventHandlers/ElementCSSInlineStyle mixin. https://bugzilla.mozilla.org/show_bug.cgi?id=1579457 Introduce DocumentAndElementEventHandlers to more closely align with the HTML spec. https://bugzilla.mozilla.org/show_bug.cgi?id=1330457 Remove the use of IsCallerChrome in FetchRequest. https://bugzilla.mozilla.org/show_bug.cgi?id=1335368

This commit is contained in:
Brian Smith
2024-09-25 19:18:42 -05:00
committed by roytam1
parent fdee9737a8
commit 85600c7378
145 changed files with 1060 additions and 620 deletions
+6 -7
View File
@@ -5,7 +5,7 @@
#include "nsMathMLmpaddedFrame.h"
#include "nsMathMLElement.h"
#include "mozilla/dom/MathMLElement.h"
#include "mozilla/gfx/2D.h"
#include <algorithm>
@@ -211,9 +211,8 @@ nsMathMLmpaddedFrame::ParseAttribute(nsString& aString,
else if (!gotPercent) { // percentage can only apply to a pseudo-unit
// see if the unit is a named-space
if (nsMathMLElement::ParseNamedSpaceValue(unit, aCSSValue,
nsMathMLElement::
PARSE_ALLOW_NEGATIVE)) {
if (dom::MathMLElement::ParseNamedSpaceValue(unit, aCSSValue,
dom::MathMLElement::PARSE_ALLOW_NEGATIVE)) {
// re-scale properly, and we know that the unit of the named-space is 'em'
floatValue *= aCSSValue.GetFloatValue();
aCSSValue.SetFloatValue(floatValue, eCSSUnit_EM);
@@ -225,9 +224,9 @@ nsMathMLmpaddedFrame::ParseAttribute(nsString& aString,
// We are not supposed to have a unitless, percent, negative or namedspace
// value here.
number.Append(unit); // leave the sign out if it was there
if (nsMathMLElement::ParseNumericValue(number, aCSSValue,
nsMathMLElement::
PARSE_SUPPRESS_WARNINGS, nullptr))
if (dom::MathMLElement::ParseNumericValue(number, aCSSValue,
dom::MathMLElement::PARSE_SUPPRESS_WARNINGS,
nullptr))
return true;
}