2013-03-07 01:15:23 -08:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* 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/. */
|
|
|
|
|
|
|
|
#include "mozilla/dom/SVGFEImageElement.h"
|
2013-08-13 23:55:46 -07:00
|
|
|
|
2014-04-02 21:18:36 -07:00
|
|
|
#include "mozilla/EventStates.h"
|
2013-03-07 01:15:23 -08:00
|
|
|
#include "mozilla/dom/SVGFEImageElementBinding.h"
|
|
|
|
#include "mozilla/dom/SVGFilterElement.h"
|
2014-04-15 11:02:23 -07:00
|
|
|
#include "mozilla/gfx/2D.h"
|
|
|
|
#include "mozilla/RefPtr.h"
|
2013-08-13 23:55:46 -07:00
|
|
|
#include "nsContentUtils.h"
|
2013-03-07 01:15:23 -08:00
|
|
|
#include "nsLayoutUtils.h"
|
|
|
|
#include "nsSVGUtils.h"
|
|
|
|
#include "nsNetUtil.h"
|
2013-10-01 14:00:38 -07:00
|
|
|
#include "imgIContainer.h"
|
2013-11-27 03:25:29 -08:00
|
|
|
#include "gfx2DGlue.h"
|
2013-03-07 01:15:23 -08:00
|
|
|
|
2013-03-07 01:15:23 -08:00
|
|
|
NS_IMPL_NS_NEW_NAMESPACED_SVG_ELEMENT(FEImage)
|
2013-03-07 01:15:23 -08:00
|
|
|
|
2013-11-27 03:25:29 -08:00
|
|
|
using namespace mozilla::gfx;
|
|
|
|
|
2013-03-07 01:15:23 -08:00
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
2013-03-07 01:15:23 -08:00
|
|
|
JSObject*
|
2014-04-08 15:27:17 -07:00
|
|
|
SVGFEImageElement::WrapNode(JSContext *aCx)
|
2013-03-07 01:15:23 -08:00
|
|
|
{
|
Bug 991742 part 6. Remove the "aScope" argument of binding Wrap() methods. r=bholley
This patch was mostly generated with this command:
find . -name "*.h" -o -name "*.cpp" | xargs sed -e 's/Binding::Wrap(aCx, aScope, this/Binding::Wrap(aCx, this/' -e 's/Binding_workers::Wrap(aCx, aScope, this/Binding_workers::Wrap(aCx, this/' -e 's/Binding::Wrap(cx, scope, this/Binding::Wrap(cx, this/' -i ""
plus a few manual fixes to dom/bindings/Codegen.py, js/xpconnect/src/event_impl_gen.py, and a few C++ files that were not caught in the search-and-replace above.
2014-04-08 15:27:17 -07:00
|
|
|
return SVGFEImageElementBinding::Wrap(aCx, this);
|
2013-03-07 01:15:23 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
nsSVGElement::StringInfo SVGFEImageElement::sStringInfo[2] =
|
2013-03-07 01:15:23 -08:00
|
|
|
{
|
|
|
|
{ &nsGkAtoms::result, kNameSpaceID_None, true },
|
|
|
|
{ &nsGkAtoms::href, kNameSpaceID_XLink, true }
|
|
|
|
};
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// nsISupports methods
|
|
|
|
|
2014-04-27 00:06:00 -07:00
|
|
|
NS_IMPL_ISUPPORTS_INHERITED(SVGFEImageElement, SVGFEImageElementBase,
|
|
|
|
nsIDOMNode, nsIDOMElement, nsIDOMSVGElement,
|
|
|
|
imgINotificationObserver, nsIImageLoadingContent,
|
|
|
|
imgIOnloadBlocker)
|
2013-03-07 01:15:23 -08:00
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// Implementation
|
|
|
|
|
2014-06-19 19:01:40 -07:00
|
|
|
SVGFEImageElement::SVGFEImageElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo)
|
2013-03-07 01:15:23 -08:00
|
|
|
: SVGFEImageElementBase(aNodeInfo)
|
2013-03-07 01:15:23 -08:00
|
|
|
{
|
|
|
|
// We start out broken
|
|
|
|
AddStatesSilently(NS_EVENT_STATE_BROKEN);
|
|
|
|
}
|
|
|
|
|
2013-03-07 01:15:23 -08:00
|
|
|
SVGFEImageElement::~SVGFEImageElement()
|
2013-03-07 01:15:23 -08:00
|
|
|
{
|
|
|
|
DestroyImageLoadingContent();
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
|
|
|
|
nsresult
|
2013-03-07 01:15:23 -08:00
|
|
|
SVGFEImageElement::LoadSVGImage(bool aForce, bool aNotify)
|
2013-03-07 01:15:23 -08:00
|
|
|
{
|
|
|
|
// resolve href attribute
|
|
|
|
nsCOMPtr<nsIURI> baseURI = GetBaseURI();
|
|
|
|
|
|
|
|
nsAutoString href;
|
|
|
|
mStringAttributes[HREF].GetAnimValue(href, this);
|
|
|
|
href.Trim(" \t\n\r");
|
|
|
|
|
|
|
|
if (baseURI && !href.IsEmpty())
|
|
|
|
NS_MakeAbsoluteURI(href, href, baseURI);
|
|
|
|
|
|
|
|
// Make sure we don't get in a recursive death-spiral
|
|
|
|
nsIDocument* doc = OwnerDoc();
|
|
|
|
nsCOMPtr<nsIURI> hrefAsURI;
|
|
|
|
if (NS_SUCCEEDED(StringToURI(href, doc, getter_AddRefs(hrefAsURI)))) {
|
|
|
|
bool isEqual;
|
|
|
|
if (NS_SUCCEEDED(hrefAsURI->Equals(baseURI, &isEqual)) && isEqual) {
|
|
|
|
// Image URI matches our URI exactly! Bail out.
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-08-19 14:49:38 -07:00
|
|
|
return LoadImage(href, aForce, aNotify, eImageLoadType_Normal);
|
2013-03-07 01:15:23 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// nsIContent methods:
|
|
|
|
|
|
|
|
NS_IMETHODIMP_(bool)
|
2013-03-07 01:15:23 -08:00
|
|
|
SVGFEImageElement::IsAttributeMapped(const nsIAtom* name) const
|
2013-03-07 01:15:23 -08:00
|
|
|
{
|
|
|
|
static const MappedAttributeEntry* const map[] = {
|
|
|
|
sGraphicsMap
|
|
|
|
};
|
2013-03-07 01:15:23 -08:00
|
|
|
|
2013-03-07 01:15:23 -08:00
|
|
|
return FindAttributeDependence(name, map) ||
|
2013-03-07 01:15:23 -08:00
|
|
|
SVGFEImageElementBase::IsAttributeMapped(name);
|
2013-03-07 01:15:23 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
nsresult
|
2013-03-07 01:15:23 -08:00
|
|
|
SVGFEImageElement::AfterSetAttr(int32_t aNamespaceID, nsIAtom* aName,
|
|
|
|
const nsAttrValue* aValue, bool aNotify)
|
2013-03-07 01:15:23 -08:00
|
|
|
{
|
|
|
|
if (aNamespaceID == kNameSpaceID_XLink && aName == nsGkAtoms::href) {
|
|
|
|
|
|
|
|
// If there isn't a frame we still need to load the image in case
|
|
|
|
// the frame is created later e.g. by attaching to a document.
|
|
|
|
// If there is a frame then it should deal with loading as the image
|
|
|
|
// url may be animated.
|
|
|
|
if (!GetPrimaryFrame()) {
|
|
|
|
|
|
|
|
// Prevent setting image.src by exiting early
|
|
|
|
if (nsContentUtils::IsImageSrcSetDisabled()) {
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
if (aValue) {
|
|
|
|
LoadSVGImage(true, aNotify);
|
|
|
|
} else {
|
|
|
|
CancelImageRequests(aNotify);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-03-07 01:15:23 -08:00
|
|
|
return SVGFEImageElementBase::AfterSetAttr(aNamespaceID, aName,
|
|
|
|
aValue, aNotify);
|
2013-03-07 01:15:23 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2013-03-07 01:15:23 -08:00
|
|
|
SVGFEImageElement::MaybeLoadSVGImage()
|
2013-03-07 01:15:23 -08:00
|
|
|
{
|
|
|
|
if (mStringAttributes[HREF].IsExplicitlySet() &&
|
|
|
|
(NS_FAILED(LoadSVGImage(false, true)) ||
|
|
|
|
!LoadingEnabled())) {
|
|
|
|
CancelImageRequests(true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
nsresult
|
2013-03-07 01:15:23 -08:00
|
|
|
SVGFEImageElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent,
|
|
|
|
nsIContent* aBindingParent,
|
|
|
|
bool aCompileEventHandlers)
|
2013-03-07 01:15:23 -08:00
|
|
|
{
|
2013-03-07 01:15:23 -08:00
|
|
|
nsresult rv = SVGFEImageElementBase::BindToTree(aDocument, aParent,
|
|
|
|
aBindingParent,
|
|
|
|
aCompileEventHandlers);
|
2013-03-07 01:15:23 -08:00
|
|
|
NS_ENSURE_SUCCESS(rv, rv);
|
|
|
|
|
|
|
|
nsImageLoadingContent::BindToTree(aDocument, aParent, aBindingParent,
|
|
|
|
aCompileEventHandlers);
|
|
|
|
|
|
|
|
if (mStringAttributes[HREF].IsExplicitlySet()) {
|
|
|
|
// FIXME: Bug 660963 it would be nice if we could just have
|
|
|
|
// ClearBrokenState update our state and do it fast...
|
|
|
|
ClearBrokenState();
|
|
|
|
RemoveStatesSilently(NS_EVENT_STATE_BROKEN);
|
|
|
|
nsContentUtils::AddScriptRunner(
|
2013-03-07 01:15:23 -08:00
|
|
|
NS_NewRunnableMethod(this, &SVGFEImageElement::MaybeLoadSVGImage));
|
2013-03-07 01:15:23 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2013-03-07 01:15:23 -08:00
|
|
|
SVGFEImageElement::UnbindFromTree(bool aDeep, bool aNullParent)
|
2013-03-07 01:15:23 -08:00
|
|
|
{
|
|
|
|
nsImageLoadingContent::UnbindFromTree(aDeep, aNullParent);
|
2013-03-07 01:15:23 -08:00
|
|
|
SVGFEImageElementBase::UnbindFromTree(aDeep, aNullParent);
|
2013-03-07 01:15:23 -08:00
|
|
|
}
|
|
|
|
|
2014-04-02 21:18:36 -07:00
|
|
|
EventStates
|
2013-03-07 01:15:23 -08:00
|
|
|
SVGFEImageElement::IntrinsicState() const
|
2013-03-07 01:15:23 -08:00
|
|
|
{
|
2013-03-07 01:15:23 -08:00
|
|
|
return SVGFEImageElementBase::IntrinsicState() |
|
2013-03-07 01:15:23 -08:00
|
|
|
nsImageLoadingContent::ImageState();
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// nsIDOMNode methods
|
|
|
|
|
2013-03-07 01:15:23 -08:00
|
|
|
NS_IMPL_ELEMENT_CLONE_WITH_INIT(SVGFEImageElement)
|
2013-03-07 01:15:23 -08:00
|
|
|
|
2013-06-14 15:37:27 -07:00
|
|
|
already_AddRefed<SVGAnimatedString>
|
2013-03-07 01:15:23 -08:00
|
|
|
SVGFEImageElement::Href()
|
2013-03-07 01:15:23 -08:00
|
|
|
{
|
2013-03-07 01:15:23 -08:00
|
|
|
return mStringAttributes[HREF].ToDOMAnimatedString(this);
|
2013-03-07 01:15:23 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// nsIDOMSVGFEImageElement methods
|
|
|
|
|
2013-11-27 03:25:29 -08:00
|
|
|
FilterPrimitiveDescription
|
|
|
|
SVGFEImageElement::GetPrimitiveDescription(nsSVGFilterInstance* aInstance,
|
|
|
|
const IntRect& aFilterSubregion,
|
2014-01-08 01:30:03 -08:00
|
|
|
const nsTArray<bool>& aInputsAreTainted,
|
2013-11-28 06:38:43 -08:00
|
|
|
nsTArray<RefPtr<SourceSurface>>& aInputImages)
|
2013-03-07 01:15:23 -08:00
|
|
|
{
|
|
|
|
nsIFrame* frame = GetPrimaryFrame();
|
2013-11-27 03:25:29 -08:00
|
|
|
if (!frame) {
|
2014-03-19 19:12:43 -07:00
|
|
|
return FilterPrimitiveDescription(PrimitiveType::Empty);
|
2013-11-27 03:25:29 -08:00
|
|
|
}
|
2013-03-07 01:15:23 -08:00
|
|
|
|
|
|
|
nsCOMPtr<imgIRequest> currentRequest;
|
|
|
|
GetRequest(nsIImageLoadingContent::CURRENT_REQUEST,
|
|
|
|
getter_AddRefs(currentRequest));
|
|
|
|
|
|
|
|
nsCOMPtr<imgIContainer> imageContainer;
|
2013-11-27 03:25:29 -08:00
|
|
|
if (currentRequest) {
|
2013-03-07 01:15:23 -08:00
|
|
|
currentRequest->GetImage(getter_AddRefs(imageContainer));
|
2013-11-27 03:25:29 -08:00
|
|
|
}
|
2013-03-07 01:15:23 -08:00
|
|
|
|
2014-04-15 11:02:23 -07:00
|
|
|
RefPtr<SourceSurface> image;
|
2013-11-27 03:25:29 -08:00
|
|
|
if (imageContainer) {
|
2014-04-15 11:02:23 -07:00
|
|
|
image = imageContainer->GetFrame(imgIContainer::FRAME_CURRENT,
|
|
|
|
imgIContainer::FLAG_SYNC_DECODE);
|
2013-11-27 03:25:29 -08:00
|
|
|
}
|
2013-03-07 01:15:23 -08:00
|
|
|
|
2014-04-15 11:02:23 -07:00
|
|
|
if (!image) {
|
2014-03-19 19:12:43 -07:00
|
|
|
return FilterPrimitiveDescription(PrimitiveType::Empty);
|
2013-11-27 03:25:29 -08:00
|
|
|
}
|
2013-03-07 01:15:23 -08:00
|
|
|
|
2013-11-27 03:25:29 -08:00
|
|
|
IntSize nativeSize;
|
|
|
|
imageContainer->GetWidth(&nativeSize.width);
|
|
|
|
imageContainer->GetHeight(&nativeSize.height);
|
2013-03-07 01:15:23 -08:00
|
|
|
|
2013-12-29 22:50:17 -08:00
|
|
|
Matrix viewBoxTM =
|
2013-11-27 03:25:29 -08:00
|
|
|
SVGContentUtils::GetViewBoxTransform(aFilterSubregion.width, aFilterSubregion.height,
|
|
|
|
0, 0, nativeSize.width, nativeSize.height,
|
|
|
|
mPreserveAspectRatio);
|
2014-09-10 06:26:12 -07:00
|
|
|
Matrix TM = viewBoxTM;
|
|
|
|
TM.PostTranslate(aFilterSubregion.x, aFilterSubregion.y);
|
2013-03-07 01:15:23 -08:00
|
|
|
|
2013-11-27 03:25:29 -08:00
|
|
|
Filter filter = ToFilter(nsLayoutUtils::GetGraphicsFilterForFrame(frame));
|
2013-03-07 01:15:23 -08:00
|
|
|
|
2014-03-19 19:12:43 -07:00
|
|
|
FilterPrimitiveDescription descr(PrimitiveType::Image);
|
2013-11-27 03:25:29 -08:00
|
|
|
descr.Attributes().Set(eImageFilter, (uint32_t)filter);
|
|
|
|
descr.Attributes().Set(eImageTransform, TM);
|
2013-03-07 01:15:23 -08:00
|
|
|
|
2013-11-27 03:25:29 -08:00
|
|
|
// Append the image to aInputImages and store its index in the description.
|
|
|
|
size_t imageIndex = aInputImages.Length();
|
2013-11-28 06:38:43 -08:00
|
|
|
aInputImages.AppendElement(image);
|
2013-11-27 03:25:29 -08:00
|
|
|
descr.Attributes().Set(eImageInputIndex, (uint32_t)imageIndex);
|
2013-03-07 01:15:23 -08:00
|
|
|
|
2013-11-27 03:25:29 -08:00
|
|
|
return descr;
|
2013-03-07 01:15:23 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
bool
|
2013-03-07 01:15:23 -08:00
|
|
|
SVGFEImageElement::AttributeAffectsRendering(int32_t aNameSpaceID,
|
|
|
|
nsIAtom* aAttribute) const
|
2013-03-07 01:15:23 -08:00
|
|
|
{
|
|
|
|
// nsGkAtoms::href is deliberately omitted as the frame has special
|
|
|
|
// handling to load the image
|
2013-03-07 01:15:23 -08:00
|
|
|
return SVGFEImageElementBase::AttributeAffectsRendering(aNameSpaceID, aAttribute) ||
|
2013-03-07 01:15:23 -08:00
|
|
|
(aNameSpaceID == kNameSpaceID_None &&
|
|
|
|
aAttribute == nsGkAtoms::preserveAspectRatio);
|
|
|
|
}
|
|
|
|
|
2014-01-08 01:30:03 -08:00
|
|
|
bool
|
|
|
|
SVGFEImageElement::OutputIsTainted(const nsTArray<bool>& aInputsAreTainted,
|
|
|
|
nsIPrincipal* aReferencePrincipal)
|
|
|
|
{
|
|
|
|
nsresult rv;
|
|
|
|
nsCOMPtr<imgIRequest> currentRequest;
|
|
|
|
GetRequest(nsIImageLoadingContent::CURRENT_REQUEST,
|
|
|
|
getter_AddRefs(currentRequest));
|
|
|
|
|
|
|
|
if (!currentRequest) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
uint32_t status;
|
|
|
|
currentRequest->GetImageStatus(&status);
|
|
|
|
if ((status & imgIRequest::STATUS_LOAD_COMPLETE) == 0) {
|
|
|
|
// The load has not completed yet.
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
nsCOMPtr<nsIPrincipal> principal;
|
|
|
|
rv = currentRequest->GetImagePrincipal(getter_AddRefs(principal));
|
|
|
|
if (NS_FAILED(rv) || !principal) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
int32_t corsmode;
|
|
|
|
if (NS_SUCCEEDED(currentRequest->GetCORSMode(&corsmode)) &&
|
|
|
|
corsmode != imgIRequest::CORS_NONE) {
|
|
|
|
// If CORS was used to load the image, the page is allowed to read from it.
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2014-02-13 18:57:36 -08:00
|
|
|
if (aReferencePrincipal->Subsumes(principal)) {
|
2014-01-08 01:30:03 -08:00
|
|
|
// The page is allowed to read from the image.
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2013-03-07 01:15:23 -08:00
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// nsSVGElement methods
|
|
|
|
|
2013-03-07 01:15:23 -08:00
|
|
|
already_AddRefed<DOMSVGAnimatedPreserveAspectRatio>
|
|
|
|
SVGFEImageElement::PreserveAspectRatio()
|
|
|
|
{
|
|
|
|
nsRefPtr<DOMSVGAnimatedPreserveAspectRatio> ratio;
|
|
|
|
mPreserveAspectRatio.ToDOMAnimatedPreserveAspectRatio(getter_AddRefs(ratio), this);
|
|
|
|
return ratio.forget();
|
|
|
|
}
|
|
|
|
|
2013-03-07 01:15:23 -08:00
|
|
|
SVGAnimatedPreserveAspectRatio *
|
2013-03-07 01:15:23 -08:00
|
|
|
SVGFEImageElement::GetPreserveAspectRatio()
|
2013-03-07 01:15:23 -08:00
|
|
|
{
|
|
|
|
return &mPreserveAspectRatio;
|
|
|
|
}
|
|
|
|
|
|
|
|
nsSVGElement::StringAttributesInfo
|
2013-03-07 01:15:23 -08:00
|
|
|
SVGFEImageElement::GetStringInfo()
|
2013-03-07 01:15:23 -08:00
|
|
|
{
|
|
|
|
return StringAttributesInfo(mStringAttributes, sStringInfo,
|
|
|
|
ArrayLength(sStringInfo));
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// imgINotificationObserver methods
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2013-03-07 01:15:23 -08:00
|
|
|
SVGFEImageElement::Notify(imgIRequest* aRequest, int32_t aType, const nsIntRect* aData)
|
2013-03-07 01:15:23 -08:00
|
|
|
{
|
|
|
|
nsresult rv = nsImageLoadingContent::Notify(aRequest, aType, aData);
|
|
|
|
|
|
|
|
if (aType == imgINotificationObserver::SIZE_AVAILABLE) {
|
|
|
|
// Request a decode
|
|
|
|
nsCOMPtr<imgIContainer> container;
|
|
|
|
aRequest->GetImage(getter_AddRefs(container));
|
|
|
|
NS_ABORT_IF_FALSE(container, "who sent the notification then?");
|
|
|
|
container->StartDecoding();
|
|
|
|
}
|
|
|
|
|
|
|
|
if (aType == imgINotificationObserver::LOAD_COMPLETE ||
|
|
|
|
aType == imgINotificationObserver::FRAME_UPDATE ||
|
|
|
|
aType == imgINotificationObserver::SIZE_AVAILABLE) {
|
|
|
|
Invalidate();
|
|
|
|
}
|
|
|
|
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// helper methods
|
|
|
|
|
|
|
|
void
|
2013-03-07 01:15:23 -08:00
|
|
|
SVGFEImageElement::Invalidate()
|
2013-03-07 01:15:23 -08:00
|
|
|
{
|
|
|
|
if (GetParent() && GetParent()->IsSVG(nsGkAtoms::filter)) {
|
|
|
|
static_cast<SVGFilterElement*>(GetParent())->Invalidate();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|