2017-06-14 15:38:10 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
2018-12-28 05:47:10 +03:00
|
|
|
#include "mozilla/dom/SVGViewportElement.h"
|
|
|
|
|
2017-06-14 15:38:10 +03:00
|
|
|
#include <stdint.h>
|
2019-01-25 02:40:25 +03:00
|
|
|
#include "mozilla/AlreadyAddRefed.h"
|
2017-06-14 15:38:10 +03:00
|
|
|
#include "mozilla/ArrayUtils.h"
|
|
|
|
#include "mozilla/ContentEvents.h"
|
|
|
|
#include "mozilla/EventDispatcher.h"
|
2021-04-09 16:10:55 +03:00
|
|
|
#include "mozilla/FloatingPoint.h"
|
2017-06-14 15:38:10 +03:00
|
|
|
#include "mozilla/Likely.h"
|
2019-01-23 16:48:08 +03:00
|
|
|
#include "mozilla/SMILTypes.h"
|
|
|
|
#include "mozilla/SVGContentUtils.h"
|
|
|
|
#include "mozilla/dom/Document.h"
|
2018-02-02 16:21:33 +03:00
|
|
|
#include "mozilla/dom/SVGLengthBinding.h"
|
2017-06-14 15:38:10 +03:00
|
|
|
#include "mozilla/dom/SVGViewElement.h"
|
|
|
|
|
|
|
|
#include "DOMSVGLength.h"
|
|
|
|
#include "DOMSVGPoint.h"
|
|
|
|
#include "nsContentUtils.h"
|
|
|
|
#include "nsFrameSelection.h"
|
|
|
|
#include "nsError.h"
|
|
|
|
#include "nsGkAtoms.h"
|
|
|
|
#include "nsIFrame.h"
|
|
|
|
#include "nsLayoutUtils.h"
|
|
|
|
#include "nsStyleUtil.h"
|
|
|
|
|
|
|
|
#include <algorithm>
|
|
|
|
#include "prtime.h"
|
|
|
|
|
|
|
|
using namespace mozilla::gfx;
|
|
|
|
|
2022-05-09 23:41:17 +03:00
|
|
|
namespace mozilla::dom {
|
2017-06-14 15:38:10 +03:00
|
|
|
|
2018-12-21 11:58:14 +03:00
|
|
|
SVGElement::LengthInfo SVGViewportElement::sLengthInfo[4] = {
|
2018-03-29 12:45:24 +03:00
|
|
|
{nsGkAtoms::x, 0, SVGLength_Binding::SVG_LENGTHTYPE_NUMBER,
|
|
|
|
SVGContentUtils::X},
|
|
|
|
{nsGkAtoms::y, 0, SVGLength_Binding::SVG_LENGTHTYPE_NUMBER,
|
|
|
|
SVGContentUtils::Y},
|
|
|
|
{nsGkAtoms::width, 100, SVGLength_Binding::SVG_LENGTHTYPE_PERCENTAGE,
|
|
|
|
SVGContentUtils::X},
|
|
|
|
{nsGkAtoms::height, 100, SVGLength_Binding::SVG_LENGTHTYPE_PERCENTAGE,
|
|
|
|
SVGContentUtils::Y},
|
2017-06-14 15:38:10 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// Implementation
|
|
|
|
|
2018-09-21 23:45:49 +03:00
|
|
|
SVGViewportElement::SVGViewportElement(
|
|
|
|
already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo)
|
|
|
|
: SVGGraphicsElement(std::move(aNodeInfo)),
|
2017-06-14 15:38:10 +03:00
|
|
|
mViewportWidth(0),
|
|
|
|
mViewportHeight(0),
|
|
|
|
mHasChildrenOnlyTransform(false) {}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
|
|
|
|
already_AddRefed<SVGAnimatedRect> SVGViewportElement::ViewBox() {
|
|
|
|
return mViewBox.ToSVGAnimatedRect(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
already_AddRefed<DOMSVGAnimatedPreserveAspectRatio>
|
|
|
|
SVGViewportElement::PreserveAspectRatio() {
|
|
|
|
return mPreserveAspectRatio.ToDOMAnimatedPreserveAspectRatio(this);
|
|
|
|
}
|
|
|
|
|
2020-08-08 18:47:04 +03:00
|
|
|
bool SVGViewportElement::IsNodeOfType(uint32_t aFlags) const {
|
|
|
|
return !(aFlags & ~eUSE_TARGET);
|
|
|
|
}
|
|
|
|
|
2017-06-14 15:38:10 +03:00
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// nsIContent methods
|
|
|
|
|
|
|
|
NS_IMETHODIMP_(bool)
|
2017-10-03 01:05:19 +03:00
|
|
|
SVGViewportElement::IsAttributeMapped(const nsAtom* name) const {
|
2017-06-14 15:38:10 +03:00
|
|
|
// We want to map the 'width' and 'height' attributes into style for
|
|
|
|
// outer-<svg>, except when the attributes aren't set (since their default
|
|
|
|
// values of '100%' can cause unexpected and undesirable behaviour for SVG
|
2018-12-21 11:58:14 +03:00
|
|
|
// inline in HTML). We rely on SVGElement::UpdateContentStyleRule() to
|
2017-06-14 15:38:10 +03:00
|
|
|
// prevent mapping of the default values into style (it only maps attributes
|
2018-12-21 11:58:14 +03:00
|
|
|
// that are set). We also rely on a check in SVGElement::
|
2017-06-14 15:38:10 +03:00
|
|
|
// UpdateContentStyleRule() to prevent us mapping the attributes when they're
|
|
|
|
// given a <length> value that is not currently recognized by the SVG
|
|
|
|
// specification.
|
|
|
|
|
|
|
|
if (!IsInner() && (name == nsGkAtoms::width || name == nsGkAtoms::height)) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const MappedAttributeEntry* const map[] = {sColorMap,
|
|
|
|
sFEFloodMap,
|
|
|
|
sFillStrokeMap,
|
|
|
|
sFiltersMap,
|
|
|
|
sFontSpecificationMap,
|
|
|
|
sGradientStopMap,
|
|
|
|
sGraphicsMap,
|
|
|
|
sLightingEffectsMap,
|
|
|
|
sMarkersMap,
|
|
|
|
sTextContentElementsMap,
|
|
|
|
sViewportsMap};
|
|
|
|
|
|
|
|
return FindAttributeDependence(name, map) ||
|
|
|
|
SVGGraphicsElement::IsAttributeMapped(name);
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
2018-12-21 11:58:14 +03:00
|
|
|
// SVGElement overrides
|
2017-06-14 15:38:10 +03:00
|
|
|
|
|
|
|
// Helper for GetViewBoxTransform on root <svg> node
|
|
|
|
// * aLength: internal value for our <svg> width or height attribute.
|
|
|
|
// * aViewportLength: length of the corresponding dimension of the viewport.
|
|
|
|
// * aSelf: the outermost <svg> node itself.
|
|
|
|
// NOTE: aSelf is not an ancestor viewport element, so it can't be used to
|
|
|
|
// resolve percentage lengths. (It can only be used to resolve
|
|
|
|
// 'em'/'ex'-valued units).
|
|
|
|
inline float ComputeSynthesizedViewBoxDimension(
|
2019-04-09 23:04:33 +03:00
|
|
|
const SVGAnimatedLength& aLength, float aViewportLength,
|
2017-06-14 15:38:10 +03:00
|
|
|
const SVGViewportElement* aSelf) {
|
|
|
|
if (aLength.IsPercentage()) {
|
|
|
|
return aViewportLength * aLength.GetAnimValInSpecifiedUnits() / 100.0f;
|
|
|
|
}
|
|
|
|
|
|
|
|
return aLength.GetAnimValue(const_cast<SVGViewportElement*>(aSelf));
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// public helpers:
|
|
|
|
|
|
|
|
void SVGViewportElement::UpdateHasChildrenOnlyTransform() {
|
|
|
|
bool hasChildrenOnlyTransform =
|
|
|
|
HasViewBoxOrSyntheticViewBox() ||
|
2020-09-10 02:51:51 +03:00
|
|
|
(IsRootSVGSVGElement() &&
|
|
|
|
static_cast<SVGSVGElement*>(this)->IsScaledOrTranslated());
|
2017-06-14 15:38:10 +03:00
|
|
|
mHasChildrenOnlyTransform = hasChildrenOnlyTransform;
|
|
|
|
}
|
|
|
|
|
|
|
|
void SVGViewportElement::ChildrenOnlyTransformChanged(uint32_t aFlags) {
|
|
|
|
// Avoid wasteful calls:
|
|
|
|
MOZ_ASSERT(!(GetPrimaryFrame()->GetStateBits() & NS_FRAME_IS_NONDISPLAY),
|
|
|
|
"Non-display SVG frames don't maintain overflow rects");
|
|
|
|
|
|
|
|
nsChangeHint changeHint;
|
|
|
|
|
|
|
|
bool hadChildrenOnlyTransform = mHasChildrenOnlyTransform;
|
|
|
|
|
|
|
|
UpdateHasChildrenOnlyTransform();
|
|
|
|
|
|
|
|
if (hadChildrenOnlyTransform != mHasChildrenOnlyTransform) {
|
|
|
|
// Reconstruct the frame tree to handle stacking context changes:
|
|
|
|
// XXXjwatt don't do this for root-<svg> or even outer-<svg>?
|
|
|
|
changeHint = nsChangeHint_ReconstructFrame;
|
|
|
|
} else {
|
|
|
|
// We just assume the old and new transforms are different.
|
|
|
|
changeHint = nsChangeHint(nsChangeHint_UpdateOverflow |
|
|
|
|
nsChangeHint_ChildrenOnlyTransform);
|
|
|
|
}
|
|
|
|
|
|
|
|
// If we're not reconstructing the frame tree, then we only call
|
|
|
|
// PostRestyleEvent if we're not being called under reflow to avoid recursing
|
2020-07-09 04:33:33 +03:00
|
|
|
// to death. See bug 767056 comments 10 and 12. Since our SVGOuterSVGFrame
|
2017-06-14 15:38:10 +03:00
|
|
|
// is being reflowed we're going to invalidate and repaint its entire area
|
|
|
|
// anyway (which will include our children).
|
|
|
|
if ((changeHint & nsChangeHint_ReconstructFrame) ||
|
|
|
|
!(aFlags & eDuringReflow)) {
|
2019-03-14 14:47:50 +03:00
|
|
|
nsLayoutUtils::PostRestyleEvent(this, RestyleHint{0}, changeHint);
|
2017-06-14 15:38:10 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
gfx::Matrix SVGViewportElement::GetViewBoxTransform() const {
|
|
|
|
float viewportWidth, viewportHeight;
|
|
|
|
if (IsInner()) {
|
2019-05-27 09:46:53 +03:00
|
|
|
SVGElement* self = const_cast<SVGViewportElement*>(this);
|
|
|
|
viewportWidth = mLengthAttributes[ATTR_WIDTH].GetAnimValue(self);
|
|
|
|
viewportHeight = mLengthAttributes[ATTR_HEIGHT].GetAnimValue(self);
|
2017-06-14 15:38:10 +03:00
|
|
|
} else {
|
|
|
|
viewportWidth = mViewportWidth;
|
|
|
|
viewportHeight = mViewportHeight;
|
|
|
|
}
|
|
|
|
|
2021-04-09 16:10:55 +03:00
|
|
|
if (!IsFinite(viewportWidth) || viewportWidth <= 0.0f ||
|
|
|
|
!IsFinite(viewportHeight) || viewportHeight <= 0.0f) {
|
2017-06-14 15:38:10 +03:00
|
|
|
return gfx::Matrix(0.0, 0.0, 0.0, 0.0, 0.0, 0.0); // singular
|
|
|
|
}
|
|
|
|
|
2019-04-10 07:08:14 +03:00
|
|
|
SVGViewBox viewBox = GetViewBoxWithSynthesis(viewportWidth, viewportHeight);
|
2017-06-14 15:38:10 +03:00
|
|
|
|
2021-04-09 16:10:55 +03:00
|
|
|
if (!IsFinite(viewBox.width) || viewBox.width <= 0.0f ||
|
|
|
|
!IsFinite(viewBox.height) || viewBox.height <= 0.0f) {
|
2017-06-14 15:38:10 +03:00
|
|
|
return gfx::Matrix(0.0, 0.0, 0.0, 0.0, 0.0, 0.0); // singular
|
|
|
|
}
|
|
|
|
|
|
|
|
return SVGContentUtils::GetViewBoxTransform(
|
|
|
|
viewportWidth, viewportHeight, viewBox.x, viewBox.y, viewBox.width,
|
|
|
|
viewBox.height, GetPreserveAspectRatioWithOverride());
|
|
|
|
}
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// SVGViewportElement
|
|
|
|
|
|
|
|
float SVGViewportElement::GetLength(uint8_t aCtxType) {
|
2019-04-10 07:08:14 +03:00
|
|
|
const SVGViewBox* viewbox = GetViewBoxInternal().HasRect()
|
|
|
|
? &GetViewBoxInternal().GetAnimValue()
|
|
|
|
: nullptr;
|
2017-06-14 15:38:10 +03:00
|
|
|
|
2019-03-08 10:27:24 +03:00
|
|
|
float h = 0.0f, w = 0.0f;
|
|
|
|
bool shouldComputeWidth =
|
|
|
|
(aCtxType == SVGContentUtils::X || aCtxType == SVGContentUtils::XY),
|
|
|
|
shouldComputeHeight =
|
|
|
|
(aCtxType == SVGContentUtils::Y || aCtxType == SVGContentUtils::XY);
|
|
|
|
|
2017-06-14 15:38:10 +03:00
|
|
|
if (viewbox) {
|
|
|
|
w = viewbox->width;
|
|
|
|
h = viewbox->height;
|
|
|
|
} else if (IsInner()) {
|
2019-05-27 09:46:53 +03:00
|
|
|
// Resolving length for inner <svg> is exactly the same as other
|
|
|
|
// ordinary element. We shouldn't use the SVGViewportElement overload
|
|
|
|
// of GetAnimValue().
|
|
|
|
SVGElement* self = this;
|
2019-03-08 10:27:24 +03:00
|
|
|
if (shouldComputeWidth) {
|
2019-05-27 09:46:53 +03:00
|
|
|
w = mLengthAttributes[ATTR_WIDTH].GetAnimValue(self);
|
2019-03-08 10:27:24 +03:00
|
|
|
}
|
|
|
|
if (shouldComputeHeight) {
|
2019-05-27 09:46:53 +03:00
|
|
|
h = mLengthAttributes[ATTR_HEIGHT].GetAnimValue(self);
|
2019-03-08 10:27:24 +03:00
|
|
|
}
|
2017-06-14 15:38:10 +03:00
|
|
|
} else if (ShouldSynthesizeViewBox()) {
|
2019-03-08 10:27:24 +03:00
|
|
|
if (shouldComputeWidth) {
|
|
|
|
w = ComputeSynthesizedViewBoxDimension(mLengthAttributes[ATTR_WIDTH],
|
|
|
|
mViewportWidth, this);
|
|
|
|
}
|
|
|
|
if (shouldComputeHeight) {
|
|
|
|
h = ComputeSynthesizedViewBoxDimension(mLengthAttributes[ATTR_HEIGHT],
|
|
|
|
mViewportHeight, this);
|
|
|
|
}
|
2017-06-14 15:38:10 +03:00
|
|
|
} else {
|
|
|
|
w = mViewportWidth;
|
|
|
|
h = mViewportHeight;
|
|
|
|
}
|
|
|
|
|
|
|
|
w = std::max(w, 0.0f);
|
|
|
|
h = std::max(h, 0.0f);
|
|
|
|
|
|
|
|
switch (aCtxType) {
|
|
|
|
case SVGContentUtils::X:
|
|
|
|
return w;
|
|
|
|
case SVGContentUtils::Y:
|
|
|
|
return h;
|
|
|
|
case SVGContentUtils::XY:
|
|
|
|
return float(SVGContentUtils::ComputeNormalizedHypotenuse(w, h));
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
2018-12-21 11:58:14 +03:00
|
|
|
// SVGElement methods
|
2017-06-14 15:38:10 +03:00
|
|
|
|
2019-02-26 01:05:29 +03:00
|
|
|
/* virtual */
|
|
|
|
gfxMatrix SVGViewportElement::PrependLocalTransformsTo(
|
2017-06-14 15:38:10 +03:00
|
|
|
const gfxMatrix& aMatrix, SVGTransformTypes aWhich) const {
|
|
|
|
// 'transform' attribute (or an override from a fragment identifier):
|
|
|
|
gfxMatrix userToParent;
|
|
|
|
|
|
|
|
if (aWhich == eUserSpaceToParent || aWhich == eAllTransforms) {
|
2020-02-25 23:03:26 +03:00
|
|
|
userToParent = GetUserToParentTransform(mAnimateMotionTransform.get(),
|
2017-06-14 15:38:10 +03:00
|
|
|
GetTransformInternal());
|
|
|
|
if (aWhich == eUserSpaceToParent) {
|
|
|
|
return userToParent * aMatrix;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
gfxMatrix childToUser;
|
|
|
|
|
|
|
|
if (IsInner()) {
|
|
|
|
float x, y;
|
|
|
|
const_cast<SVGViewportElement*>(this)->GetAnimatedLengthValues(&x, &y,
|
|
|
|
nullptr);
|
|
|
|
childToUser = ThebesMatrix(GetViewBoxTransform().PostTranslate(x, y));
|
2020-09-10 02:51:51 +03:00
|
|
|
} else if (IsRootSVGSVGElement()) {
|
2020-08-25 17:38:32 +03:00
|
|
|
const SVGSVGElement* svg = static_cast<const SVGSVGElement*>(this);
|
|
|
|
const SVGPoint& translate = svg->GetCurrentTranslate();
|
|
|
|
float scale = svg->CurrentScale();
|
2017-06-14 15:38:10 +03:00
|
|
|
childToUser =
|
|
|
|
ThebesMatrix(GetViewBoxTransform()
|
|
|
|
.PostScale(scale, scale)
|
|
|
|
.PostTranslate(translate.GetX(), translate.GetY()));
|
|
|
|
} else {
|
|
|
|
// outer-<svg>, but inline in some other content:
|
|
|
|
childToUser = ThebesMatrix(GetViewBoxTransform());
|
|
|
|
}
|
|
|
|
|
|
|
|
if (aWhich == eAllTransforms) {
|
|
|
|
return childToUser * userToParent * aMatrix;
|
|
|
|
}
|
|
|
|
|
|
|
|
MOZ_ASSERT(aWhich == eChildToUserSpace, "Unknown TransformTypes");
|
|
|
|
|
|
|
|
// The following may look broken because pre-multiplying our eChildToUserSpace
|
|
|
|
// transform with another matrix without including our eUserSpaceToParent
|
|
|
|
// transform between the two wouldn't make sense. We don't expect that to
|
|
|
|
// ever happen though. We get here either when the identity matrix has been
|
|
|
|
// passed because our caller just wants our eChildToUserSpace transform, or
|
|
|
|
// when our eUserSpaceToParent transform has already been multiplied into the
|
|
|
|
// matrix that our caller passes (such as when we're called from PaintSVG).
|
|
|
|
return childToUser * aMatrix;
|
|
|
|
}
|
|
|
|
|
2019-02-26 01:05:29 +03:00
|
|
|
/* virtual */
|
|
|
|
bool SVGViewportElement::HasValidDimensions() const {
|
2017-06-14 15:38:10 +03:00
|
|
|
return !IsInner() ||
|
|
|
|
((!mLengthAttributes[ATTR_WIDTH].IsExplicitlySet() ||
|
|
|
|
mLengthAttributes[ATTR_WIDTH].GetAnimValInSpecifiedUnits() > 0) &&
|
|
|
|
(!mLengthAttributes[ATTR_HEIGHT].IsExplicitlySet() ||
|
|
|
|
mLengthAttributes[ATTR_HEIGHT].GetAnimValInSpecifiedUnits() > 0));
|
|
|
|
}
|
|
|
|
|
2019-04-10 07:08:14 +03:00
|
|
|
SVGAnimatedViewBox* SVGViewportElement::GetAnimatedViewBox() {
|
|
|
|
return &mViewBox;
|
|
|
|
}
|
2017-06-14 15:38:10 +03:00
|
|
|
|
2019-04-10 07:08:14 +03:00
|
|
|
SVGAnimatedPreserveAspectRatio*
|
|
|
|
SVGViewportElement::GetAnimatedPreserveAspectRatio() {
|
2017-06-14 15:38:10 +03:00
|
|
|
return &mPreserveAspectRatio;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool SVGViewportElement::ShouldSynthesizeViewBox() const {
|
2019-04-10 07:08:14 +03:00
|
|
|
MOZ_ASSERT(!HasViewBox(), "Should only be called if we lack a viewBox");
|
2017-06-14 15:38:10 +03:00
|
|
|
|
2020-09-10 02:51:51 +03:00
|
|
|
return IsRootSVGSVGElement() && OwnerDoc()->IsBeingUsedAsImage();
|
2017-06-14 15:38:10 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// implementation helpers
|
|
|
|
|
2019-04-10 07:08:14 +03:00
|
|
|
SVGViewBox SVGViewportElement::GetViewBoxWithSynthesis(
|
2017-06-14 15:38:10 +03:00
|
|
|
float aViewportWidth, float aViewportHeight) const {
|
|
|
|
if (GetViewBoxInternal().HasRect()) {
|
|
|
|
return GetViewBoxInternal().GetAnimValue();
|
|
|
|
}
|
|
|
|
|
|
|
|
if (ShouldSynthesizeViewBox()) {
|
|
|
|
// Special case -- fake a viewBox, using height & width attrs.
|
|
|
|
// (Use |this| as context, since if we get here, we're outermost <svg>.)
|
2019-04-10 07:08:14 +03:00
|
|
|
return SVGViewBox(
|
2017-06-14 15:38:10 +03:00
|
|
|
0, 0,
|
|
|
|
ComputeSynthesizedViewBoxDimension(mLengthAttributes[ATTR_WIDTH],
|
|
|
|
mViewportWidth, this),
|
|
|
|
ComputeSynthesizedViewBoxDimension(mLengthAttributes[ATTR_HEIGHT],
|
|
|
|
mViewportHeight, this));
|
|
|
|
}
|
|
|
|
|
|
|
|
// No viewBox attribute, so we shouldn't auto-scale. This is equivalent
|
|
|
|
// to having a viewBox that exactly matches our viewport size.
|
2019-04-10 07:08:14 +03:00
|
|
|
return SVGViewBox(0, 0, aViewportWidth, aViewportHeight);
|
2017-06-14 15:38:10 +03:00
|
|
|
}
|
|
|
|
|
2018-12-21 11:58:14 +03:00
|
|
|
SVGElement::LengthAttributesInfo SVGViewportElement::GetLengthInfo() {
|
2017-06-14 15:38:10 +03:00
|
|
|
return LengthAttributesInfo(mLengthAttributes, sLengthInfo,
|
|
|
|
ArrayLength(sLengthInfo));
|
|
|
|
}
|
|
|
|
|
2022-05-09 23:41:17 +03:00
|
|
|
} // namespace mozilla::dom
|