author | Justin Lebar <justin.lebar@gmail.com> |
Tue, 12 Jun 2012 18:01:25 -0400 | |
changeset 96531 | c2630a86e9a2ad3859a71e94ae63e939b7636e56 |
parent 96530 | 19d8a63bd98c7a3c7afe192372aa283074cdfa19 |
child 96532 | 65a425a98e860afa7132473dbf6a2f6868374b92 |
push id | 22911 |
push user | emorley@mozilla.com |
push date | Wed, 13 Jun 2012 12:49:30 +0000 |
treeherder | mozilla-central@efbb6480e98e [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | bz |
bugs | 742944 |
milestone | 16.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/content/html/content/src/Makefile.in +++ b/content/html/content/src/Makefile.in @@ -13,16 +13,17 @@ include $(DEPTH)/config/autoconf.mk MODULE = content LIBRARY_NAME = gkconhtmlcon_s LIBXUL_LIBRARY = 1 FAIL_ON_WARNINGS = 1 EXPORTS = \ nsGenericHTMLElement.h \ + nsHTMLIFrameElement.h \ nsClientRect.h \ nsHTMLDNSPrefetch.h \ nsTimeRanges.h \ $(NULL) CPPSRCS = \ HTMLPropertiesCollection.cpp \ nsClientRect.cpp \
--- a/content/html/content/src/nsHTMLIFrameElement.cpp +++ b/content/html/content/src/nsHTMLIFrameElement.cpp @@ -1,108 +1,57 @@ /* -*- 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/Util.h" -#include "nsIDOMHTMLIFrameElement.h" -#include "nsGenericHTMLFrameElement.h" +#include "nsHTMLIFrameElement.h" #include "nsIDOMDocument.h" -#include "nsIDOMGetSVGDocument.h" #include "nsIDOMSVGDocument.h" #include "nsGkAtoms.h" #include "nsIDocument.h" #include "nsMappedAttributes.h" #include "nsDOMError.h" #include "nsRuleData.h" #include "nsStyleConsts.h" using namespace mozilla; using namespace mozilla::dom; -class nsHTMLIFrameElement : public nsGenericHTMLFrameElement - , public nsIDOMHTMLIFrameElement - , public nsIDOMGetSVGDocument -{ -public: - nsHTMLIFrameElement(already_AddRefed<nsINodeInfo> aNodeInfo, - mozilla::dom::FromParser aFromParser = mozilla::dom::NOT_FROM_PARSER); - virtual ~nsHTMLIFrameElement(); - - // nsISupports - NS_DECL_ISUPPORTS_INHERITED - - // nsIDOMNode - NS_FORWARD_NSIDOMNODE(nsGenericHTMLFrameElement::) - - // nsIDOMElement - NS_FORWARD_NSIDOMELEMENT(nsGenericHTMLFrameElement::) - - // nsIDOMHTMLElement - NS_FORWARD_NSIDOMHTMLELEMENT(nsGenericHTMLFrameElement::) - - // nsIDOMHTMLIFrameElement - NS_DECL_NSIDOMHTMLIFRAMEELEMENT - - // nsIDOMGetSVGDocument - NS_DECL_NSIDOMGETSVGDOCUMENT - - // nsIContent - virtual bool ParseAttribute(PRInt32 aNamespaceID, - nsIAtom* aAttribute, - const nsAString& aValue, - nsAttrValue& aResult); - NS_IMETHOD_(bool) IsAttributeMapped(const nsIAtom* aAttribute) const; - virtual nsMapRuleToAttributesFunc GetAttributeMappingFunction() const; - - virtual nsresult Clone(nsINodeInfo *aNodeInfo, nsINode **aResult) const; - virtual nsXPCClassInfo* GetClassInfo(); - virtual nsIDOMNode* AsDOMNode() { return this; } - -protected: - virtual void GetItemValueText(nsAString& text); - virtual void SetItemValueText(const nsAString& text); -}; - - NS_IMPL_NS_NEW_HTML_ELEMENT_CHECK_PARSER(IFrame) - nsHTMLIFrameElement::nsHTMLIFrameElement(already_AddRefed<nsINodeInfo> aNodeInfo, FromParser aFromParser) : nsGenericHTMLFrameElement(aNodeInfo, aFromParser) { } nsHTMLIFrameElement::~nsHTMLIFrameElement() { } - NS_IMPL_ADDREF_INHERITED(nsHTMLIFrameElement,nsGenericElement) NS_IMPL_RELEASE_INHERITED(nsHTMLIFrameElement,nsGenericElement) DOMCI_NODE_DATA(HTMLIFrameElement, nsHTMLIFrameElement) // QueryInterface implementation for nsHTMLIFrameElement NS_INTERFACE_TABLE_HEAD(nsHTMLIFrameElement) NS_HTML_CONTENT_INTERFACE_TABLE_BEGIN(nsHTMLIFrameElement) NS_INTERFACE_TABLE_ENTRY(nsHTMLIFrameElement, nsIDOMHTMLIFrameElement) NS_INTERFACE_TABLE_ENTRY(nsHTMLIFrameElement, nsIDOMGetSVGDocument) NS_OFFSET_AND_INTERFACE_TABLE_END NS_HTML_CONTENT_INTERFACE_TABLE_TO_MAP_SEGUE(nsHTMLIFrameElement, nsGenericHTMLFrameElement) NS_HTML_CONTENT_INTERFACE_TABLE_TAIL_CLASSINFO(HTMLIFrameElement) - NS_IMPL_ELEMENT_CLONE(nsHTMLIFrameElement) - NS_IMPL_STRING_ATTR(nsHTMLIFrameElement, Align, align) NS_IMPL_STRING_ATTR(nsHTMLIFrameElement, FrameBorder, frameborder) NS_IMPL_STRING_ATTR(nsHTMLIFrameElement, Height, height) NS_IMPL_URI_ATTR(nsHTMLIFrameElement, LongDesc, longdesc) NS_IMPL_STRING_ATTR(nsHTMLIFrameElement, MarginHeight, marginheight) NS_IMPL_STRING_ATTR(nsHTMLIFrameElement, MarginWidth, marginwidth) NS_IMPL_STRING_ATTR(nsHTMLIFrameElement, Name, name) NS_IMPL_STRING_ATTR(nsHTMLIFrameElement, Scrolling, scrolling)
new file mode 100644 --- /dev/null +++ b/content/html/content/src/nsHTMLIFrameElement.h @@ -0,0 +1,52 @@ +/* -*- 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 "nsGenericHTMLFrameElement.h" +#include "nsIDOMHTMLIFrameElement.h" +#include "nsIDOMGetSVGDocument.h" + +class nsHTMLIFrameElement : public nsGenericHTMLFrameElement + , public nsIDOMHTMLIFrameElement + , public nsIDOMGetSVGDocument +{ +public: + nsHTMLIFrameElement(already_AddRefed<nsINodeInfo> aNodeInfo, + mozilla::dom::FromParser aFromParser = mozilla::dom::NOT_FROM_PARSER); + virtual ~nsHTMLIFrameElement(); + + // nsISupports + NS_DECL_ISUPPORTS_INHERITED + + // nsIDOMNode + NS_FORWARD_NSIDOMNODE(nsGenericHTMLFrameElement::) + + // nsIDOMElement + NS_FORWARD_NSIDOMELEMENT(nsGenericHTMLFrameElement::) + + // nsIDOMHTMLElement + NS_FORWARD_NSIDOMHTMLELEMENT(nsGenericHTMLFrameElement::) + + // nsIDOMHTMLIFrameElement + NS_DECL_NSIDOMHTMLIFRAMEELEMENT + + // nsIDOMGetSVGDocument + NS_DECL_NSIDOMGETSVGDOCUMENT + + // nsIContent + virtual bool ParseAttribute(PRInt32 aNamespaceID, + nsIAtom* aAttribute, + const nsAString& aValue, + nsAttrValue& aResult); + NS_IMETHOD_(bool) IsAttributeMapped(const nsIAtom* aAttribute) const; + virtual nsMapRuleToAttributesFunc GetAttributeMappingFunction() const; + + virtual nsresult Clone(nsINodeInfo *aNodeInfo, nsINode **aResult) const; + virtual nsXPCClassInfo* GetClassInfo(); + virtual nsIDOMNode* AsDOMNode() { return this; } + +protected: + virtual void GetItemValueText(nsAString& text); + virtual void SetItemValueText(const nsAString& text); +};