зеркало из https://github.com/mozilla/gecko-dev.git
Bug 893117: Remove nsIDOMHTMLTableRowElement r=peterv
This commit is contained in:
Родитель
01578bfa77
Коммит
2085533186
|
@ -35,11 +35,8 @@ NS_IMPL_ADDREF_INHERITED(HTMLTableRowElement, Element)
|
|||
NS_IMPL_RELEASE_INHERITED(HTMLTableRowElement, Element)
|
||||
|
||||
// QueryInterface implementation for HTMLTableRowElement
|
||||
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(HTMLTableRowElement)
|
||||
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(HTMLTableRowElement)
|
||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||
NS_INTERFACE_TABLE_INHERITED1(HTMLTableRowElement,
|
||||
nsIDOMHTMLTableRowElement)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
||||
NS_ELEMENT_INTERFACE_MAP_END
|
||||
|
||||
|
||||
|
@ -98,13 +95,6 @@ HTMLTableRowElement::RowIndex() const
|
|||
return -1;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
HTMLTableRowElement::GetRowIndex(int32_t* aValue)
|
||||
{
|
||||
*aValue = RowIndex();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
int32_t
|
||||
HTMLTableRowElement::SectionRowIndex() const
|
||||
{
|
||||
|
@ -124,13 +114,6 @@ HTMLTableRowElement::SectionRowIndex() const
|
|||
return -1;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
HTMLTableRowElement::GetSectionRowIndex(int32_t* aValue)
|
||||
{
|
||||
*aValue = SectionRowIndex();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
static bool
|
||||
IsCell(nsIContent *aContent, int32_t aNamespaceID,
|
||||
nsIAtom* aAtom, void *aData)
|
||||
|
@ -158,13 +141,6 @@ HTMLTableRowElement::Cells()
|
|||
return mCells;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
HTMLTableRowElement::GetCells(nsIDOMHTMLCollection** aValue)
|
||||
{
|
||||
NS_ADDREF(*aValue = Cells());
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
already_AddRefed<nsGenericHTMLElement>
|
||||
HTMLTableRowElement::InsertCell(int32_t aIndex,
|
||||
ErrorResult& aError)
|
||||
|
@ -212,14 +188,6 @@ HTMLTableRowElement::InsertCell(int32_t aIndex,
|
|||
return cell.forget();
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
HTMLTableRowElement::InsertCell(int32_t aIndex, nsIDOMHTMLElement** aValue)
|
||||
{
|
||||
ErrorResult rv;
|
||||
nsRefPtr<nsGenericHTMLElement> cell = InsertCell(aIndex, rv);
|
||||
return rv.Failed() ? rv.ErrorCode() : CallQueryInterface(cell, aValue);
|
||||
}
|
||||
|
||||
void
|
||||
HTMLTableRowElement::DeleteCell(int32_t aValue, ErrorResult& aError)
|
||||
{
|
||||
|
@ -252,99 +220,6 @@ HTMLTableRowElement::DeleteCell(int32_t aValue, ErrorResult& aError)
|
|||
nsINode::RemoveChild(*cell, aError);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
HTMLTableRowElement::DeleteCell(int32_t aValue)
|
||||
{
|
||||
ErrorResult rv;
|
||||
DeleteCell(aValue, rv);
|
||||
return rv.ErrorCode();
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
HTMLTableRowElement::SetAlign(const nsAString& aAlign)
|
||||
{
|
||||
ErrorResult rv;
|
||||
SetAlign(aAlign, rv);
|
||||
return rv.ErrorCode();
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
HTMLTableRowElement::GetAlign(nsAString& aAlign)
|
||||
{
|
||||
nsString align;
|
||||
GetAlign(align);
|
||||
aAlign = align;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
HTMLTableRowElement::SetVAlign(const nsAString& aVAlign)
|
||||
{
|
||||
ErrorResult rv;
|
||||
SetVAlign(aVAlign, rv);
|
||||
return rv.ErrorCode();
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
HTMLTableRowElement::GetVAlign(nsAString& aVAlign)
|
||||
{
|
||||
nsString vAlign;
|
||||
GetVAlign(vAlign);
|
||||
aVAlign = vAlign;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
HTMLTableRowElement::SetCh(const nsAString& aCh)
|
||||
{
|
||||
ErrorResult rv;
|
||||
SetCh(aCh, rv);
|
||||
return rv.ErrorCode();
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
HTMLTableRowElement::GetCh(nsAString& aCh)
|
||||
{
|
||||
nsString ch;
|
||||
GetCh(ch);
|
||||
aCh = ch;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
HTMLTableRowElement::SetChOff(const nsAString& aChOff)
|
||||
{
|
||||
ErrorResult rv;
|
||||
SetChOff(aChOff, rv);
|
||||
return rv.ErrorCode();
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
HTMLTableRowElement::GetChOff(nsAString& aChOff)
|
||||
{
|
||||
nsString chOff;
|
||||
GetChOff(chOff);
|
||||
aChOff = chOff;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
HTMLTableRowElement::SetBgColor(const nsAString& aBgColor)
|
||||
{
|
||||
ErrorResult rv;
|
||||
SetBgColor(aBgColor, rv);
|
||||
return rv.ErrorCode();
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
HTMLTableRowElement::GetBgColor(nsAString& aBgColor)
|
||||
{
|
||||
nsString bgColor;
|
||||
GetBgColor(bgColor);
|
||||
aBgColor = bgColor;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
bool
|
||||
HTMLTableRowElement::ParseAttribute(int32_t aNamespaceID,
|
||||
nsIAtom* aAttribute,
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
#include "mozilla/Attributes.h"
|
||||
#include "nsGenericHTMLElement.h"
|
||||
#include "nsIDOMHTMLTableRowElement.h"
|
||||
|
||||
class nsIDOMHTMLTableElement;
|
||||
class nsContentList;
|
||||
|
@ -18,7 +17,7 @@ namespace dom {
|
|||
class HTMLTableSectionElement;
|
||||
|
||||
class HTMLTableRowElement MOZ_FINAL : public nsGenericHTMLElement,
|
||||
public nsIDOMHTMLTableRowElement
|
||||
public nsIDOMHTMLElement
|
||||
{
|
||||
public:
|
||||
HTMLTableRowElement(already_AddRefed<nsINodeInfo> aNodeInfo)
|
||||
|
@ -40,9 +39,6 @@ public:
|
|||
// nsIDOMHTMLElement
|
||||
NS_FORWARD_NSIDOMHTMLELEMENT_TO_GENERIC
|
||||
|
||||
// nsIDOMHTMLTableRowElement
|
||||
NS_DECL_NSIDOMHTMLTABLEROWELEMENT
|
||||
|
||||
int32_t RowIndex() const;
|
||||
int32_t SectionRowIndex() const;
|
||||
nsIHTMLCollection* Cells();
|
||||
|
|
|
@ -65,7 +65,6 @@ XPIDL_SOURCES += [
|
|||
'nsIDOMHTMLTableCellElement.idl',
|
||||
'nsIDOMHTMLTableColElement.idl',
|
||||
'nsIDOMHTMLTableElement.idl',
|
||||
'nsIDOMHTMLTableRowElement.idl',
|
||||
'nsIDOMHTMLTextAreaElement.idl',
|
||||
'nsIDOMHTMLTitleElement.idl',
|
||||
'nsIDOMHTMLUListElement.idl',
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
/* -*- Mode: IDL; 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 "nsIDOMHTMLElement.idl"
|
||||
|
||||
/**
|
||||
* The nsIDOMHTMLTableRowElement interface is the interface to a
|
||||
* [X]HTML tr element.
|
||||
*
|
||||
* This interface is trying to follow the DOM Level 2 HTML specification:
|
||||
* http://www.w3.org/TR/DOM-Level-2-HTML/
|
||||
*
|
||||
* with changes from the work-in-progress WHATWG HTML specification:
|
||||
* http://www.whatwg.org/specs/web-apps/current-work/
|
||||
*/
|
||||
|
||||
[scriptable, uuid(02094366-0d3d-47e3-949c-89113a9bcc15)]
|
||||
interface nsIDOMHTMLTableRowElement : nsIDOMHTMLElement
|
||||
{
|
||||
// Modified in DOM Level 2:
|
||||
readonly attribute long rowIndex;
|
||||
// Modified in DOM Level 2:
|
||||
readonly attribute long sectionRowIndex;
|
||||
// Modified in DOM Level 2:
|
||||
readonly attribute nsIDOMHTMLCollection cells;
|
||||
attribute DOMString align;
|
||||
attribute DOMString bgColor;
|
||||
attribute DOMString ch;
|
||||
attribute DOMString chOff;
|
||||
attribute DOMString vAlign;
|
||||
// Modified in DOM Level 2:
|
||||
nsIDOMHTMLElement insertCell(in long index)
|
||||
raises(DOMException);
|
||||
// Modified in DOM Level 2:
|
||||
void deleteCell(in long index)
|
||||
raises(DOMException);
|
||||
};
|
Загрузка…
Ссылка в новой задаче