зеркало из https://github.com/mozilla/gecko-dev.git
Bug 684470 - Remove the FromParser argument from nsHTMLMediaElement and subclasses' constructors; r=jst
This commit is contained in:
Родитель
4542f41878
Коммит
3fdd270683
|
@ -50,8 +50,7 @@ class nsHTMLAudioElement : public nsHTMLMediaElement,
|
|||
public nsIJSNativeInitializer
|
||||
{
|
||||
public:
|
||||
nsHTMLAudioElement(already_AddRefed<nsINodeInfo> aNodeInfo,
|
||||
mozilla::dom::FromParser aFromParser = mozilla::dom::NOT_FROM_PARSER);
|
||||
nsHTMLAudioElement(already_AddRefed<nsINodeInfo> aNodeInfo);
|
||||
virtual ~nsHTMLAudioElement();
|
||||
|
||||
// nsISupports
|
||||
|
|
|
@ -73,8 +73,7 @@ public:
|
|||
CANPLAY_YES
|
||||
};
|
||||
|
||||
nsHTMLMediaElement(already_AddRefed<nsINodeInfo> aNodeInfo,
|
||||
mozilla::dom::FromParser aFromParser = mozilla::dom::NOT_FROM_PARSER);
|
||||
nsHTMLMediaElement(already_AddRefed<nsINodeInfo> aNodeInfo);
|
||||
virtual ~nsHTMLMediaElement();
|
||||
|
||||
/**
|
||||
|
|
|
@ -45,8 +45,7 @@ class nsHTMLVideoElement : public nsHTMLMediaElement,
|
|||
public nsIDOMHTMLVideoElement
|
||||
{
|
||||
public:
|
||||
nsHTMLVideoElement(already_AddRefed<nsINodeInfo> aNodeInfo,
|
||||
mozilla::dom::FromParser aFromParser = mozilla::dom::NOT_FROM_PARSER);
|
||||
nsHTMLVideoElement(already_AddRefed<nsINodeInfo> aNodeInfo);
|
||||
virtual ~nsHTMLVideoElement();
|
||||
|
||||
// nsISupports
|
||||
|
|
|
@ -90,7 +90,7 @@ NS_NewHTMLAudioElement(already_AddRefed<nsINodeInfo> aNodeInfo,
|
|||
NS_ENSURE_TRUE(nodeInfo, nsnull);
|
||||
}
|
||||
|
||||
return new nsHTMLAudioElement(nodeInfo.forget(), aFromParser);
|
||||
return new nsHTMLAudioElement(nodeInfo.forget());
|
||||
}
|
||||
|
||||
NS_IMPL_ADDREF_INHERITED(nsHTMLAudioElement, nsHTMLMediaElement)
|
||||
|
@ -108,9 +108,8 @@ NS_HTML_CONTENT_INTERFACE_TABLE_TAIL_CLASSINFO(HTMLAudioElement)
|
|||
NS_IMPL_ELEMENT_CLONE(nsHTMLAudioElement)
|
||||
|
||||
|
||||
nsHTMLAudioElement::nsHTMLAudioElement(already_AddRefed<nsINodeInfo> aNodeInfo,
|
||||
FromParser aFromParser)
|
||||
: nsHTMLMediaElement(aNodeInfo, aFromParser)
|
||||
nsHTMLAudioElement::nsHTMLAudioElement(already_AddRefed<nsINodeInfo> aNodeInfo)
|
||||
: nsHTMLMediaElement(aNodeInfo)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -50,12 +50,8 @@
|
|||
#include "nsIDOMDocument.h"
|
||||
#include "nsDOMError.h"
|
||||
#include "nsNodeInfoManager.h"
|
||||
#include "plbase64.h"
|
||||
#include "nsNetUtil.h"
|
||||
#include "prmem.h"
|
||||
#include "nsNetUtil.h"
|
||||
#include "nsXPCOMStrings.h"
|
||||
#include "prlock.h"
|
||||
#include "nsThreadUtils.h"
|
||||
#include "nsIThreadInternal.h"
|
||||
#include "nsContentUtils.h"
|
||||
|
@ -1269,8 +1265,7 @@ NS_IMETHODIMP nsHTMLMediaElement::SetMuted(PRBool aMuted)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
nsHTMLMediaElement::nsHTMLMediaElement(already_AddRefed<nsINodeInfo> aNodeInfo,
|
||||
FromParser aFromParser)
|
||||
nsHTMLMediaElement::nsHTMLMediaElement(already_AddRefed<nsINodeInfo> aNodeInfo)
|
||||
: nsGenericHTMLElement(aNodeInfo),
|
||||
mCurrentLoadID(0),
|
||||
mNetworkState(nsIDOMHTMLMediaElement::NETWORK_EMPTY),
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
|
||||
using namespace mozilla::dom;
|
||||
|
||||
NS_IMPL_NS_NEW_HTML_ELEMENT_CHECK_PARSER(Video)
|
||||
NS_IMPL_NS_NEW_HTML_ELEMENT(Video)
|
||||
|
||||
NS_IMPL_ADDREF_INHERITED(nsHTMLVideoElement, nsHTMLMediaElement)
|
||||
NS_IMPL_RELEASE_INHERITED(nsHTMLVideoElement, nsHTMLMediaElement)
|
||||
|
@ -100,9 +100,8 @@ NS_IMETHODIMP nsHTMLVideoElement::GetVideoHeight(PRUint32 *aVideoHeight)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
nsHTMLVideoElement::nsHTMLVideoElement(already_AddRefed<nsINodeInfo> aNodeInfo,
|
||||
FromParser aFromParser)
|
||||
: nsHTMLMediaElement(aNodeInfo, aFromParser)
|
||||
nsHTMLVideoElement::nsHTMLVideoElement(already_AddRefed<nsINodeInfo> aNodeInfo)
|
||||
: nsHTMLMediaElement(aNodeInfo)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче