Merge for backout of changeset f947b766de6f

This commit is contained in:
Shawn Wilsher 2010-02-18 10:07:16 -08:00
Родитель c880b994d8 ffb105fa8b
Коммит e8b6d3eb24
5 изменённых файлов: 5 добавлений и 47 удалений

Просмотреть файл

@ -198,8 +198,6 @@ nsHTMLAnchorElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent,
nsIContent* aBindingParent,
PRBool aCompileEventHandlers)
{
Link::ResetLinkState();
nsresult rv = nsGenericHTMLElement::BindToTree(aDocument, aParent,
aBindingParent,
aCompileEventHandlers);
@ -219,12 +217,9 @@ nsHTMLAnchorElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent,
void
nsHTMLAnchorElement::UnbindFromTree(PRBool aDeep, PRBool aNullParent)
{
// If this link is ever reinserted into a document, it might
// be under a different xml:base, so forget the cached state now.
Link::ResetLinkState();
if (IsInDoc()) {
RegUnRegAccessKey(PR_FALSE);
Link::ResetLinkState();
}
nsGenericHTMLElement::UnbindFromTree(aDeep, aNullParent);

Просмотреть файл

@ -204,8 +204,6 @@ nsHTMLAreaElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent,
nsIContent* aBindingParent,
PRBool aCompileEventHandlers)
{
Link::ResetLinkState();
nsresult rv = nsGenericHTMLElement::BindToTree(aDocument, aParent,
aBindingParent,
aCompileEventHandlers);
@ -221,12 +219,11 @@ nsHTMLAreaElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent,
void
nsHTMLAreaElement::UnbindFromTree(PRBool aDeep, PRBool aNullParent)
{
// If this link is ever reinserted into a document, it might
// be under a different xml:base, so forget the cached state now.
Link::ResetLinkState();
if (IsInDoc()) {
RegUnRegAccessKey(PR_FALSE);
// If this link is ever reinserted into a document, it might
// be under a different xml:base, so forget the cached state now
Link::ResetLinkState();
}
nsGenericHTMLElement::UnbindFromTree(aDeep, aNullParent);

Просмотреть файл

@ -203,8 +203,6 @@ nsHTMLLinkElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent,
nsIContent* aBindingParent,
PRBool aCompileEventHandlers)
{
Link::ResetLinkState();
nsresult rv = nsGenericHTMLElement::BindToTree(aDocument, aParent,
aBindingParent,
aCompileEventHandlers);
@ -216,7 +214,7 @@ nsHTMLLinkElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent,
CreateAndDispatchEvent(aDocument, NS_LITERAL_STRING("DOMLinkAdded"));
return rv;
return rv;
}
NS_IMETHODIMP
@ -236,8 +234,6 @@ nsHTMLLinkElement::LinkRemoved()
void
nsHTMLLinkElement::UnbindFromTree(PRBool aDeep, PRBool aNullParent)
{
// If this link is ever reinserted into a document, it might
// be under a different xml:base, so forget the cached state now.
Link::ResetLinkState();
// Once we have XPCOMGC we shouldn't need to call UnbindFromTree during Unlink

Просмотреть файл

@ -121,31 +121,6 @@ nsSVGAElement::GetTarget(nsIDOMSVGAnimatedString * *aTarget)
//----------------------------------------------------------------------
// nsIContent methods
nsresult
nsSVGAElement::BindToTree(nsIDocument *aDocument, nsIContent *aParent,
nsIContent *aBindingParent,
PRBool aCompileEventHandlers)
{
Link::ResetLinkState();
nsresult rv = nsSVGAElementBase::BindToTree(aDocument, aParent,
aBindingParent,
aCompileEventHandlers);
NS_ENSURE_SUCCESS(rv, rv);
return NS_OK;
}
void
nsSVGAElement::UnbindFromTree(PRBool aDeep, PRBool aNullParent)
{
// If this link is ever reinserted into a document, it might
// be under a different xml:base, so forget the cached state now.
Link::ResetLinkState();
nsSVGAElementBase::UnbindFromTree(aDeep, aNullParent);
}
nsLinkState
nsSVGAElement::GetLinkState() const
{

Просмотреть файл

@ -78,11 +78,6 @@ public:
NS_IMETHOD LinkRemoved() { return NS_OK; }
// nsIContent
virtual nsresult BindToTree(nsIDocument *aDocument, nsIContent *aParent,
nsIContent *aBindingParent,
PRBool aCompileEventHandlers);
virtual void UnbindFromTree(PRBool aDeep = PR_TRUE,
PRBool aNullParent = PR_TRUE);
virtual PRBool IsFocusable(PRInt32 *aTabIndex = nsnull);
virtual PRBool IsLink(nsIURI** aURI) const;
virtual void GetLinkTarget(nsAString& aTarget);