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:
parent
f50c4ed8b7
commit
c3d2c5e7a2
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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)) {
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -2178,8 +2178,7 @@ nsFrame::CharacterDataChanged(nsPresContext* aPresContext,
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsFrame::AttributeChanged(nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsFrame::AttributeChanged(PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aModType)
|
||||
{
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -999,8 +999,7 @@ nsMathMLContainerFrame::ReplaceFrame(nsIAtom* aListName,
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsMathMLContainerFrame::AttributeChanged(nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsMathMLContainerFrame::AttributeChanged(PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aModType)
|
||||
{
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -79,8 +79,7 @@ public:
|
||||
nsIFrame* aChild);
|
||||
|
||||
NS_IMETHOD
|
||||
AttributeChanged(nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
AttributeChanged(PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aModType);
|
||||
protected:
|
||||
|
||||
@ -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
|
||||
|
||||
@ -78,8 +78,7 @@ public:
|
||||
PRUint32 aFlags = 0);
|
||||
|
||||
NS_IMETHOD
|
||||
AttributeChanged(nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
AttributeChanged(PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aModType);
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -96,8 +96,7 @@ public:
|
||||
virtual nsIAtom* GetType() const;
|
||||
|
||||
NS_IMETHOD
|
||||
AttributeChanged(nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
AttributeChanged(PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aModType);
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
// ----------------------
|
||||
|
||||
@ -83,8 +83,7 @@ public:
|
||||
nsIFrame* aChild);
|
||||
|
||||
NS_IMETHOD
|
||||
AttributeChanged(nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
AttributeChanged(PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aModType);
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -75,8 +75,7 @@ public:
|
||||
PRUint32 aFlagsToUpdate);
|
||||
|
||||
NS_IMETHOD
|
||||
AttributeChanged(nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
AttributeChanged(PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aModType);
|
||||
|
||||
|
||||
@ -203,8 +203,7 @@ nsMathMLmstyleFrame::UpdatePresentationDataFromChildAt(PRInt32 aFirstInd
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsMathMLmstyleFrame::AttributeChanged(nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsMathMLmstyleFrame::AttributeChanged(PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aModType)
|
||||
{
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -75,8 +75,7 @@ public:
|
||||
PRUint32 aFlagsToUpdate);
|
||||
|
||||
NS_IMETHOD
|
||||
AttributeChanged(nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
AttributeChanged(PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aModType);
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -75,8 +75,7 @@ public:
|
||||
PRUint32 aFlagsToUpdate);
|
||||
|
||||
NS_IMETHOD
|
||||
AttributeChanged(nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
AttributeChanged(PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aModType);
|
||||
|
||||
|
||||
@ -171,8 +171,7 @@ nsSVGGenericContainerFrame::ReplaceFrame(nsIAtom* aListName,
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsSVGGenericContainerFrame::AttributeChanged(nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsSVGGenericContainerFrame::AttributeChanged(PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aModType)
|
||||
{
|
||||
|
||||
@ -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);
|
||||
/**
|
||||
|
||||
@ -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)
|
||||
{
|
||||
|
||||
@ -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)
|
||||
{
|
||||
|
||||
@ -134,8 +134,7 @@ nsSVGPathGeometryFrame::Init(nsPresContext* aPresContext,
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsSVGPathGeometryFrame::AttributeChanged(nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsSVGPathGeometryFrame::AttributeChanged(PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aModType)
|
||||
{
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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)
|
||||
{
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -92,8 +92,7 @@ public:
|
||||
#endif
|
||||
|
||||
|
||||
NS_IMETHOD AttributeChanged(nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aModType);
|
||||
|
||||
|
||||
@ -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>.
|
||||
|
||||
@ -140,8 +140,7 @@ public:
|
||||
nsIFrame* asPrevInFlow);
|
||||
|
||||
|
||||
NS_IMETHOD AttributeChanged(nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aModType);
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -696,8 +696,7 @@ nsMenuFrame::ActivateMenu(PRBool aActivateFlag)
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsMenuFrame::AttributeChanged(nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsMenuFrame::AttributeChanged(PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aModType)
|
||||
{
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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; }
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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 )
|
||||
{
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -63,8 +63,7 @@ public:
|
||||
#endif
|
||||
|
||||
// nsIFrame overrides
|
||||
NS_IMETHOD AttributeChanged(nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aModType);
|
||||
|
||||
|
||||
@ -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());
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
@ -63,8 +63,7 @@ public:
|
||||
#endif
|
||||
|
||||
// nsIFrame overrides
|
||||
NS_IMETHOD AttributeChanged(nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
NS_IMETHOD AttributeChanged(PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aModType);
|
||||
|
||||
|
||||
@ -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)
|
||||
{
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user