зеркало из https://github.com/mozilla/gecko-dev.git
Bug 893117: Remove nsIDOMHTMLFontElement r=bz
This commit is contained in:
Родитель
faf159a4f8
Коммит
6f10942061
|
@ -31,66 +31,13 @@ NS_IMPL_ADDREF_INHERITED(HTMLFontElement, Element)
|
||||||
NS_IMPL_RELEASE_INHERITED(HTMLFontElement, Element)
|
NS_IMPL_RELEASE_INHERITED(HTMLFontElement, Element)
|
||||||
|
|
||||||
// QueryInterface implementation for HTMLFontElement
|
// QueryInterface implementation for HTMLFontElement
|
||||||
NS_INTERFACE_TABLE_HEAD(HTMLFontElement)
|
NS_INTERFACE_MAP_BEGIN(HTMLFontElement)
|
||||||
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
|
||||||
NS_INTERFACE_TABLE_INHERITED1(HTMLFontElement, nsIDOMHTMLFontElement)
|
|
||||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE
|
|
||||||
NS_ELEMENT_INTERFACE_MAP_END
|
NS_ELEMENT_INTERFACE_MAP_END
|
||||||
|
|
||||||
|
|
||||||
NS_IMPL_ELEMENT_CLONE(HTMLFontElement)
|
NS_IMPL_ELEMENT_CLONE(HTMLFontElement)
|
||||||
|
|
||||||
NS_IMETHODIMP
|
|
||||||
HTMLFontElement::GetColor(nsAString& aColor)
|
|
||||||
{
|
|
||||||
nsString color;
|
|
||||||
GetColor(color);
|
|
||||||
aColor = color;
|
|
||||||
return NS_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
NS_IMETHODIMP
|
|
||||||
HTMLFontElement::SetColor(const nsAString& aColor)
|
|
||||||
{
|
|
||||||
ErrorResult rv;
|
|
||||||
SetColor(aColor, rv);
|
|
||||||
return rv.ErrorCode();
|
|
||||||
}
|
|
||||||
|
|
||||||
NS_IMETHODIMP
|
|
||||||
HTMLFontElement::GetFace(nsAString& aFace)
|
|
||||||
{
|
|
||||||
nsString face;
|
|
||||||
GetFace(face);
|
|
||||||
aFace = face;
|
|
||||||
return NS_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
NS_IMETHODIMP
|
|
||||||
HTMLFontElement::SetFace(const nsAString& aFace)
|
|
||||||
{
|
|
||||||
ErrorResult rv;
|
|
||||||
SetFace(aFace, rv);
|
|
||||||
return rv.ErrorCode();
|
|
||||||
}
|
|
||||||
|
|
||||||
NS_IMETHODIMP
|
|
||||||
HTMLFontElement::GetSize(nsAString& aSize)
|
|
||||||
{
|
|
||||||
nsString size;
|
|
||||||
GetSize(size);
|
|
||||||
aSize = size;
|
|
||||||
return NS_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
NS_IMETHODIMP
|
|
||||||
HTMLFontElement::SetSize(const nsAString& aSize)
|
|
||||||
{
|
|
||||||
ErrorResult rv;
|
|
||||||
SetSize(aSize, rv);
|
|
||||||
return rv.ErrorCode();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
HTMLFontElement::ParseAttribute(int32_t aNamespaceID,
|
HTMLFontElement::ParseAttribute(int32_t aNamespaceID,
|
||||||
nsIAtom* aAttribute,
|
nsIAtom* aAttribute,
|
||||||
|
|
|
@ -7,13 +7,12 @@
|
||||||
|
|
||||||
#include "mozilla/Attributes.h"
|
#include "mozilla/Attributes.h"
|
||||||
#include "nsGenericHTMLElement.h"
|
#include "nsGenericHTMLElement.h"
|
||||||
#include "nsIDOMHTMLFontElement.h"
|
|
||||||
|
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
namespace dom {
|
namespace dom {
|
||||||
|
|
||||||
class HTMLFontElement MOZ_FINAL : public nsGenericHTMLElement,
|
class HTMLFontElement MOZ_FINAL : public nsGenericHTMLElement,
|
||||||
public nsIDOMHTMLFontElement
|
public nsIDOMHTMLElement
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
HTMLFontElement(already_AddRefed<nsINodeInfo> aNodeInfo)
|
HTMLFontElement(already_AddRefed<nsINodeInfo> aNodeInfo)
|
||||||
|
@ -34,9 +33,6 @@ public:
|
||||||
// nsIDOMHTMLElement
|
// nsIDOMHTMLElement
|
||||||
NS_FORWARD_NSIDOMHTMLELEMENT_TO_GENERIC
|
NS_FORWARD_NSIDOMHTMLELEMENT_TO_GENERIC
|
||||||
|
|
||||||
// nsIDOMHTMLFontElement
|
|
||||||
NS_DECL_NSIDOMHTMLFONTELEMENT
|
|
||||||
|
|
||||||
void GetColor(nsString& aColor)
|
void GetColor(nsString& aColor)
|
||||||
{
|
{
|
||||||
GetHTMLAttr(nsGkAtoms::color, aColor);
|
GetHTMLAttr(nsGkAtoms::color, aColor);
|
||||||
|
|
|
@ -23,7 +23,6 @@ XPIDL_SOURCES += [
|
||||||
'nsIDOMHTMLElement.idl',
|
'nsIDOMHTMLElement.idl',
|
||||||
'nsIDOMHTMLEmbedElement.idl',
|
'nsIDOMHTMLEmbedElement.idl',
|
||||||
'nsIDOMHTMLFieldSetElement.idl',
|
'nsIDOMHTMLFieldSetElement.idl',
|
||||||
'nsIDOMHTMLFontElement.idl',
|
|
||||||
'nsIDOMHTMLFormElement.idl',
|
'nsIDOMHTMLFormElement.idl',
|
||||||
'nsIDOMHTMLFrameElement.idl',
|
'nsIDOMHTMLFrameElement.idl',
|
||||||
'nsIDOMHTMLFrameSetElement.idl',
|
'nsIDOMHTMLFrameSetElement.idl',
|
||||||
|
|
|
@ -1,25 +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 nsIDOMHTMLFontElement interface is the interface to a [X]HTML
|
|
||||||
* font 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(e4d86aad-f245-4901-877e-0ae233c5fd37)]
|
|
||||||
interface nsIDOMHTMLFontElement : nsIDOMHTMLElement
|
|
||||||
{
|
|
||||||
attribute DOMString color;
|
|
||||||
attribute DOMString face;
|
|
||||||
attribute DOMString size;
|
|
||||||
};
|
|
Загрузка…
Ссылка в новой задаче