Backed out changeset 783151ff2018

This commit is contained in:
Dão Gottwald 2010-08-10 15:09:01 +02:00
Родитель efe2f7588f
Коммит 8f53350b46
5 изменённых файлов: 11 добавлений и 12 удалений

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

@ -117,11 +117,12 @@ nsNodeUtils::AttributeWillChange(nsIContent* aContent,
} }
void void
nsNodeUtils::AttributeChanged(Element* aElement, nsNodeUtils::AttributeChanged(nsIContent* aContent,
PRInt32 aNameSpaceID, PRInt32 aNameSpaceID,
nsIAtom* aAttribute, nsIAtom* aAttribute,
PRInt32 aModType) PRInt32 aModType)
{ {
Element* aElement = aContent->AsElement();
nsIDocument* doc = aElement->GetOwnerDoc(); nsIDocument* doc = aElement->GetOwnerDoc();
IMPL_MUTATION_NOTIFICATION(AttributeChanged, aElement, IMPL_MUTATION_NOTIFICATION(AttributeChanged, aElement,
(doc, aElement, aNameSpaceID, aAttribute, (doc, aElement, aNameSpaceID, aAttribute,

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

@ -85,13 +85,13 @@ public:
/** /**
* Send AttributeChanged notifications to nsIMutationObservers. * Send AttributeChanged notifications to nsIMutationObservers.
* @param aElement Element whose data changed * @param aContent Node whose data changed
* @param aNameSpaceID Namespace of changed attribute * @param aNameSpaceID Namespace of changed attribute
* @param aAttribute Local-name of changed attribute * @param aAttribute Local-name of changed attribute
* @param aModType Type of change (add/change/removal) * @param aModType Type of change (add/change/removal)
* @see nsIMutationObserver::AttributeChanged * @see nsIMutationObserver::AttributeChanged
*/ */
static void AttributeChanged(mozilla::dom::Element* aElement, static void AttributeChanged(nsIContent* aContent,
PRInt32 aNameSpaceID, PRInt32 aNameSpaceID,
nsIAtom* aAttribute, nsIAtom* aAttribute,
PRInt32 aModType); PRInt32 aModType);

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

@ -1,5 +1,6 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* ***** BEGIN LICENSE BLOCK ***** *
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
* *
* The contents of this file are subject to the Mozilla Public License Version * The contents of this file are subject to the Mozilla Public License Version
@ -69,7 +70,7 @@
#include "nsCSSAnonBoxes.h" #include "nsCSSAnonBoxes.h"
#include "nsAutoPtr.h" #include "nsAutoPtr.h"
#include "nsStyleSet.h" #include "nsStyleSet.h"
#include "mozilla/dom/Element.h" #include "nsIContent.h"
#include "nsDisplayList.h" #include "nsDisplayList.h"
#include "nsNodeUtils.h" #include "nsNodeUtils.h"
#include "mozAutoDocUpdate.h" #include "mozAutoDocUpdate.h"
@ -269,7 +270,7 @@ nsHTMLFramesetFrame::FrameResizePrefCallback(const char* aPref, void* aClosure)
frame->RecalculateBorderResize(); frame->RecalculateBorderResize();
if (doc) { if (doc) {
nsNodeUtils::AttributeChanged(frame->GetContent()->AsElement(), nsNodeUtils::AttributeChanged(frame->GetContent(),
kNameSpaceID_None, kNameSpaceID_None,
nsGkAtoms::frameborder, nsGkAtoms::frameborder,
nsIDOMMutationEvent::MODIFICATION); nsIDOMMutationEvent::MODIFICATION);

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

@ -61,14 +61,11 @@
#include "nsIFormProcessor.h" #include "nsIFormProcessor.h"
#include "nsIServiceManager.h" #include "nsIServiceManager.h"
#include "nsEscape.h" #include "nsEscape.h"
#include "mozilla/dom/Element.h"
#ifdef MOZ_SVG #ifdef MOZ_SVG
#include "nsHtml5SVGLoadDispatcher.h" #include "nsHtml5SVGLoadDispatcher.h"
#endif #endif
namespace dom = mozilla::dom;
static NS_DEFINE_CID(kFormProcessorCID, NS_FORMPROCESSOR_CID); static NS_DEFINE_CID(kFormProcessorCID, NS_FORMPROCESSOR_CID);
/** /**
@ -316,7 +313,7 @@ nsHtml5TreeOperation::Perform(nsHtml5TreeOpExecutor* aBuilder,
return AppendToDocument(node, aBuilder); return AppendToDocument(node, aBuilder);
} }
case eTreeOpAddAttributes: { case eTreeOpAddAttributes: {
dom::Element* node = (*(mOne.node))->AsElement(); nsIContent* node = *(mOne.node);
nsHtml5HtmlAttributes* attributes = mTwo.attributes; nsHtml5HtmlAttributes* attributes = mTwo.attributes;
nsHtml5OtherDocUpdate update(node->GetOwnerDoc(), nsHtml5OtherDocUpdate update(node->GetOwnerDoc(),

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

@ -38,11 +38,11 @@
#ifndef nsHtml5TreeOperation_h__ #ifndef nsHtml5TreeOperation_h__
#define nsHtml5TreeOperation_h__ #define nsHtml5TreeOperation_h__
#include "nsIContent.h"
#include "nsHtml5DocumentMode.h" #include "nsHtml5DocumentMode.h"
#include "nsHtml5HtmlAttributes.h" #include "nsHtml5HtmlAttributes.h"
#include "nsXPCOMStrings.h" #include "nsXPCOMStrings.h"
class nsIContent;
class nsHtml5TreeOpExecutor; class nsHtml5TreeOpExecutor;
class nsHtml5StateSnapshot; class nsHtml5StateSnapshot;