2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07: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/. */
|
2011-10-10 22:50:08 -07:00
|
|
|
|
2012-12-27 18:45:57 -08:00
|
|
|
#include "mozilla/dom/HTMLTableRowElement.h"
|
2012-12-29 06:07:57 -08:00
|
|
|
#include "mozilla/dom/HTMLTableElement.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
#include "nsMappedAttributes.h"
|
2012-09-30 09:40:24 -07:00
|
|
|
#include "nsAttrValueInlines.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
#include "nsRuleData.h"
|
2012-12-29 06:07:57 -08:00
|
|
|
#include "mozilla/dom/BindingUtils.h"
|
|
|
|
#include "mozilla/dom/HTMLTableRowElementBinding.h"
|
2013-01-31 15:11:49 -08:00
|
|
|
#include "nsContentList.h"
|
|
|
|
#include "nsContentUtils.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
NS_IMPL_NS_NEW_HTML_ELEMENT(TableRow)
|
|
|
|
|
2012-12-27 18:45:57 -08:00
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2014-07-08 14:23:16 -07:00
|
|
|
HTMLTableRowElement::~HTMLTableRowElement()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2012-12-29 06:07:57 -08:00
|
|
|
JSObject*
|
2014-04-08 15:27:17 -07:00
|
|
|
HTMLTableRowElement::WrapNode(JSContext *aCx)
|
2007-03-22 10:30:00 -07: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 HTMLTableRowElementBinding::Wrap(aCx, this);
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
2013-08-01 18:29:05 -07:00
|
|
|
NS_IMPL_CYCLE_COLLECTION_CLASS(HTMLTableRowElement)
|
|
|
|
|
2012-12-27 18:45:57 -08:00
|
|
|
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(HTMLTableRowElement,
|
2007-03-22 10:30:00 -07:00
|
|
|
nsGenericHTMLElement)
|
2012-11-14 23:32:40 -08:00
|
|
|
NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mCells)
|
2007-03-22 10:30:00 -07:00
|
|
|
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
|
|
|
|
|
2012-12-27 18:45:57 -08:00
|
|
|
NS_IMPL_ADDREF_INHERITED(HTMLTableRowElement, Element)
|
|
|
|
NS_IMPL_RELEASE_INHERITED(HTMLTableRowElement, Element)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-12-27 18:45:57 -08:00
|
|
|
// QueryInterface implementation for HTMLTableRowElement
|
2013-08-01 15:24:22 -07:00
|
|
|
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(HTMLTableRowElement)
|
2013-08-07 13:23:08 -07:00
|
|
|
NS_INTERFACE_MAP_END_INHERITING(nsGenericHTMLElement)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
|
2012-12-27 18:45:57 -08:00
|
|
|
NS_IMPL_ELEMENT_CLONE(HTMLTableRowElement)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
|
|
|
|
// protected method
|
2013-08-01 15:24:22 -07:00
|
|
|
HTMLTableSectionElement*
|
2012-12-27 18:45:57 -08:00
|
|
|
HTMLTableRowElement::GetSection() const
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
2013-08-01 15:24:22 -07:00
|
|
|
nsIContent* parent = GetParent();
|
2013-08-08 14:00:23 -07:00
|
|
|
if (parent && parent->IsHTML() && (parent->Tag() == nsGkAtoms::thead ||
|
|
|
|
parent->Tag() == nsGkAtoms::tbody ||
|
|
|
|
parent->Tag() == nsGkAtoms::tfoot)) {
|
2013-08-01 15:24:22 -07:00
|
|
|
return static_cast<HTMLTableSectionElement*>(parent);
|
|
|
|
}
|
|
|
|
return nullptr;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// protected method
|
2012-12-29 06:07:57 -08:00
|
|
|
HTMLTableElement*
|
2012-12-27 18:45:57 -08:00
|
|
|
HTMLTableRowElement::GetTable() const
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
2011-11-15 23:50:19 -08:00
|
|
|
nsIContent* parent = GetParent();
|
|
|
|
if (!parent) {
|
2012-09-06 00:14:49 -07:00
|
|
|
return nullptr;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// We may not be in a section
|
2012-12-29 06:07:57 -08:00
|
|
|
HTMLTableElement* table = HTMLTableElement::FromContent(parent);
|
2011-11-15 23:50:19 -08:00
|
|
|
if (table) {
|
2012-12-29 06:07:57 -08:00
|
|
|
return table;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
2012-12-29 06:07:57 -08:00
|
|
|
return HTMLTableElement::FromContentOrNull(parent->GetParent());
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
2012-12-29 06:07:57 -08:00
|
|
|
int32_t
|
|
|
|
HTMLTableRowElement::RowIndex() const
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
2012-12-29 06:07:57 -08:00
|
|
|
HTMLTableElement* table = GetTable();
|
2012-09-06 00:14:49 -07:00
|
|
|
if (!table) {
|
2012-12-29 06:07:57 -08:00
|
|
|
return -1;
|
2011-11-15 23:50:19 -08:00
|
|
|
}
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-12-29 06:07:57 -08:00
|
|
|
nsIHTMLCollection* rows = table->Rows();
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-12-29 06:07:57 -08:00
|
|
|
uint32_t numRows = rows->Length();
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-08-22 08:56:38 -07:00
|
|
|
for (uint32_t i = 0; i < numRows; i++) {
|
2012-12-29 06:07:57 -08:00
|
|
|
if (rows->GetElementAt(i) == this) {
|
|
|
|
return i;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
}
|
2012-12-29 06:07:57 -08:00
|
|
|
|
|
|
|
return -1;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
2012-12-29 06:07:57 -08:00
|
|
|
int32_t
|
|
|
|
HTMLTableRowElement::SectionRowIndex() const
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
2013-08-01 15:24:22 -07:00
|
|
|
HTMLTableSectionElement* section = GetSection();
|
2012-09-06 00:14:49 -07:00
|
|
|
if (!section) {
|
2012-12-29 06:07:57 -08:00
|
|
|
return -1;
|
2011-11-15 23:50:19 -08:00
|
|
|
}
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2013-08-01 15:24:22 -07:00
|
|
|
nsCOMPtr<nsIHTMLCollection> coll = section->Rows();
|
2012-10-13 05:50:24 -07:00
|
|
|
uint32_t numRows = coll->Length();
|
2012-08-22 08:56:38 -07:00
|
|
|
for (uint32_t i = 0; i < numRows; i++) {
|
2012-10-13 05:50:24 -07:00
|
|
|
if (coll->GetElementAt(i) == this) {
|
2012-12-29 06:07:57 -08:00
|
|
|
return i;
|
2011-11-15 23:50:19 -08:00
|
|
|
}
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
2012-12-29 06:07:57 -08:00
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
static bool
|
2012-08-22 08:56:38 -07:00
|
|
|
IsCell(nsIContent *aContent, int32_t aNamespaceID,
|
2007-03-22 10:30:00 -07:00
|
|
|
nsIAtom* aAtom, void *aData)
|
|
|
|
{
|
|
|
|
nsIAtom* tag = aContent->Tag();
|
|
|
|
|
|
|
|
return ((tag == nsGkAtoms::td || tag == nsGkAtoms::th) &&
|
2009-08-24 13:02:07 -07:00
|
|
|
aContent->IsHTML());
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
2012-12-29 06:07:57 -08:00
|
|
|
nsIHTMLCollection*
|
|
|
|
HTMLTableRowElement::Cells()
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
if (!mCells) {
|
|
|
|
mCells = new nsContentList(this,
|
|
|
|
IsCell,
|
2012-07-30 07:20:58 -07:00
|
|
|
nullptr, // destroy func
|
|
|
|
nullptr, // closure data
|
2011-10-17 07:59:28 -07:00
|
|
|
false,
|
2012-07-30 07:20:58 -07:00
|
|
|
nullptr,
|
2009-03-20 07:58:37 -07:00
|
|
|
kNameSpaceID_XHTML,
|
2011-10-17 07:59:28 -07:00
|
|
|
false);
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
2012-12-29 06:07:57 -08:00
|
|
|
return mCells;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
2012-12-29 06:07:57 -08:00
|
|
|
already_AddRefed<nsGenericHTMLElement>
|
|
|
|
HTMLTableRowElement::InsertCell(int32_t aIndex,
|
|
|
|
ErrorResult& aError)
|
|
|
|
{
|
2007-03-22 10:30:00 -07:00
|
|
|
if (aIndex < -1) {
|
2012-12-29 06:07:57 -08:00
|
|
|
aError.Throw(NS_ERROR_DOM_INDEX_SIZE_ERR);
|
|
|
|
return nullptr;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
2009-07-09 14:09:44 -07:00
|
|
|
// Make sure mCells is initialized.
|
2012-12-29 06:07:57 -08:00
|
|
|
nsIHTMLCollection* cells = Cells();
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2009-07-09 14:09:44 -07:00
|
|
|
NS_ASSERTION(mCells, "How did that happen?");
|
|
|
|
|
2012-12-29 06:07:57 -08:00
|
|
|
nsCOMPtr<nsINode> nextSibling;
|
2009-07-09 14:09:44 -07:00
|
|
|
// -1 means append, so should use null nextSibling
|
|
|
|
if (aIndex != -1) {
|
2012-12-29 06:07:57 -08:00
|
|
|
nextSibling = cells->Item(aIndex);
|
2009-07-09 14:09:44 -07:00
|
|
|
// Check whether we're inserting past end of list. We want to avoid doing
|
|
|
|
// this unless we really have to, since this has to walk all our kids. If
|
|
|
|
// we have a nextSibling, we're clearly not past end of list.
|
|
|
|
if (!nextSibling) {
|
2012-12-29 06:07:57 -08:00
|
|
|
uint32_t cellCount = cells->Length();
|
2012-08-22 08:56:38 -07:00
|
|
|
if (aIndex > int32_t(cellCount)) {
|
2012-12-29 06:07:57 -08:00
|
|
|
aError.Throw(NS_ERROR_DOM_INDEX_SIZE_ERR);
|
|
|
|
return nullptr;
|
2009-07-09 14:09:44 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
// create the cell
|
2014-06-19 19:01:40 -07:00
|
|
|
nsRefPtr<mozilla::dom::NodeInfo> nodeInfo;
|
2007-03-22 10:30:00 -07:00
|
|
|
nsContentUtils::NameChanged(mNodeInfo, nsGkAtoms::td,
|
|
|
|
getter_AddRefs(nodeInfo));
|
|
|
|
|
2012-12-29 06:07:57 -08:00
|
|
|
nsRefPtr<nsGenericHTMLElement> cell =
|
|
|
|
NS_NewHTMLTableCellElement(nodeInfo.forget());
|
|
|
|
if (!cell) {
|
|
|
|
aError.Throw(NS_ERROR_OUT_OF_MEMORY);
|
|
|
|
return nullptr;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
2012-12-29 06:07:57 -08:00
|
|
|
nsINode::InsertBefore(*cell, nextSibling, aError);
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-12-29 06:07:57 -08:00
|
|
|
return cell.forget();
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
2012-12-29 06:07:57 -08:00
|
|
|
void
|
|
|
|
HTMLTableRowElement::DeleteCell(int32_t aValue, ErrorResult& aError)
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
if (aValue < -1) {
|
2012-12-29 06:07:57 -08:00
|
|
|
aError.Throw(NS_ERROR_DOM_INDEX_SIZE_ERR);
|
|
|
|
return;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
2012-12-29 06:07:57 -08:00
|
|
|
nsIHTMLCollection* cells = Cells();
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-08-22 08:56:38 -07:00
|
|
|
uint32_t refIndex;
|
2007-03-22 10:30:00 -07:00
|
|
|
if (aValue == -1) {
|
2012-12-29 06:07:57 -08:00
|
|
|
refIndex = cells->Length();
|
2007-03-22 10:30:00 -07:00
|
|
|
if (refIndex == 0) {
|
2012-12-29 06:07:57 -08:00
|
|
|
return;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
--refIndex;
|
|
|
|
}
|
|
|
|
else {
|
2012-08-22 08:56:38 -07:00
|
|
|
refIndex = (uint32_t)aValue;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
2012-12-29 06:07:57 -08:00
|
|
|
nsCOMPtr<nsINode> cell = cells->Item(refIndex);
|
2007-03-22 10:30:00 -07:00
|
|
|
if (!cell) {
|
2012-12-29 06:07:57 -08:00
|
|
|
aError.Throw(NS_ERROR_DOM_INDEX_SIZE_ERR);
|
|
|
|
return;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
2012-12-29 06:07:57 -08:00
|
|
|
nsINode::RemoveChild(*cell, aError);
|
|
|
|
}
|
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
bool
|
2012-12-27 18:45:57 -08:00
|
|
|
HTMLTableRowElement::ParseAttribute(int32_t aNamespaceID,
|
|
|
|
nsIAtom* aAttribute,
|
|
|
|
const nsAString& aValue,
|
|
|
|
nsAttrValue& aResult)
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
/*
|
|
|
|
* ignore these attributes, stored simply as strings
|
|
|
|
*
|
|
|
|
* ch
|
|
|
|
*/
|
|
|
|
|
|
|
|
if (aNamespaceID == kNameSpaceID_None) {
|
|
|
|
if (aAttribute == nsGkAtoms::charoff) {
|
|
|
|
return aResult.ParseIntWithBounds(aValue, 0);
|
|
|
|
}
|
|
|
|
if (aAttribute == nsGkAtoms::height) {
|
2011-02-04 11:46:16 -08:00
|
|
|
return aResult.ParseSpecialIntValue(aValue);
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
if (aAttribute == nsGkAtoms::width) {
|
2011-02-04 11:46:16 -08:00
|
|
|
return aResult.ParseSpecialIntValue(aValue);
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
if (aAttribute == nsGkAtoms::align) {
|
|
|
|
return ParseTableCellHAlignValue(aValue, aResult);
|
|
|
|
}
|
|
|
|
if (aAttribute == nsGkAtoms::bgcolor) {
|
2010-07-17 01:09:14 -07:00
|
|
|
return aResult.ParseColor(aValue);
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
if (aAttribute == nsGkAtoms::valign) {
|
|
|
|
return ParseTableVAlignValue(aValue, aResult);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-08-24 10:50:49 -07:00
|
|
|
return nsGenericHTMLElement::ParseBackgroundAttribute(aNamespaceID,
|
|
|
|
aAttribute, aValue,
|
|
|
|
aResult) ||
|
|
|
|
nsGenericHTMLElement::ParseAttribute(aNamespaceID, aAttribute, aValue,
|
2007-03-22 10:30:00 -07:00
|
|
|
aResult);
|
|
|
|
}
|
|
|
|
|
2013-11-19 11:21:29 -08:00
|
|
|
void
|
|
|
|
HTMLTableRowElement::MapAttributesIntoRule(const nsMappedAttributes* aAttributes,
|
|
|
|
nsRuleData* aData)
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
2007-10-08 14:58:22 -07:00
|
|
|
if (aData->mSIDs & NS_STYLE_INHERIT_BIT(Position)) {
|
2007-03-22 10:30:00 -07:00
|
|
|
// height: value
|
2011-03-17 20:14:31 -07:00
|
|
|
nsCSSValue* height = aData->ValueForHeight();
|
|
|
|
if (height->GetUnit() == eCSSUnit_Null) {
|
2007-03-22 10:30:00 -07:00
|
|
|
const nsAttrValue* value = aAttributes->GetAttr(nsGkAtoms::height);
|
|
|
|
if (value && value->Type() == nsAttrValue::eInteger)
|
2011-03-17 20:14:31 -07:00
|
|
|
height->SetFloatValue((float)value->GetIntegerValue(), eCSSUnit_Pixel);
|
2007-03-22 10:30:00 -07:00
|
|
|
else if (value && value->Type() == nsAttrValue::ePercent)
|
2011-03-17 20:14:31 -07:00
|
|
|
height->SetPercentValue(value->GetPercentValue());
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
}
|
2007-10-08 14:58:22 -07:00
|
|
|
if (aData->mSIDs & NS_STYLE_INHERIT_BIT(Text)) {
|
2011-03-17 20:14:31 -07:00
|
|
|
nsCSSValue* textAlign = aData->ValueForTextAlign();
|
|
|
|
if (textAlign->GetUnit() == eCSSUnit_Null) {
|
2007-03-22 10:30:00 -07:00
|
|
|
// align: enum
|
|
|
|
const nsAttrValue* value = aAttributes->GetAttr(nsGkAtoms::align);
|
|
|
|
if (value && value->Type() == nsAttrValue::eEnum)
|
2011-03-17 20:14:31 -07:00
|
|
|
textAlign->SetIntValue(value->GetEnumValue(), eCSSUnit_Enumerated);
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
}
|
2007-10-08 14:58:22 -07:00
|
|
|
if (aData->mSIDs & NS_STYLE_INHERIT_BIT(TextReset)) {
|
2011-03-17 20:14:31 -07:00
|
|
|
nsCSSValue* verticalAlign = aData->ValueForVerticalAlign();
|
|
|
|
if (verticalAlign->GetUnit() == eCSSUnit_Null) {
|
2007-03-22 10:30:00 -07:00
|
|
|
// valign: enum
|
|
|
|
const nsAttrValue* value = aAttributes->GetAttr(nsGkAtoms::valign);
|
|
|
|
if (value && value->Type() == nsAttrValue::eEnum)
|
2011-03-17 20:14:31 -07:00
|
|
|
verticalAlign->SetIntValue(value->GetEnumValue(), eCSSUnit_Enumerated);
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
nsGenericHTMLElement::MapBackgroundAttributesInto(aAttributes, aData);
|
|
|
|
nsGenericHTMLElement::MapCommonAttributesInto(aAttributes, aData);
|
|
|
|
}
|
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
NS_IMETHODIMP_(bool)
|
2012-12-27 18:45:57 -08:00
|
|
|
HTMLTableRowElement::IsAttributeMapped(const nsIAtom* aAttribute) const
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
static const MappedAttributeEntry attributes[] = {
|
|
|
|
{ &nsGkAtoms::align },
|
|
|
|
{ &nsGkAtoms::valign },
|
|
|
|
{ &nsGkAtoms::height },
|
2012-07-30 07:20:58 -07:00
|
|
|
{ nullptr }
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
static const MappedAttributeEntry* const map[] = {
|
|
|
|
attributes,
|
|
|
|
sCommonAttributeMap,
|
|
|
|
sBackgroundAttributeMap,
|
|
|
|
};
|
|
|
|
|
2011-12-18 02:09:27 -08:00
|
|
|
return FindAttributeDependence(aAttribute, map);
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
nsMapRuleToAttributesFunc
|
2012-12-27 18:45:57 -08:00
|
|
|
HTMLTableRowElement::GetAttributeMappingFunction() const
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
return &MapAttributesIntoRule;
|
|
|
|
}
|
2012-12-27 18:45:57 -08:00
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|