2018-11-30 22:52:05 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2018-11-30 18:39:55 +03:00
|
|
|
/* vim: set ts=4 et sw=2 tw=80: */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* 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/. */
|
2001-05-28 05:45:28 +04:00
|
|
|
|
|
|
|
/*
|
2018-02-01 22:26:12 +03:00
|
|
|
* Implementation of DOM Traversal's TreeWalker
|
2001-05-28 05:45:28 +04:00
|
|
|
*/
|
|
|
|
|
2013-02-28 21:56:41 +04:00
|
|
|
#include "mozilla/dom/TreeWalker.h"
|
2001-05-28 05:45:28 +04:00
|
|
|
|
2013-03-17 11:55:15 +04:00
|
|
|
#include "nsIContent.h"
|
2012-07-27 18:03:27 +04:00
|
|
|
#include "nsError.h"
|
2011-07-20 23:18:54 +04:00
|
|
|
#include "nsINode.h"
|
2001-05-28 05:45:28 +04:00
|
|
|
#include "nsContentUtils.h"
|
2018-02-01 22:26:12 +03:00
|
|
|
#include "mozilla/dom/NodeFilterBinding.h"
|
2013-02-28 21:56:42 +04:00
|
|
|
#include "mozilla/dom/TreeWalkerBinding.h"
|
2013-02-27 00:10:15 +04:00
|
|
|
|
2013-02-28 21:56:41 +04:00
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
2001-05-28 05:45:28 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Factories, constructors and destructors
|
|
|
|
*/
|
|
|
|
|
2013-02-28 21:56:41 +04:00
|
|
|
TreeWalker::TreeWalker(nsINode* aRoot, uint32_t aWhatToShow,
|
2018-02-01 22:26:12 +03:00
|
|
|
NodeFilter* aFilter)
|
|
|
|
: nsTraversal(aRoot, aWhatToShow, aFilter), mCurrentNode(aRoot) {}
|
2001-05-28 05:45:28 +04:00
|
|
|
|
2013-02-28 21:56:41 +04:00
|
|
|
TreeWalker::~TreeWalker() { /* destructor code */
|
2001-05-28 05:45:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
2007-08-29 03:42:41 +04:00
|
|
|
* nsISupports and cycle collection stuff
|
2001-05-28 05:45:28 +04:00
|
|
|
*/
|
|
|
|
|
2014-04-25 20:49:00 +04:00
|
|
|
NS_IMPL_CYCLE_COLLECTION(TreeWalker, mFilter, mCurrentNode, mRoot)
|
2010-01-12 16:08:43 +03:00
|
|
|
|
2013-02-28 21:56:41 +04:00
|
|
|
// QueryInterface implementation for TreeWalker
|
|
|
|
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(TreeWalker)
|
2018-02-01 22:26:12 +03:00
|
|
|
NS_INTERFACE_MAP_ENTRY(nsISupports)
|
2001-05-28 05:45:28 +04:00
|
|
|
NS_INTERFACE_MAP_END
|
|
|
|
|
2013-02-28 21:56:41 +04:00
|
|
|
// Have to pass in dom::TreeWalker because a11y has an a11y::TreeWalker that
|
|
|
|
// passes TreeWalker so refcount logging would get confused on the name
|
|
|
|
// collision.
|
|
|
|
NS_IMPL_CYCLE_COLLECTING_ADDREF(dom::TreeWalker)
|
|
|
|
NS_IMPL_CYCLE_COLLECTING_RELEASE(dom::TreeWalker)
|
2007-08-29 03:42:41 +04:00
|
|
|
|
2013-02-28 21:56:42 +04:00
|
|
|
void TreeWalker::SetCurrentNode(nsINode& aNode, ErrorResult& aResult) {
|
|
|
|
aResult = nsContentUtils::CheckSameOrigin(mRoot, &aNode);
|
|
|
|
if (aResult.Failed()) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
mCurrentNode = &aNode;
|
2001-05-28 05:45:28 +04:00
|
|
|
}
|
|
|
|
|
2013-02-28 21:56:42 +04:00
|
|
|
already_AddRefed<nsINode> TreeWalker::ParentNode(ErrorResult& aResult) {
|
2006-05-19 14:01:22 +04:00
|
|
|
nsCOMPtr<nsINode> node = mCurrentNode;
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2001-05-28 05:45:28 +04:00
|
|
|
while (node && node != mRoot) {
|
2012-10-09 16:31:24 +04:00
|
|
|
node = node->GetParentNode();
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2001-05-28 05:45:28 +04:00
|
|
|
if (node) {
|
2013-02-28 21:56:42 +04:00
|
|
|
int16_t filtered = TestNode(node, aResult);
|
|
|
|
if (aResult.Failed()) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
2018-06-26 00:20:54 +03:00
|
|
|
if (filtered == NodeFilter_Binding::FILTER_ACCEPT) {
|
2001-05-28 05:45:28 +04:00
|
|
|
mCurrentNode = node;
|
2013-02-28 21:56:42 +04:00
|
|
|
return node.forget();
|
2001-05-28 05:45:28 +04:00
|
|
|
}
|
|
|
|
}
|
2018-11-30 13:46:48 +03:00
|
|
|
}
|
2001-05-28 05:45:28 +04:00
|
|
|
|
2013-02-28 21:56:42 +04:00
|
|
|
return nullptr;
|
2001-05-28 05:45:28 +04:00
|
|
|
}
|
|
|
|
|
2013-02-28 21:56:42 +04:00
|
|
|
already_AddRefed<nsINode> TreeWalker::FirstChild(ErrorResult& aResult) {
|
|
|
|
return FirstChildInternal(false, aResult);
|
2001-05-28 05:45:28 +04:00
|
|
|
}
|
|
|
|
|
2013-02-28 21:56:42 +04:00
|
|
|
already_AddRefed<nsINode> TreeWalker::LastChild(ErrorResult& aResult) {
|
|
|
|
return FirstChildInternal(true, aResult);
|
2001-05-28 05:45:28 +04:00
|
|
|
}
|
|
|
|
|
2013-02-28 21:56:42 +04:00
|
|
|
already_AddRefed<nsINode> TreeWalker::PreviousSibling(ErrorResult& aResult) {
|
|
|
|
return NextSiblingInternal(true, aResult);
|
2001-05-28 05:45:28 +04:00
|
|
|
}
|
|
|
|
|
2013-02-28 21:56:42 +04:00
|
|
|
already_AddRefed<nsINode> TreeWalker::NextSibling(ErrorResult& aResult) {
|
|
|
|
return NextSiblingInternal(false, aResult);
|
2001-05-28 05:45:28 +04:00
|
|
|
}
|
|
|
|
|
2013-02-28 21:56:42 +04:00
|
|
|
already_AddRefed<nsINode> TreeWalker::PreviousNode(ErrorResult& aResult) {
|
2010-07-22 02:05:23 +04:00
|
|
|
nsCOMPtr<nsINode> node = mCurrentNode;
|
2001-05-28 05:45:28 +04:00
|
|
|
|
2013-02-28 21:56:42 +04:00
|
|
|
while (node != mRoot) {
|
|
|
|
while (nsINode* previousSibling = node->GetPreviousSibling()) {
|
2010-07-22 02:05:23 +04:00
|
|
|
node = previousSibling;
|
2006-01-19 05:46:18 +03:00
|
|
|
|
2012-10-09 16:31:24 +04:00
|
|
|
int16_t filtered = TestNode(node, aResult);
|
2013-02-28 21:56:42 +04:00
|
|
|
if (aResult.Failed()) {
|
2010-07-22 02:05:23 +04:00
|
|
|
return nullptr;
|
2013-02-28 21:56:42 +04:00
|
|
|
}
|
2001-05-28 05:45:28 +04:00
|
|
|
|
2010-07-22 02:05:23 +04:00
|
|
|
nsINode* lastChild;
|
2013-02-28 21:56:42 +04:00
|
|
|
while (filtered != NodeFilter_Binding::FILTER_REJECT &&
|
2010-07-22 02:05:23 +04:00
|
|
|
(lastChild = node->GetLastChild())) {
|
|
|
|
node = lastChild;
|
2013-02-28 21:56:42 +04:00
|
|
|
filtered = TestNode(node, aResult);
|
|
|
|
if (aResult.Failed()) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
2018-11-30 13:46:48 +03:00
|
|
|
}
|
2010-07-22 02:05:23 +04:00
|
|
|
|
2018-06-26 00:20:54 +03:00
|
|
|
if (filtered == NodeFilter_Binding::FILTER_ACCEPT) {
|
2010-07-22 02:05:23 +04:00
|
|
|
mCurrentNode = node;
|
2013-02-28 21:56:42 +04:00
|
|
|
return node.forget();
|
2010-07-22 02:05:23 +04:00
|
|
|
}
|
|
|
|
}
|
2001-09-07 13:30:03 +04:00
|
|
|
|
2013-02-28 21:56:42 +04:00
|
|
|
if (node == mRoot) {
|
|
|
|
break;
|
2001-05-28 05:45:28 +04:00
|
|
|
}
|
|
|
|
|
2018-06-26 00:20:54 +03:00
|
|
|
node = node->GetParentNode();
|
|
|
|
if (!node) {
|
|
|
|
break;
|
2018-11-30 13:46:48 +03:00
|
|
|
}
|
2013-02-28 23:41:30 +04:00
|
|
|
|
2010-07-22 02:05:23 +04:00
|
|
|
int16_t filtered = TestNode(node, aResult);
|
2013-02-28 21:56:42 +04:00
|
|
|
if (aResult.Failed()) {
|
2010-07-22 02:05:23 +04:00
|
|
|
return nullptr;
|
2018-11-30 13:46:48 +03:00
|
|
|
}
|
2001-05-28 05:45:28 +04:00
|
|
|
|
|
|
|
if (filtered == NodeFilter_Binding::FILTER_ACCEPT) {
|
|
|
|
mCurrentNode = node;
|
2013-02-28 21:56:42 +04:00
|
|
|
return node.forget();
|
2018-11-30 13:46:48 +03:00
|
|
|
}
|
|
|
|
}
|
2001-05-28 05:45:28 +04:00
|
|
|
|
2018-06-26 00:20:54 +03:00
|
|
|
return nullptr;
|
2018-11-30 13:46:48 +03:00
|
|
|
}
|
2001-05-28 05:45:28 +04:00
|
|
|
|
2013-02-28 21:56:42 +04:00
|
|
|
already_AddRefed<nsINode> TreeWalker::NextNode(ErrorResult& aResult) {
|
|
|
|
int16_t filtered =
|
|
|
|
NodeFilter_Binding::FILTER_ACCEPT; // pre-init for inner loop
|
2001-05-28 05:45:28 +04:00
|
|
|
|
2010-07-22 02:05:23 +04:00
|
|
|
nsCOMPtr<nsINode> node = mCurrentNode;
|
2001-05-28 05:45:28 +04:00
|
|
|
|
2010-07-22 02:05:23 +04:00
|
|
|
while (1) {
|
2012-07-30 18:20:58 +04:00
|
|
|
nsINode* firstChild;
|
|
|
|
while (filtered != NodeFilter_Binding::FILTER_REJECT &&
|
2010-07-22 02:05:23 +04:00
|
|
|
(firstChild = node->GetFirstChild())) {
|
|
|
|
node = firstChild;
|
|
|
|
|
|
|
|
filtered = TestNode(node, aResult);
|
|
|
|
if (aResult.Failed()) {
|
|
|
|
return nullptr;
|
2018-11-30 13:46:48 +03:00
|
|
|
}
|
2001-05-28 05:45:28 +04:00
|
|
|
|
2012-10-09 16:31:24 +04:00
|
|
|
if (filtered == NodeFilter_Binding::FILTER_ACCEPT) {
|
2010-07-22 02:05:23 +04:00
|
|
|
// Node found
|
2012-10-09 16:31:24 +04:00
|
|
|
mCurrentNode = node;
|
|
|
|
return node.forget();
|
2010-07-22 02:05:23 +04:00
|
|
|
}
|
2018-11-30 13:46:48 +03:00
|
|
|
}
|
2010-07-22 02:05:23 +04:00
|
|
|
|
|
|
|
nsINode* sibling = nullptr;
|
|
|
|
nsINode* temp = node;
|
2018-11-30 13:46:48 +03:00
|
|
|
do {
|
2001-05-28 05:45:28 +04:00
|
|
|
if (temp == mRoot) break;
|
|
|
|
|
2010-07-22 02:05:23 +04:00
|
|
|
sibling = temp->GetNextSibling();
|
|
|
|
if (sibling) break;
|
|
|
|
|
2013-02-28 21:56:42 +04:00
|
|
|
temp = temp->GetParentNode();
|
|
|
|
} while (temp);
|
2001-09-07 13:30:03 +04:00
|
|
|
|
2018-06-26 00:20:54 +03:00
|
|
|
if (!sibling) break;
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2018-06-26 00:20:54 +03:00
|
|
|
node = sibling;
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2018-06-26 00:20:54 +03:00
|
|
|
// Found a sibling. Either ours or ancestor's
|
|
|
|
filtered = TestNode(node, aResult);
|
|
|
|
if (aResult.Failed()) {
|
2013-02-28 21:56:42 +04:00
|
|
|
return nullptr;
|
2001-05-28 05:45:28 +04:00
|
|
|
}
|
2001-09-07 13:30:03 +04:00
|
|
|
|
2018-06-26 00:20:54 +03:00
|
|
|
if (filtered == NodeFilter_Binding::FILTER_ACCEPT) {
|
2010-07-22 02:05:23 +04:00
|
|
|
// Node found
|
|
|
|
mCurrentNode = node;
|
2013-02-28 21:56:42 +04:00
|
|
|
return node.forget();
|
2018-11-30 13:46:48 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-02-28 21:56:42 +04:00
|
|
|
return nullptr;
|
2001-05-28 05:45:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
2013-02-28 21:56:41 +04:00
|
|
|
* TreeWalker helper functions
|
2010-07-22 02:05:23 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Implements FirstChild and LastChild which only vary in which direction
|
|
|
|
* they search.
|
|
|
|
* @param aReversed Controls whether we search forwards or backwards
|
2013-02-28 21:56:42 +04:00
|
|
|
* @param aResult Whether we threw or not.
|
|
|
|
* @returns The desired node. Null if no child is found
|
2001-05-28 05:45:28 +04:00
|
|
|
*/
|
2013-02-28 21:56:42 +04:00
|
|
|
already_AddRefed<nsINode> TreeWalker::FirstChildInternal(bool aReversed,
|
|
|
|
ErrorResult& aResult) {
|
2010-07-22 02:05:23 +04:00
|
|
|
nsCOMPtr<nsINode> node =
|
|
|
|
aReversed ? mCurrentNode->GetLastChild() : mCurrentNode->GetFirstChild();
|
2001-05-28 05:45:28 +04:00
|
|
|
|
2010-07-22 02:05:23 +04:00
|
|
|
while (node) {
|
2013-02-28 21:56:42 +04:00
|
|
|
int16_t filtered = TestNode(node, aResult);
|
|
|
|
if (aResult.Failed()) {
|
|
|
|
return nullptr;
|
2018-11-30 13:46:48 +03:00
|
|
|
}
|
|
|
|
|
2010-07-22 02:05:23 +04:00
|
|
|
switch (filtered) {
|
2018-06-26 00:20:54 +03:00
|
|
|
case NodeFilter_Binding::FILTER_ACCEPT:
|
2010-07-22 02:05:23 +04:00
|
|
|
// Node found
|
|
|
|
mCurrentNode = node;
|
2013-02-28 21:56:42 +04:00
|
|
|
return node.forget();
|
2018-06-26 00:20:54 +03:00
|
|
|
case NodeFilter_Binding::FILTER_SKIP: {
|
2010-07-22 02:05:23 +04:00
|
|
|
nsINode* child =
|
|
|
|
aReversed ? node->GetLastChild() : node->GetFirstChild();
|
|
|
|
if (child) {
|
|
|
|
node = child;
|
|
|
|
continue;
|
2001-05-28 05:45:28 +04:00
|
|
|
}
|
2018-11-30 13:46:48 +03:00
|
|
|
break;
|
|
|
|
}
|
2018-06-26 00:20:54 +03:00
|
|
|
case NodeFilter_Binding::FILTER_REJECT:
|
2010-07-22 02:05:23 +04:00
|
|
|
// Keep searching
|
2018-11-30 13:46:48 +03:00
|
|
|
break;
|
|
|
|
}
|
2001-05-28 05:45:28 +04:00
|
|
|
|
2010-07-22 02:05:23 +04:00
|
|
|
do {
|
|
|
|
nsINode* sibling =
|
|
|
|
aReversed ? node->GetPreviousSibling() : node->GetNextSibling();
|
|
|
|
if (sibling) {
|
|
|
|
node = sibling;
|
|
|
|
break;
|
|
|
|
}
|
2011-01-15 22:00:50 +03:00
|
|
|
|
2012-10-09 16:31:24 +04:00
|
|
|
nsINode* parent = node->GetParentNode();
|
2001-05-28 05:45:28 +04:00
|
|
|
|
2010-07-22 02:05:23 +04:00
|
|
|
if (!parent || parent == mRoot || parent == mCurrentNode) {
|
2013-02-28 21:56:42 +04:00
|
|
|
return nullptr;
|
2001-05-28 05:45:28 +04:00
|
|
|
}
|
2001-09-07 13:30:03 +04:00
|
|
|
|
2011-01-15 22:00:50 +03:00
|
|
|
node = parent;
|
|
|
|
|
2010-07-22 02:05:23 +04:00
|
|
|
} while (node);
|
2001-05-28 05:45:28 +04:00
|
|
|
}
|
2001-09-07 13:30:03 +04:00
|
|
|
|
2013-02-28 21:56:42 +04:00
|
|
|
return nullptr;
|
2001-09-07 13:30:03 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
2010-07-22 02:05:23 +04:00
|
|
|
* Implements NextSibling and PreviousSibling which only vary in which
|
|
|
|
* direction they search.
|
|
|
|
* @param aReversed Controls whether we search forwards or backwards
|
2013-02-28 21:56:42 +04:00
|
|
|
* @param aResult Whether we threw or not.
|
|
|
|
* @returns The desired node. Null if no child is found
|
2001-09-07 13:30:03 +04:00
|
|
|
*/
|
2013-02-28 21:56:42 +04:00
|
|
|
already_AddRefed<nsINode> TreeWalker::NextSiblingInternal(
|
|
|
|
bool aReversed, ErrorResult& aResult) {
|
2010-07-22 02:05:23 +04:00
|
|
|
nsCOMPtr<nsINode> node = mCurrentNode;
|
2001-09-07 13:30:03 +04:00
|
|
|
|
2013-02-28 21:56:42 +04:00
|
|
|
if (node == mRoot) {
|
|
|
|
return nullptr;
|
2018-11-30 13:46:48 +03:00
|
|
|
}
|
|
|
|
|
2010-07-22 02:05:23 +04:00
|
|
|
while (1) {
|
2011-02-24 02:58:55 +03:00
|
|
|
nsINode* sibling =
|
|
|
|
aReversed ? node->GetPreviousSibling() : node->GetNextSibling();
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2010-07-22 02:05:23 +04:00
|
|
|
while (sibling) {
|
2011-02-24 02:58:55 +03:00
|
|
|
node = sibling;
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2013-02-28 21:56:42 +04:00
|
|
|
int16_t filtered = TestNode(node, aResult);
|
|
|
|
if (aResult.Failed()) {
|
|
|
|
return nullptr;
|
2018-11-30 13:46:48 +03:00
|
|
|
}
|
|
|
|
|
2018-06-26 00:20:54 +03:00
|
|
|
if (filtered == NodeFilter_Binding::FILTER_ACCEPT) {
|
2011-02-24 02:58:55 +03:00
|
|
|
// Node found
|
2013-02-28 21:56:42 +04:00
|
|
|
mCurrentNode = node;
|
|
|
|
return node.forget();
|
2018-11-30 13:46:48 +03:00
|
|
|
}
|
|
|
|
|
2011-02-24 02:58:55 +03:00
|
|
|
// If rejected or no children, try a sibling
|
2018-06-26 00:20:54 +03:00
|
|
|
if (filtered == NodeFilter_Binding::FILTER_REJECT ||
|
2011-02-24 02:58:55 +03:00
|
|
|
!(sibling =
|
2010-07-22 02:05:23 +04:00
|
|
|
aReversed ? node->GetLastChild() : node->GetFirstChild())) {
|
2011-02-24 02:58:55 +03:00
|
|
|
sibling =
|
|
|
|
aReversed ? node->GetPreviousSibling() : node->GetNextSibling();
|
2018-11-30 13:46:48 +03:00
|
|
|
}
|
2013-02-28 21:56:42 +04:00
|
|
|
}
|
2001-09-07 13:30:03 +04:00
|
|
|
|
2013-02-28 21:56:42 +04:00
|
|
|
node = node->GetParentNode();
|
2001-09-07 13:30:03 +04:00
|
|
|
|
2013-02-28 21:56:42 +04:00
|
|
|
if (!node || node == mRoot) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
2001-09-07 13:30:03 +04:00
|
|
|
|
2010-07-22 02:05:23 +04:00
|
|
|
// Is parent transparent in filtered view?
|
2013-02-28 21:56:42 +04:00
|
|
|
int16_t filtered = TestNode(node, aResult);
|
|
|
|
if (aResult.Failed()) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
2018-06-26 00:20:54 +03:00
|
|
|
if (filtered == NodeFilter_Binding::FILTER_ACCEPT) {
|
2013-02-28 21:56:42 +04:00
|
|
|
return nullptr;
|
2001-09-07 13:30:03 +04:00
|
|
|
}
|
2018-11-30 13:46:48 +03:00
|
|
|
}
|
2001-05-28 05:45:28 +04:00
|
|
|
}
|
2013-02-28 21:56:41 +04:00
|
|
|
|
Bug 1117172 part 2. Change the non-wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
The only manual changes here are to BindingUtils.h, Codegen.py, and
StructuredClone.cpp. The rest of this diff was generated by running the following commands:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/WrapObject\((JSContext *\* *(?:aCx|cx)),(\s*)(JS::MutableHandle<JSObject\*> aReflector)/WrapObject(\1,\2JS::Handle<JSObject*> aGivenProto,\2\3/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx)), this, aReflector/\1, this, aGivenProto, aReflector/'
2015-03-19 17:13:32 +03:00
|
|
|
bool TreeWalker::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto,
|
|
|
|
JS::MutableHandle<JSObject*> aReflector) {
|
2018-06-26 00:20:54 +03:00
|
|
|
return TreeWalker_Binding::Wrap(aCx, this, aGivenProto, aReflector);
|
2013-02-28 21:56:42 +04:00
|
|
|
}
|
|
|
|
|
2013-02-28 21:56:41 +04:00
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|