Remove the pointless nsIContent arg of nsIFrame::AttributeChanged. Bug 281390,

patch by Vidar Braut Haarr <vhaarr+bmo@gmail.com>, r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@179800 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu 2005-09-07 16:49:21 +00:00
parent f50c4ed8b7
commit c3d2c5e7a2
76 changed files with 127 additions and 214 deletions

View File

@ -10390,8 +10390,8 @@ nsCSSFrameConstructor::AttributeChanged(nsIContent* aContent,
// let the frame deal with it now, so we don't have to deal later
if (primaryFrame) {
result = primaryFrame->AttributeChanged(aContent, aNameSpaceID,
aAttribute, aModType);
result = primaryFrame->AttributeChanged(aNameSpaceID, aAttribute,
aModType);
// XXXwaterson should probably check for special IB siblings
// here, and propagate the AttributeChanged notification to
// them, as well. Currently, inline frames don't do anything on

View File

@ -555,8 +555,7 @@ nsFileControlFrame::SyncAttr(PRInt32 aNameSpaceID, nsIAtom* aAttribute,
}
NS_IMETHODIMP
nsFileControlFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsFileControlFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{
@ -570,7 +569,7 @@ nsFileControlFrame::AttributeChanged(nsIContent* aChild,
SyncAttr(aNameSpaceID, aAttribute, SYNC_TEXT);
}
return nsAreaFrame::AttributeChanged(aChild, aNameSpaceID, aAttribute, aModType);
return nsAreaFrame::AttributeChanged(aNameSpaceID, aAttribute, aModType);
}
PRBool

View File

@ -94,8 +94,7 @@ public:
#endif
NS_IMETHOD SetSuggestedSize(nscoord aWidth, nscoord aHeight) { return NS_OK; };
NS_IMETHOD GetFrameForPoint(const nsPoint& aPoint, nsFramePaintLayer aWhichLayer, nsIFrame** aFrame);
NS_IMETHOD AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);
virtual PRBool IsLeaf() const;

View File

@ -306,8 +306,7 @@ nsGfxButtonControlFrame::GetDefaultLabel(nsXPIDLString& aString)
}
NS_IMETHODIMP
nsGfxButtonControlFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsGfxButtonControlFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{
@ -327,7 +326,7 @@ nsGfxButtonControlFrame::AttributeChanged(nsIContent* aChild,
// defer to HTMLButtonControlFrame
} else {
rv = nsHTMLButtonControlFrame::AttributeChanged(aChild, aNameSpaceID, aAttribute, aModType);
rv = nsHTMLButtonControlFrame::AttributeChanged(aNameSpaceID, aAttribute, aModType);
}
return rv;
}

View File

@ -93,8 +93,7 @@ public:
nsIContent * aContent,
nsIFrame** aFrame);
NS_IMETHOD AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);

View File

@ -320,8 +320,7 @@ nsIsIndexFrame::IsLeaf() const
}
NS_IMETHODIMP
nsIsIndexFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsIsIndexFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{
@ -329,7 +328,7 @@ nsIsIndexFrame::AttributeChanged(nsIContent* aChild,
if (nsHTMLAtoms::prompt == aAttribute) {
rv = UpdatePromptLabel();
} else {
rv = nsAreaFrame::AttributeChanged(aChild, aNameSpaceID, aAttribute, aModType);
rv = nsAreaFrame::AttributeChanged(aNameSpaceID, aAttribute, aModType);
}
return rv;
}

View File

@ -110,8 +110,7 @@ public:
#ifdef NS_DEBUG
NS_IMETHOD GetFrameName(nsAString& aResult) const;
#endif
NS_IMETHOD AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);

View File

@ -2783,8 +2783,7 @@ nsTextControlFrame::GetSelectionContr(nsISelectionController **aSelCon)
////NSIFRAME
NS_IMETHODIMP
nsTextControlFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsTextControlFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{
@ -2862,7 +2861,7 @@ nsTextControlFrame::AttributeChanged(nsIContent* aChild,
// Allow the base class to handle common attributes supported
// by all form elements...
else {
rv = nsBoxFrame::AttributeChanged(aChild, aNameSpaceID, aAttribute, aModType);
rv = nsBoxFrame::AttributeChanged(aNameSpaceID, aAttribute, aModType);
}
return rv;

View File

@ -172,8 +172,7 @@ public:
virtual nsIAtom* GetType() const;
/** handler for attribute changes to mContent */
NS_IMETHOD AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);

View File

@ -155,12 +155,11 @@ nsAreaFrame::Destroy(nsPresContext* aPresContext)
}
NS_IMETHODIMP
nsAreaFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsAreaFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{
nsresult rv = nsBlockFrame::AttributeChanged(aChild, aNameSpaceID,
nsresult rv = nsBlockFrame::AttributeChanged(aNameSpaceID,
aAttribute, aModType);
// If the accesskey changed, register for the new value

View File

@ -67,8 +67,7 @@ public:
NS_IMETHOD Destroy(nsPresContext* aPresContext);
NS_IMETHOD AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);
#endif

View File

@ -2979,12 +2979,11 @@ nsBlockFrame::SlideLine(nsBlockReflowState& aState,
}
NS_IMETHODIMP
nsBlockFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsBlockFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{
nsresult rv = nsBlockFrameSuper::AttributeChanged(aChild, aNameSpaceID,
nsresult rv = nsBlockFrameSuper::AttributeChanged(aNameSpaceID,
aAttribute, aModType);
if (NS_FAILED(rv)) {

View File

@ -225,8 +225,7 @@ public:
const nsHTMLReflowState& aReflowState,
nsReflowStatus& aStatus);
NS_IMETHOD AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);

View File

@ -2178,8 +2178,7 @@ nsFrame::CharacterDataChanged(nsPresContext* aPresContext,
}
NS_IMETHODIMP
nsFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{

View File

@ -223,8 +223,7 @@ public:
NS_IMETHOD CharacterDataChanged(nsPresContext* aPresContext,
nsIContent* aChild,
PRBool aAppend);
NS_IMETHOD AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);
NS_IMETHOD IsSplittable(nsSplittableType& aIsSplittable) const;

View File

@ -126,8 +126,7 @@ public:
const nsHTMLReflowState& aReflowState,
nsReflowStatus& aStatus);
NS_IMETHOD AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);
@ -447,12 +446,11 @@ nsSubDocumentFrame::VerifyTree() const
}
NS_IMETHODIMP
nsSubDocumentFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsSubDocumentFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{
nsIAtom *type = aChild->Tag();
nsIAtom *type = mContent->Tag();
if ((type != nsHTMLAtoms::object && aAttribute == nsHTMLAtoms::src) ||
(type == nsHTMLAtoms::object && aAttribute == nsHTMLAtoms::data)) {
@ -481,7 +479,7 @@ nsSubDocumentFrame::AttributeChanged(nsIContent* aChild,
return NS_OK;
nsAutoString value;
aChild->GetAttr(kNameSpaceID_None, nsHTMLAtoms::type, value);
mContent->GetAttr(kNameSpaceID_None, nsHTMLAtoms::type, value);
// Notify our enclosing chrome that the primary content shell
// has changed.

View File

@ -844,14 +844,12 @@ public:
* The first frame that maps that content is asked to deal
* with the change by doing whatever is appropriate.
*
* @param aChild the piece of content whose attribute changed
* @param aNameSpaceID the namespace of the attribute
* @param aAttribute the atom name of the attribute
* @param aModType Whether or not the attribute was added, changed, or removed.
* The constants are defined in nsIDOMMutationEvent.h.
*/
NS_IMETHOD AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType) = 0;

View File

@ -1754,12 +1754,11 @@ nsImageFrame::GetCursor(const nsPoint& aPoint,
}
NS_IMETHODIMP
nsImageFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsImageFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{
nsresult rv = nsSplittableFrame::AttributeChanged(aChild, aNameSpaceID,
nsresult rv = nsSplittableFrame::AttributeChanged(aNameSpaceID,
aAttribute, aModType);
if (NS_FAILED(rv)) {
return rv;

View File

@ -115,8 +115,7 @@ public:
nsEventStatus* aEventStatus);
NS_IMETHOD GetCursor(const nsPoint& aPoint,
nsIFrame::Cursor& aCursor);
NS_IMETHOD AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);

View File

@ -999,8 +999,7 @@ nsMathMLContainerFrame::ReplaceFrame(nsIAtom* aListName,
}
NS_IMETHODIMP
nsMathMLContainerFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsMathMLContainerFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{

View File

@ -192,8 +192,7 @@ public:
// Therefore, there is an overhead here in that our siblings are re-laid
// too (e.g., this happens with <mstyle>, <munder>, <mover>, <munderover>).
NS_IMETHOD
AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);

View File

@ -280,8 +280,7 @@ nsMathMLTokenFrame::ReflowDirtyChild(nsIPresShell* aPresShell,
}
NS_IMETHODIMP
nsMathMLTokenFrame::AttributeChanged(nsIContent* aContent,
PRInt32 aNameSpaceID,
nsMathMLTokenFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{
@ -291,8 +290,7 @@ nsMathMLTokenFrame::AttributeChanged(nsIContent* aContent,
}
return nsMathMLContainerFrame::
AttributeChanged(aContent, aNameSpaceID,
aAttribute, aModType);
AttributeChanged(aNameSpaceID, aAttribute, aModType);
}
void

View File

@ -79,8 +79,7 @@ public:
nsIFrame* aChild);
NS_IMETHOD
AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);
protected:

View File

@ -104,8 +104,7 @@ nsMathMLmfencedFrame::SetInitialChildList(nsPresContext* aPresContext,
}
NS_IMETHODIMP
nsMathMLmfencedFrame::AttributeChanged(nsIContent* aContent,
PRInt32 aNameSpaceID,
nsMathMLmfencedFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{
@ -113,8 +112,7 @@ nsMathMLmfencedFrame::AttributeChanged(nsIContent* aContent,
CreateFencesAndSeparators(GetPresContext());
return nsMathMLContainerFrame::
AttributeChanged(aContent, aNameSpaceID,
aAttribute, aModType);
AttributeChanged(aNameSpaceID, aAttribute, aModType);
}
nsresult

View File

@ -78,8 +78,7 @@ public:
PRUint32 aFlags = 0);
NS_IMETHOD
AttributeChanged(nsIContent* aContent,
PRInt32 aNameSpaceID,
AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);

View File

@ -459,8 +459,7 @@ nsMathMLmfracFrame::Place(nsIRenderingContext& aRenderingContext,
}
NS_IMETHODIMP
nsMathMLmfracFrame::AttributeChanged(nsIContent* aContent,
PRInt32 aNameSpaceID,
nsMathMLmfracFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{
@ -486,8 +485,7 @@ nsMathMLmfracFrame::AttributeChanged(nsIContent* aContent,
}
}
return nsMathMLContainerFrame::
AttributeChanged(aContent, aNameSpaceID,
aAttribute, aModType);
AttributeChanged(aNameSpaceID, aAttribute, aModType);
}
NS_IMETHODIMP

View File

@ -96,8 +96,7 @@ public:
virtual nsIAtom* GetType() const;
NS_IMETHOD
AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);

View File

@ -1002,8 +1002,7 @@ nsMathMLmoFrame::ReflowDirtyChild(nsIPresShell* aPresShell,
}
NS_IMETHODIMP
nsMathMLmoFrame::AttributeChanged(nsIContent* aContent,
PRInt32 aNameSpaceID,
nsMathMLmoFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{
@ -1026,8 +1025,7 @@ nsMathMLmoFrame::AttributeChanged(nsIContent* aContent,
}
return nsMathMLTokenFrame::
AttributeChanged(aContent, aNameSpaceID,
aAttribute, aModType);
AttributeChanged(aNameSpaceID, aAttribute, aModType);
}
// ----------------------

View File

@ -83,8 +83,7 @@ public:
nsIFrame* aChild);
NS_IMETHOD
AttributeChanged(nsIContent* aContent,
PRInt32 aNameSpaceID,
AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);

View File

@ -80,8 +80,7 @@ nsMathMLmoverFrame::~nsMathMLmoverFrame()
}
NS_IMETHODIMP
nsMathMLmoverFrame::AttributeChanged(nsIContent* aContent,
PRInt32 aNameSpaceID,
nsMathMLmoverFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{
@ -92,8 +91,7 @@ nsMathMLmoverFrame::AttributeChanged(nsIContent* aContent,
}
return nsMathMLContainerFrame::
AttributeChanged(aContent, aNameSpaceID,
aAttribute, aModType);
AttributeChanged(aNameSpaceID, aAttribute, aModType);
}
NS_IMETHODIMP

View File

@ -75,8 +75,7 @@ public:
PRUint32 aFlagsToUpdate);
NS_IMETHOD
AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);

View File

@ -203,8 +203,7 @@ nsMathMLmstyleFrame::UpdatePresentationDataFromChildAt(PRInt32 aFirstInd
}
NS_IMETHODIMP
nsMathMLmstyleFrame::AttributeChanged(nsIContent* aContent,
PRInt32 aNameSpaceID,
nsMathMLmstyleFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{

View File

@ -51,8 +51,7 @@ public:
friend nsresult NS_NewMathMLmstyleFrame(nsIPresShell* aPresShell, nsIFrame** aNewFrame);
NS_IMETHOD
AttributeChanged(nsIContent* aContent,
PRInt32 aNameSpaceID,
AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);

View File

@ -80,8 +80,7 @@ nsMathMLmunderFrame::~nsMathMLmunderFrame()
}
NS_IMETHODIMP
nsMathMLmunderFrame::AttributeChanged(nsIContent* aContent,
PRInt32 aNameSpaceID,
nsMathMLmunderFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{
@ -92,8 +91,7 @@ nsMathMLmunderFrame::AttributeChanged(nsIContent* aContent,
}
return nsMathMLContainerFrame::
AttributeChanged(aContent, aNameSpaceID,
aAttribute, aModType);
AttributeChanged(aNameSpaceID, aAttribute, aModType);
}
NS_IMETHODIMP

View File

@ -75,8 +75,7 @@ public:
PRUint32 aFlagsToUpdate);
NS_IMETHOD
AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);

View File

@ -80,8 +80,7 @@ nsMathMLmunderoverFrame::~nsMathMLmunderoverFrame()
}
NS_IMETHODIMP
nsMathMLmunderoverFrame::AttributeChanged(nsIContent* aContent,
PRInt32 aNameSpaceID,
nsMathMLmunderoverFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{
@ -93,8 +92,7 @@ nsMathMLmunderoverFrame::AttributeChanged(nsIContent* aContent,
}
return nsMathMLContainerFrame::
AttributeChanged(aContent, aNameSpaceID,
aAttribute, aModType);
AttributeChanged(aNameSpaceID, aAttribute, aModType);
}
NS_IMETHODIMP

View File

@ -75,8 +75,7 @@ public:
PRUint32 aFlagsToUpdate);
NS_IMETHOD
AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);

View File

@ -171,8 +171,7 @@ nsSVGGenericContainerFrame::ReplaceFrame(nsIAtom* aListName,
}
NS_IMETHODIMP
nsSVGGenericContainerFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsSVGGenericContainerFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{

View File

@ -85,8 +85,7 @@ public:
nsStyleContext* aContext,
nsIFrame* aPrevInFlow);
NS_IMETHOD AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);
/**

View File

@ -98,8 +98,7 @@ public:
nsStyleContext* aContext,
nsIFrame* aPrevInFlow);
NS_IMETHOD AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);
/**
@ -346,8 +345,7 @@ nsSVGInnerSVGFrame::ReplaceFrame(nsIAtom* aListName,
}
NS_IMETHODIMP
nsSVGInnerSVGFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsSVGInnerSVGFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{

View File

@ -199,8 +199,7 @@ public:
nsIFrame* aOldFrame,
nsIFrame* aNewFrame);
NS_IMETHOD AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);
@ -686,8 +685,7 @@ nsSVGOuterSVGFrame::ReplaceFrame(nsIAtom* aListName,
}
NS_IMETHODIMP
nsSVGOuterSVGFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsSVGOuterSVGFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{

View File

@ -134,8 +134,7 @@ nsSVGPathGeometryFrame::Init(nsPresContext* aPresContext,
}
NS_IMETHODIMP
nsSVGPathGeometryFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsSVGPathGeometryFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{

View File

@ -82,8 +82,7 @@ public:
nsStyleContext* aContext,
nsIFrame* aPrevInFlow);
NS_IMETHOD AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);

View File

@ -112,8 +112,7 @@ public:
nsStyleContext* aContext,
nsIFrame* aPrevInFlow);
NS_IMETHOD AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);
@ -346,8 +345,7 @@ nsSVGTextFrame::Init(nsPresContext* aPresContext,
}
NS_IMETHODIMP
nsSVGTextFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsSVGTextFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{

View File

@ -204,8 +204,7 @@ nsTableCellFrame::GetColIndex(PRInt32 &aColIndex) const
}
NS_IMETHODIMP
nsTableCellFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsTableCellFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{
@ -213,7 +212,7 @@ nsTableCellFrame::AttributeChanged(nsIContent* aChild,
nsTableFrame* tableFrame = nsnull;
nsresult rv = nsTableFrame::GetTableFrame(this, tableFrame);
if ((NS_SUCCEEDED(rv)) && (tableFrame)) {
tableFrame->AttributeChangedFor(this, aChild, aAttribute);
tableFrame->AttributeChangedFor(this, mContent, aAttribute);
}
return NS_OK;
}

View File

@ -92,8 +92,7 @@ public:
#endif
NS_IMETHOD AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);

View File

@ -1237,13 +1237,12 @@ nsBoxFrame::AppendFrames(nsIAtom* aListName,
NS_IMETHODIMP
nsBoxFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsBoxFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{
nsresult rv = nsContainerFrame::AttributeChanged(aChild, aNameSpaceID,
aAttribute, aModType);
nsresult rv = nsContainerFrame::AttributeChanged(aNameSpaceID, aAttribute,
aModType);
// Ignore 'width', 'height', 'screenX', 'screenY' and 'sizemode' on a
// <window>.

View File

@ -140,8 +140,7 @@ public:
nsIFrame* asPrevInFlow);
NS_IMETHOD AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);

View File

@ -100,13 +100,12 @@ nsDeckFrame::ChildrenMustHaveWidgets(PRBool& aMust) const
}
NS_IMETHODIMP
nsDeckFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsDeckFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{
nsresult rv = nsBoxFrame::AttributeChanged(aChild, aNameSpaceID,
aAttribute, aModType);
nsresult rv = nsBoxFrame::AttributeChanged(aNameSpaceID, aAttribute,
aModType);
// if the index changed hide the old element and make the now element visible

View File

@ -56,8 +56,7 @@ public:
nsIFrame** aNewFrame,
nsIBoxLayout* aLayoutManager);
NS_IMETHOD AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);

View File

@ -245,13 +245,12 @@ NS_NewImageBoxFrame ( nsIPresShell* aPresShell, nsIFrame** aNewFrame )
} // NS_NewTitledButtonFrame
NS_IMETHODIMP
nsImageBoxFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsImageBoxFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{
nsresult rv = nsLeafBoxFrame::AttributeChanged(aChild, aNameSpaceID,
aAttribute, aModType);
nsresult rv = nsLeafBoxFrame::AttributeChanged(aNameSpaceID, aAttribute,
aModType);
if (aAttribute == nsHTMLAtoms::src) {
UpdateImage();

View File

@ -82,8 +82,7 @@ public:
nsStyleContext* aContext,
nsIFrame* asPrevInFlow);
NS_IMETHOD AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);

View File

@ -131,13 +131,12 @@ nsLeafBoxFrame::Init(nsPresContext* aPresContext,
}
NS_IMETHODIMP
nsLeafBoxFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsLeafBoxFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{
nsresult rv = nsLeafFrame::AttributeChanged(aChild, aNameSpaceID,
aAttribute, aModType);
nsresult rv = nsLeafFrame::AttributeChanged(aNameSpaceID, aAttribute,
aModType);
if (aAttribute == nsXULAtoms::mousethrough)
UpdateMouseThrough();

View File

@ -86,8 +86,7 @@ public:
nsFramePaintLayer aWhichLayer,
nsIFrame** aFrame);
NS_IMETHOD AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);

View File

@ -298,8 +298,7 @@ nsListBoxBodyFrame::Destroy(nsPresContext* aPresContext)
}
NS_IMETHODIMP
nsListBoxBodyFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsListBoxBodyFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{
@ -326,7 +325,7 @@ nsListBoxBodyFrame::AttributeChanged(nsIContent* aChild,
}
}
else
rv = nsBoxFrame::AttributeChanged(aChild, aNameSpaceID, aAttribute, aModType);
rv = nsBoxFrame::AttributeChanged(aNameSpaceID, aAttribute, aModType);
return rv;

View File

@ -77,8 +77,7 @@ public:
NS_IMETHOD Init(nsPresContext* aPresContext, nsIContent* aContent,
nsIFrame* aParent, nsStyleContext* aContext, nsIFrame* aPrevInFlow);
NS_IMETHOD Destroy(nsPresContext* aPresContext);
NS_IMETHOD AttributeChanged(nsIContent* aChild, PRInt32 aNameSpaceID,
nsIAtom* aAttribute, PRInt32 aModType);
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID, nsIAtom* aAttribute, PRInt32 aModType);
// nsIScrollbarMediator
NS_IMETHOD PositionChanged(nsISupports* aScrollbar, PRInt32 aOldIndex, PRInt32& aNewIndex);

View File

@ -696,8 +696,7 @@ nsMenuFrame::ActivateMenu(PRBool aActivateFlag)
}
NS_IMETHODIMP
nsMenuFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsMenuFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{

View File

@ -211,8 +211,7 @@ protected:
// Called as a hook just after the menu goes away.
PRBool OnDestroyed();
NS_IMETHOD AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);
virtual ~nsMenuFrame();

View File

@ -1927,14 +1927,13 @@ nsMenuPopupFrame::IsDisabled(nsIContent* aContent)
}
NS_IMETHODIMP
nsMenuPopupFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsMenuPopupFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{
nsresult rv = nsBoxFrame::AttributeChanged(aChild, aNameSpaceID,
aAttribute, aModType);
nsresult rv = nsBoxFrame::AttributeChanged(aNameSpaceID, aAttribute,
aModType);
if (aAttribute == nsXULAtoms::left || aAttribute == nsXULAtoms::top)
MoveToAttributePosition();

View File

@ -123,8 +123,7 @@ public:
nsStyleContext* aContext,
nsIFrame* aPrevInFlow);
NS_IMETHOD AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);

View File

@ -198,20 +198,19 @@ nsNativeScrollbarFrame::Reflow(nsPresContext* aPresContext,
// our native scrollbar with the correct values.
//
NS_IMETHODIMP
nsNativeScrollbarFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsNativeScrollbarFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{
nsresult rv = nsBoxFrame::AttributeChanged(aChild, aNameSpaceID,
aAttribute, aModType);
nsresult rv = nsBoxFrame::AttributeChanged(aNameSpaceID, aAttribute,
aModType);
if ( aAttribute == nsXULAtoms::curpos ||
aAttribute == nsXULAtoms::maxpos ||
aAttribute == nsXULAtoms::pageincrement ||
aAttribute == nsXULAtoms::increment ) {
nsAutoString valueStr;
aChild->GetAttr(aNameSpaceID, aAttribute, valueStr);
mContent->GetAttr(aNameSpaceID, aAttribute, valueStr);
PRInt32 error;
PRInt32 value = valueStr.ToInteger(&error);

View File

@ -75,8 +75,7 @@ public:
nsIFrame* aParent, nsStyleContext* aContext, nsIFrame* aPrevInFlow);
// nsIFrame overrides
NS_IMETHOD AttributeChanged(nsIContent* aChild, PRInt32 aNameSpaceID,
nsIAtom* aAttribute, PRInt32 aModType);
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID, nsIAtom* aAttribute, PRInt32 aModType);
NS_IMETHOD QueryInterface(const nsIID& aIID, void** aInstancePtr);
NS_IMETHOD_(nsrefcnt) AddRef() { return NS_OK; }

View File

@ -98,18 +98,17 @@ nsProgressMeterFrame::SetInitialChildList(nsPresContext* aPresContext,
{
// Set up our initial flexes.
nsresult rv = nsBoxFrame::SetInitialChildList(aPresContext, aListName, aChildList);
AttributeChanged(mContent, kNameSpaceID_None, nsHTMLAtoms::value, 0);
AttributeChanged(kNameSpaceID_None, nsHTMLAtoms::value, 0);
return rv;
}
NS_IMETHODIMP
nsProgressMeterFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsProgressMeterFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{
nsresult rv = nsBoxFrame::AttributeChanged(aChild, aNameSpaceID,
aAttribute, aModType);
nsresult rv = nsBoxFrame::AttributeChanged(aNameSpaceID, aAttribute,
aModType);
if (NS_OK != rv) {
return rv;
}

View File

@ -62,8 +62,7 @@ public:
nsIAtom* aListName,
nsIFrame* aChildList);
NS_IMETHOD AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);

View File

@ -329,13 +329,12 @@ nsResizerFrame::GetInitialDirection(eDirection& aDirection)
NS_IMETHODIMP
nsResizerFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsResizerFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{
nsresult rv = nsTitleBarFrame::AttributeChanged(aChild, aNameSpaceID,
aAttribute, aModType);
nsresult rv = nsTitleBarFrame::AttributeChanged(aNameSpaceID, aAttribute,
aModType);
if (aAttribute == nsXULAtoms::dir )
{

View File

@ -72,8 +72,7 @@ public:
nsStyleContext* aContext,
nsIFrame* asPrevInFlow);
NS_IMETHOD AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);

View File

@ -130,13 +130,12 @@ nsScrollbarFrame::IsContainingBlock() const
}
NS_IMETHODIMP
nsScrollbarFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsScrollbarFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{
nsresult rv = nsBoxFrame::AttributeChanged(aChild, aNameSpaceID,
aAttribute, aModType);
nsresult rv = nsBoxFrame::AttributeChanged(aNameSpaceID, aAttribute,
aModType);
// if the current position changes, notify any nsGfxScrollFrame
// parent we may have
@ -152,7 +151,7 @@ nsScrollbarFrame::AttributeChanged(nsIContent* aChild,
if (!scrollable)
return rv;
scrollable->CurPosAttributeChanged(aChild, aModType);
scrollable->CurPosAttributeChanged(mContent, aModType);
return rv;
}

View File

@ -63,8 +63,7 @@ public:
#endif
// nsIFrame overrides
NS_IMETHOD AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);

View File

@ -224,13 +224,12 @@ nsSliderFrame::GetIntegerAttribute(nsIContent* content, nsIAtom* atom, PRInt32 d
NS_IMETHODIMP
nsSliderFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsSliderFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{
nsresult rv = nsBoxFrame::AttributeChanged(aChild, aNameSpaceID,
aAttribute, aModType);
nsresult rv = nsBoxFrame::AttributeChanged(aNameSpaceID, aAttribute,
aModType);
// if the current position changes
if (aAttribute == nsXULAtoms::curpos) {
rv = CurrentPositionChanged(GetPresContext());

View File

@ -159,8 +159,7 @@ public:
nsFramePaintLayer aWhichLayer,
PRUint32 aFlags = 0);
NS_IMETHOD AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);

View File

@ -283,13 +283,12 @@ nsSplitterFrame::GetCursor(const nsPoint& aPoint,
}
NS_IMETHODIMP
nsSplitterFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsSplitterFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{
nsresult rv = nsBoxFrame::AttributeChanged(aChild, aNameSpaceID,
aAttribute, aModType);
nsresult rv = nsBoxFrame::AttributeChanged(aNameSpaceID, aAttribute,
aModType);
// if the alignment changed. Let the grippy know
if (aAttribute == nsHTMLAtoms::align) {
// tell the slider its attribute changed so it can
@ -297,7 +296,7 @@ nsSplitterFrame::AttributeChanged(nsIContent* aChild,
nsIFrame* grippy = nsnull;
nsScrollbarButtonFrame::GetChildWithTag(GetPresContext(), nsXULAtoms::grippy, this, grippy);
if (grippy)
grippy->AttributeChanged(aChild, aNameSpaceID, aAttribute, aModType);
grippy->AttributeChanged(aNameSpaceID, aAttribute, aModType);
} else if (aAttribute == nsXULAtoms::state) {
mInner->UpdateState();
}

View File

@ -63,8 +63,7 @@ public:
#endif
// nsIFrame overrides
NS_IMETHOD AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);

View File

@ -122,8 +122,7 @@ NS_NewTextBoxFrame ( nsIPresShell* aPresShell, nsIFrame** aNewFrame )
NS_IMETHODIMP
nsTextBoxFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsTextBoxFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{

View File

@ -66,8 +66,7 @@ public:
NS_IMETHOD Destroy(nsPresContext* aPresContext);
NS_IMETHOD AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);

View File

@ -180,13 +180,12 @@ nsTreeColFrame::GetFrameForPoint(const nsPoint& aPoint,
}
NS_IMETHODIMP
nsTreeColFrame::AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
nsTreeColFrame::AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType)
{
nsresult rv = nsBoxFrame::AttributeChanged(aChild, aNameSpaceID,
aAttribute, aModType);
nsresult rv = nsBoxFrame::AttributeChanged(aNameSpaceID, aAttribute,
aModType);
if (aAttribute == nsXULAtoms::ordinal || aAttribute == nsXULAtoms::primary) {
EnsureColumns();

View File

@ -62,8 +62,7 @@ public:
nsFramePaintLayer aWhichLayer,
nsIFrame** aFrame);
NS_IMETHOD AttributeChanged(nsIContent* aChild,
PRInt32 aNameSpaceID,
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType);