mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 04:09:50 +00:00
Added namespace ID to the AttributeChanged notification
Part fo the fix for Bug 15153 r=troy
This commit is contained in:
parent
90ca406a4e
commit
a6adfea707
@ -249,6 +249,7 @@ public:
|
||||
NS_IMETHOD ContentStatesChanged(nsIContent* aContent1,
|
||||
nsIContent* aContent2) = 0;
|
||||
NS_IMETHOD AttributeChanged(nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint) = 0; // See nsStyleConsts fot hint values
|
||||
NS_IMETHOD ContentAppended(nsIContent* aContainer,
|
||||
|
@ -132,6 +132,7 @@ public:
|
||||
*/
|
||||
NS_IMETHOD AttributeChanged(nsIDocument *aDocument,
|
||||
nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint) = 0; // See nsStyleConsts fot hint values
|
||||
|
||||
|
@ -77,6 +77,7 @@ public:
|
||||
nsIContent* aContent2) { return NS_OK; }
|
||||
NS_IMETHOD AttributeChanged(nsIDocument *aDocument,
|
||||
nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint) { return NS_OK; }
|
||||
NS_IMETHOD ContentAppended(nsIDocument *aDocument,
|
||||
|
@ -145,6 +145,7 @@ public:
|
||||
nsIContent* aContent2) { return NS_OK; }
|
||||
NS_IMETHOD AttributeChanged(nsIDocument *aDocument,
|
||||
nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint) { return NS_OK; }
|
||||
NS_IMETHOD ContentAppended(nsIDocument *aDocument,
|
||||
@ -1594,6 +1595,7 @@ nsDocument::ContentRemoved(nsIContent* aContainer,
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDocument::AttributeChanged(nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
@ -1602,7 +1604,7 @@ nsDocument::AttributeChanged(nsIContent* aChild,
|
||||
// observers remove themselves during the loop.
|
||||
for (i = 0; i < mObservers.Count(); i++) {
|
||||
nsIDocumentObserver* observer = (nsIDocumentObserver*)mObservers[i];
|
||||
observer->AttributeChanged(this, aChild, aAttribute, aHint);
|
||||
observer->AttributeChanged(this, aChild, aNameSpaceID, aAttribute, aHint);
|
||||
// Make sure that the observer didn't remove itself during the
|
||||
// notification. If it did, update our index and count.
|
||||
if (observer != (nsIDocumentObserver*)mObservers[i]) {
|
||||
|
@ -272,6 +272,7 @@ public:
|
||||
nsISupports* aSubContent);
|
||||
NS_IMETHOD ContentStatesChanged(nsIContent* aContent1, nsIContent* aContent2);
|
||||
NS_IMETHOD AttributeChanged(nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
NS_IMETHOD ContentAppended(nsIContent* aContainer,
|
||||
|
@ -1859,7 +1859,7 @@ nsGenericContainerElement::SetAttribute(PRInt32 aNameSpaceID, nsIAtom* aName,
|
||||
}
|
||||
|
||||
if (NS_SUCCEEDED(rv) && aNotify && (nsnull != mDocument)) {
|
||||
mDocument->AttributeChanged(mContent, aName, NS_STYLE_HINT_UNKNOWN);
|
||||
mDocument->AttributeChanged(mContent, aNameSpaceID, aName, NS_STYLE_HINT_UNKNOWN);
|
||||
}
|
||||
|
||||
return rv;
|
||||
@ -1933,7 +1933,7 @@ nsGenericContainerElement::UnsetAttribute(PRInt32 aNameSpaceID, nsIAtom* aName,
|
||||
}
|
||||
|
||||
if (NS_SUCCEEDED(rv) && found && aNotify && (nsnull != mDocument)) {
|
||||
mDocument->AttributeChanged(mContent, aName, NS_STYLE_HINT_UNKNOWN);
|
||||
mDocument->AttributeChanged(mContent, aNameSpaceID, aName, NS_STYLE_HINT_UNKNOWN);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -126,6 +126,7 @@ public:
|
||||
nsIContent* aContent2);
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint); // See nsStyleConsts fot hint values
|
||||
|
||||
@ -982,11 +983,12 @@ StyleSetImpl::ContentStatesChanged(nsIPresContext* aPresContext,
|
||||
NS_IMETHODIMP
|
||||
StyleSetImpl::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
return mFrameConstructor->AttributeChanged(aPresContext, aContent,
|
||||
aAttribute, aHint);
|
||||
aNameSpaceID, aAttribute, aHint);
|
||||
}
|
||||
|
||||
|
||||
|
@ -89,6 +89,7 @@ public:
|
||||
nsIContent* aContent2);
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
|
||||
|
@ -273,6 +273,7 @@ public:
|
||||
nsIContent* aContent2);
|
||||
NS_IMETHOD AttributeChanged(nsIDocument *aDocument,
|
||||
nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
NS_IMETHOD ContentAppended(nsIDocument *aDocument,
|
||||
@ -1772,13 +1773,14 @@ PresShell::ContentStatesChanged(nsIDocument* aDocument,
|
||||
NS_IMETHODIMP
|
||||
PresShell::AttributeChanged(nsIDocument *aDocument,
|
||||
nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
NS_PRECONDITION(nsnull != mRootFrame, "null root frame");
|
||||
|
||||
EnterReflowLock();
|
||||
nsresult rv = mStyleSet->AttributeChanged(mPresContext, aContent, aAttribute, aHint);
|
||||
nsresult rv = mStyleSet->AttributeChanged(mPresContext, aContent, aNameSpaceID, aAttribute, aHint);
|
||||
VERIFY_STYLE_TREE;
|
||||
ExitReflowLock();
|
||||
return rv;
|
||||
|
@ -249,6 +249,7 @@ public:
|
||||
NS_IMETHOD ContentStatesChanged(nsIContent* aContent1,
|
||||
nsIContent* aContent2) = 0;
|
||||
NS_IMETHOD AttributeChanged(nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint) = 0; // See nsStyleConsts fot hint values
|
||||
NS_IMETHOD ContentAppended(nsIContent* aContainer,
|
||||
|
@ -132,6 +132,7 @@ public:
|
||||
*/
|
||||
NS_IMETHOD AttributeChanged(nsIDocument *aDocument,
|
||||
nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint) = 0; // See nsStyleConsts fot hint values
|
||||
|
||||
|
@ -530,6 +530,7 @@ public:
|
||||
*/
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint) = 0;
|
||||
|
||||
|
@ -112,6 +112,8 @@ public:
|
||||
// Re-resolve style contexts for frame tree
|
||||
NS_IMETHOD ComputeStyleChangeFor(nsIPresContext& aPresContext,
|
||||
nsIFrame* aFrame,
|
||||
PRInt32 aAttrNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
nsStyleChangeList& aChangeList,
|
||||
PRInt32 aMinChange,
|
||||
PRInt32& aTopLevelChange) = 0;
|
||||
|
@ -77,6 +77,7 @@ public:
|
||||
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint) = 0;
|
||||
|
||||
|
@ -136,6 +136,7 @@ public:
|
||||
nsIContent* aContent2) = 0;
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint) = 0; // See nsStyleConsts fot hint values
|
||||
|
||||
|
@ -77,6 +77,7 @@ public:
|
||||
nsIContent* aContent2) { return NS_OK; }
|
||||
NS_IMETHOD AttributeChanged(nsIDocument *aDocument,
|
||||
nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint) { return NS_OK; }
|
||||
NS_IMETHOD ContentAppended(nsIDocument *aDocument,
|
||||
|
@ -145,6 +145,7 @@ public:
|
||||
nsIContent* aContent2) { return NS_OK; }
|
||||
NS_IMETHOD AttributeChanged(nsIDocument *aDocument,
|
||||
nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint) { return NS_OK; }
|
||||
NS_IMETHOD ContentAppended(nsIDocument *aDocument,
|
||||
@ -1594,6 +1595,7 @@ nsDocument::ContentRemoved(nsIContent* aContainer,
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDocument::AttributeChanged(nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
@ -1602,7 +1604,7 @@ nsDocument::AttributeChanged(nsIContent* aChild,
|
||||
// observers remove themselves during the loop.
|
||||
for (i = 0; i < mObservers.Count(); i++) {
|
||||
nsIDocumentObserver* observer = (nsIDocumentObserver*)mObservers[i];
|
||||
observer->AttributeChanged(this, aChild, aAttribute, aHint);
|
||||
observer->AttributeChanged(this, aChild, aNameSpaceID, aAttribute, aHint);
|
||||
// Make sure that the observer didn't remove itself during the
|
||||
// notification. If it did, update our index and count.
|
||||
if (observer != (nsIDocumentObserver*)mObservers[i]) {
|
||||
|
@ -272,6 +272,7 @@ public:
|
||||
nsISupports* aSubContent);
|
||||
NS_IMETHOD ContentStatesChanged(nsIContent* aContent1, nsIContent* aContent2);
|
||||
NS_IMETHOD AttributeChanged(nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
NS_IMETHOD ContentAppended(nsIContent* aContainer,
|
||||
|
@ -1859,7 +1859,7 @@ nsGenericContainerElement::SetAttribute(PRInt32 aNameSpaceID, nsIAtom* aName,
|
||||
}
|
||||
|
||||
if (NS_SUCCEEDED(rv) && aNotify && (nsnull != mDocument)) {
|
||||
mDocument->AttributeChanged(mContent, aName, NS_STYLE_HINT_UNKNOWN);
|
||||
mDocument->AttributeChanged(mContent, aNameSpaceID, aName, NS_STYLE_HINT_UNKNOWN);
|
||||
}
|
||||
|
||||
return rv;
|
||||
@ -1933,7 +1933,7 @@ nsGenericContainerElement::UnsetAttribute(PRInt32 aNameSpaceID, nsIAtom* aName,
|
||||
}
|
||||
|
||||
if (NS_SUCCEEDED(rv) && found && aNotify && (nsnull != mDocument)) {
|
||||
mDocument->AttributeChanged(mContent, aName, NS_STYLE_HINT_UNKNOWN);
|
||||
mDocument->AttributeChanged(mContent, aNameSpaceID, aName, NS_STYLE_HINT_UNKNOWN);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -126,6 +126,7 @@ public:
|
||||
nsIContent* aContent2);
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint); // See nsStyleConsts fot hint values
|
||||
|
||||
@ -982,11 +983,12 @@ StyleSetImpl::ContentStatesChanged(nsIPresContext* aPresContext,
|
||||
NS_IMETHODIMP
|
||||
StyleSetImpl::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
return mFrameConstructor->AttributeChanged(aPresContext, aContent,
|
||||
aAttribute, aHint);
|
||||
aNameSpaceID, aAttribute, aHint);
|
||||
}
|
||||
|
||||
|
||||
|
@ -395,6 +395,7 @@ nsFileControlFrame::GetNamesValues(PRInt32 aMaxNumValues, PRInt32& aNumValues,
|
||||
NS_IMETHODIMP
|
||||
nsFileControlFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
@ -409,7 +410,7 @@ nsFileControlFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
//mTextContent->SetHTMLAttribute(nsHTMLAtoms::disabled, val, PR_TRUE);
|
||||
}
|
||||
|
||||
return nsAreaFrame::AttributeChanged(aPresContext, aChild, aAttribute, aHint);
|
||||
return nsAreaFrame::AttributeChanged(aPresContext, aChild, aNameSpaceID, aAttribute, aHint);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
@ -66,6 +66,7 @@ public:
|
||||
NS_IMETHOD GetFrameForPoint(const nsPoint& aPoint, nsIFrame** aFrame);
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
|
||||
|
@ -93,6 +93,7 @@ public:
|
||||
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)=0;
|
||||
|
||||
|
@ -2654,11 +2654,12 @@ nsBlockFrame::UpdateSpaceManager(nsIPresContext* aPresContext,
|
||||
NS_IMETHODIMP
|
||||
nsBlockFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
nsresult rv = nsBlockFrameSuper::AttributeChanged(aPresContext, aChild,
|
||||
aAttribute, aHint);
|
||||
aNameSpaceID, aAttribute, aHint);
|
||||
|
||||
if (NS_OK != rv) {
|
||||
return rv;
|
||||
|
@ -113,6 +113,7 @@ public:
|
||||
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
|
||||
|
@ -2654,11 +2654,12 @@ nsBlockFrame::UpdateSpaceManager(nsIPresContext* aPresContext,
|
||||
NS_IMETHODIMP
|
||||
nsBlockFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
nsresult rv = nsBlockFrameSuper::AttributeChanged(aPresContext, aChild,
|
||||
aAttribute, aHint);
|
||||
aNameSpaceID, aAttribute, aHint);
|
||||
|
||||
if (NS_OK != rv) {
|
||||
return rv;
|
||||
|
@ -2654,11 +2654,12 @@ nsBlockFrame::UpdateSpaceManager(nsIPresContext* aPresContext,
|
||||
NS_IMETHODIMP
|
||||
nsBlockFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
nsresult rv = nsBlockFrameSuper::AttributeChanged(aPresContext, aChild,
|
||||
aAttribute, aHint);
|
||||
aNameSpaceID, aAttribute, aHint);
|
||||
|
||||
if (NS_OK != rv) {
|
||||
return rv;
|
||||
|
@ -1337,6 +1337,7 @@ nsFrame::ContentChanged(nsIPresContext* aPresContext,
|
||||
NS_IMETHODIMP
|
||||
nsFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
|
@ -193,6 +193,7 @@ public:
|
||||
nsISupports* aSubContent);
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
NS_IMETHOD ContentStateChanged(nsIPresContext* aPresContext,
|
||||
|
@ -110,6 +110,7 @@ public:
|
||||
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
NS_IMETHOD VerifyTree() const;
|
||||
@ -389,6 +390,7 @@ nsHTMLFrameOuterFrame::VerifyTree() const
|
||||
NS_IMETHODIMP
|
||||
nsHTMLFrameOuterFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
|
@ -88,6 +88,7 @@ public:
|
||||
nsIContent* aContent2) { return NS_OK; }
|
||||
NS_IMETHOD AttributeChanged(nsIDocument *aDocument,
|
||||
nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
NS_IMETHOD ContentAppended(nsIDocument *aDocument,
|
||||
@ -674,6 +675,7 @@ nsGfxScrollFrameInner::ScrollPositionDidChange(nsIScrollableView* aScrollable, n
|
||||
NS_IMETHODIMP
|
||||
nsGfxScrollFrameInner::AttributeChanged(nsIDocument *aDocument,
|
||||
nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
|
@ -530,6 +530,7 @@ public:
|
||||
*/
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint) = 0;
|
||||
|
||||
|
@ -827,18 +827,19 @@ nsImageFrame::GetCursor(nsIPresContext& aPresContext,
|
||||
NS_IMETHODIMP
|
||||
nsImageFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
nsresult rv = nsLeafFrame::AttributeChanged(aPresContext, aChild,
|
||||
aAttribute, aHint);
|
||||
aNameSpaceID, aAttribute, aHint);
|
||||
if (NS_OK != rv) {
|
||||
return rv;
|
||||
}
|
||||
if (nsHTMLAtoms::src == aAttribute) {
|
||||
nsAutoString oldSRC, newSRC;
|
||||
mImageLoader.GetURLSpec(oldSRC);
|
||||
aChild->GetAttribute(kNameSpaceID_HTML, nsHTMLAtoms::src, newSRC);
|
||||
aChild->GetAttribute(kNameSpaceID_None, nsHTMLAtoms::src, newSRC);
|
||||
if (!oldSRC.Equals(newSRC)) {
|
||||
#ifdef NOISY_IMAGE_LOADING
|
||||
ListTag(stdout);
|
||||
|
@ -57,6 +57,7 @@ public:
|
||||
PRInt32& aCursor);
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
NS_IMETHOD GetFrameType(nsIAtom** aResult) const;
|
||||
|
@ -1031,6 +1031,7 @@ nsImageMap::ContentStatesChanged(nsIDocument* aDocument,
|
||||
NS_IMETHODIMP
|
||||
nsImageMap::AttributeChanged(nsIDocument *aDocument,
|
||||
nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
|
@ -84,6 +84,7 @@ public:
|
||||
nsIContent* aContent2);
|
||||
NS_IMETHOD AttributeChanged(nsIDocument *aDocument,
|
||||
nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
NS_IMETHOD ContentAppended(nsIDocument *aDocument,
|
||||
|
@ -2654,11 +2654,12 @@ nsBlockFrame::UpdateSpaceManager(nsIPresContext* aPresContext,
|
||||
NS_IMETHODIMP
|
||||
nsBlockFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
nsresult rv = nsBlockFrameSuper::AttributeChanged(aPresContext, aChild,
|
||||
aAttribute, aHint);
|
||||
aNameSpaceID, aAttribute, aHint);
|
||||
|
||||
if (NS_OK != rv) {
|
||||
return rv;
|
||||
|
@ -113,6 +113,7 @@ public:
|
||||
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
|
||||
|
@ -2654,11 +2654,12 @@ nsBlockFrame::UpdateSpaceManager(nsIPresContext* aPresContext,
|
||||
NS_IMETHODIMP
|
||||
nsBlockFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
nsresult rv = nsBlockFrameSuper::AttributeChanged(aPresContext, aChild,
|
||||
aAttribute, aHint);
|
||||
aNameSpaceID, aAttribute, aHint);
|
||||
|
||||
if (NS_OK != rv) {
|
||||
return rv;
|
||||
|
@ -2654,11 +2654,12 @@ nsBlockFrame::UpdateSpaceManager(nsIPresContext* aPresContext,
|
||||
NS_IMETHODIMP
|
||||
nsBlockFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
nsresult rv = nsBlockFrameSuper::AttributeChanged(aPresContext, aChild,
|
||||
aAttribute, aHint);
|
||||
aNameSpaceID, aAttribute, aHint);
|
||||
|
||||
if (NS_OK != rv) {
|
||||
return rv;
|
||||
|
@ -1337,6 +1337,7 @@ nsFrame::ContentChanged(nsIPresContext* aPresContext,
|
||||
NS_IMETHODIMP
|
||||
nsFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
|
@ -193,6 +193,7 @@ public:
|
||||
nsISupports* aSubContent);
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
NS_IMETHOD ContentStateChanged(nsIPresContext* aPresContext,
|
||||
|
@ -88,6 +88,7 @@ public:
|
||||
nsIContent* aContent2) { return NS_OK; }
|
||||
NS_IMETHOD AttributeChanged(nsIDocument *aDocument,
|
||||
nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
NS_IMETHOD ContentAppended(nsIDocument *aDocument,
|
||||
@ -674,6 +675,7 @@ nsGfxScrollFrameInner::ScrollPositionDidChange(nsIScrollableView* aScrollable, n
|
||||
NS_IMETHODIMP
|
||||
nsGfxScrollFrameInner::AttributeChanged(nsIDocument *aDocument,
|
||||
nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
|
@ -827,18 +827,19 @@ nsImageFrame::GetCursor(nsIPresContext& aPresContext,
|
||||
NS_IMETHODIMP
|
||||
nsImageFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
nsresult rv = nsLeafFrame::AttributeChanged(aPresContext, aChild,
|
||||
aAttribute, aHint);
|
||||
aNameSpaceID, aAttribute, aHint);
|
||||
if (NS_OK != rv) {
|
||||
return rv;
|
||||
}
|
||||
if (nsHTMLAtoms::src == aAttribute) {
|
||||
nsAutoString oldSRC, newSRC;
|
||||
mImageLoader.GetURLSpec(oldSRC);
|
||||
aChild->GetAttribute(kNameSpaceID_HTML, nsHTMLAtoms::src, newSRC);
|
||||
aChild->GetAttribute(kNameSpaceID_None, nsHTMLAtoms::src, newSRC);
|
||||
if (!oldSRC.Equals(newSRC)) {
|
||||
#ifdef NOISY_IMAGE_LOADING
|
||||
ListTag(stdout);
|
||||
|
@ -57,6 +57,7 @@ public:
|
||||
PRInt32& aCursor);
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
NS_IMETHOD GetFrameType(nsIAtom** aResult) const;
|
||||
|
@ -1031,6 +1031,7 @@ nsImageMap::ContentStatesChanged(nsIDocument* aDocument,
|
||||
NS_IMETHODIMP
|
||||
nsImageMap::AttributeChanged(nsIDocument *aDocument,
|
||||
nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
|
@ -84,6 +84,7 @@ public:
|
||||
nsIContent* aContent2);
|
||||
NS_IMETHOD AttributeChanged(nsIDocument *aDocument,
|
||||
nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
NS_IMETHOD ContentAppended(nsIDocument *aDocument,
|
||||
|
@ -273,6 +273,7 @@ public:
|
||||
nsIContent* aContent2);
|
||||
NS_IMETHOD AttributeChanged(nsIDocument *aDocument,
|
||||
nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
NS_IMETHOD ContentAppended(nsIDocument *aDocument,
|
||||
@ -1772,13 +1773,14 @@ PresShell::ContentStatesChanged(nsIDocument* aDocument,
|
||||
NS_IMETHODIMP
|
||||
PresShell::AttributeChanged(nsIDocument *aDocument,
|
||||
nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
NS_PRECONDITION(nsnull != mRootFrame, "null root frame");
|
||||
|
||||
EnterReflowLock();
|
||||
nsresult rv = mStyleSet->AttributeChanged(mPresContext, aContent, aAttribute, aHint);
|
||||
nsresult rv = mStyleSet->AttributeChanged(mPresContext, aContent, aNameSpaceID, aAttribute, aHint);
|
||||
VERIFY_STYLE_TREE;
|
||||
ExitReflowLock();
|
||||
return rv;
|
||||
|
@ -110,6 +110,7 @@ public:
|
||||
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
NS_IMETHOD VerifyTree() const;
|
||||
@ -389,6 +390,7 @@ nsHTMLFrameOuterFrame::VerifyTree() const
|
||||
NS_IMETHODIMP
|
||||
nsHTMLFrameOuterFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
|
@ -162,6 +162,7 @@ nsCheckboxControlFrame::PostCreateWidget(nsIPresContext* aPresContext, nscoord&
|
||||
NS_IMETHODIMP
|
||||
nsCheckboxControlFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
@ -182,7 +183,7 @@ nsCheckboxControlFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
}
|
||||
}
|
||||
else
|
||||
return nsNativeFormControlFrame::AttributeChanged(aPresContext, aChild, aAttribute, aHint);
|
||||
return nsNativeFormControlFrame::AttributeChanged(aPresContext, aChild, aNameSpaceID, aAttribute, aHint);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
@ -78,6 +78,7 @@ public:
|
||||
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint) ;
|
||||
NS_IMETHOD HandleEvent(nsIPresContext& aPresContext,
|
||||
|
@ -395,6 +395,7 @@ nsFileControlFrame::GetNamesValues(PRInt32 aMaxNumValues, PRInt32& aNumValues,
|
||||
NS_IMETHODIMP
|
||||
nsFileControlFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
@ -409,7 +410,7 @@ nsFileControlFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
//mTextContent->SetHTMLAttribute(nsHTMLAtoms::disabled, val, PR_TRUE);
|
||||
}
|
||||
|
||||
return nsAreaFrame::AttributeChanged(aPresContext, aChild, aAttribute, aHint);
|
||||
return nsAreaFrame::AttributeChanged(aPresContext, aChild, aNameSpaceID, aAttribute, aHint);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
@ -66,6 +66,7 @@ public:
|
||||
NS_IMETHOD GetFrameForPoint(const nsPoint& aPoint, nsIFrame** aFrame);
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
|
||||
|
@ -367,6 +367,7 @@ nsGfxTextControlFrame::GetText(nsString* aText, PRBool aInitialValue)
|
||||
NS_IMETHODIMP
|
||||
nsGfxTextControlFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
@ -455,7 +456,7 @@ nsGfxTextControlFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
// Allow the base class to handle common attributes supported
|
||||
// by all form elements...
|
||||
else {
|
||||
result = nsFormControlFrame::AttributeChanged(aPresContext, aChild, aAttribute, aHint);
|
||||
result = nsFormControlFrame::AttributeChanged(aPresContext, aChild, aNameSpaceID, aAttribute, aHint);
|
||||
}
|
||||
|
||||
return result;
|
||||
@ -1711,6 +1712,7 @@ NS_IMETHODIMP nsEnderDocumentObserver::ContentStatesChanged(nsIDocument* aDocume
|
||||
|
||||
NS_IMETHODIMP nsEnderDocumentObserver::AttributeChanged(nsIDocument *aDocument,
|
||||
nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{ return NS_OK; }
|
||||
|
@ -123,6 +123,7 @@ public:
|
||||
nsIContent* aContent2);
|
||||
NS_IMETHOD AttributeChanged(nsIDocument *aDocument,
|
||||
nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
NS_IMETHOD ContentAppended(nsIDocument *aDocument,
|
||||
@ -314,6 +315,7 @@ public:
|
||||
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
|
||||
|
@ -44,6 +44,7 @@ NS_NewNativeButtonControlFrame(nsIFrame** aNewFrame)
|
||||
NS_IMETHODIMP
|
||||
nsNativeButtonControlFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
@ -67,7 +68,7 @@ nsNativeButtonControlFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
// Allow the base class to handle common attributes supported
|
||||
// by all form elements...
|
||||
else {
|
||||
result = Inherited::AttributeChanged(aPresContext, aChild, aAttribute, aHint);
|
||||
result = Inherited::AttributeChanged(aPresContext, aChild, aNameSpaceID, aAttribute, aHint);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
@ -31,6 +31,7 @@ public:
|
||||
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
|
||||
|
@ -99,6 +99,7 @@ nsNativeCheckboxControlFrame::PostCreateWidget(nsIPresContext* aPresContext, nsc
|
||||
NS_IMETHODIMP
|
||||
nsNativeCheckboxControlFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
@ -121,7 +122,7 @@ nsNativeCheckboxControlFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
// Allow the base class to handle common attributes supported
|
||||
// by all form elements...
|
||||
else {
|
||||
result = Inherited::AttributeChanged(aPresContext, aChild, aAttribute, aHint);
|
||||
result = Inherited::AttributeChanged(aPresContext, aChild, aNameSpaceID, aAttribute, aHint);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
@ -32,6 +32,7 @@ public:
|
||||
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
|
||||
|
@ -166,6 +166,7 @@ nsNativeFormControlFrame::Reflow(nsIPresContext& aPresContext,
|
||||
NS_IMETHODIMP
|
||||
nsNativeFormControlFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
|
@ -45,6 +45,7 @@ public:
|
||||
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
/**
|
||||
|
@ -117,6 +117,7 @@ nsNativeRadioControlFrame::PostCreateWidget(nsIPresContext* aPresContext, nscoor
|
||||
NS_IMETHODIMP
|
||||
nsNativeRadioControlFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
@ -140,7 +141,7 @@ nsNativeRadioControlFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
// Allow the base class to handle common attributes supported
|
||||
// by all form elements...
|
||||
else {
|
||||
result = Inherited::AttributeChanged(aPresContext, aChild, aAttribute, aHint);
|
||||
result = Inherited::AttributeChanged(aPresContext, aChild, aNameSpaceID, aAttribute, aHint);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
@ -41,6 +41,7 @@ public:
|
||||
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
|
||||
|
@ -142,6 +142,7 @@ public:
|
||||
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
|
||||
@ -1219,6 +1220,7 @@ void nsNativeSelectControlFrame::SetOptionSelectedCache(PRInt32 indx, PRBool aVa
|
||||
NS_IMETHODIMP
|
||||
nsNativeSelectControlFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
|
@ -156,6 +156,7 @@ nsNativeTextControlFrame::GetText(nsString* aText, PRBool aInitialValue)
|
||||
NS_IMETHODIMP
|
||||
nsNativeTextControlFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
@ -188,7 +189,7 @@ nsNativeTextControlFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
// Allow the base class to handle common attributes supported
|
||||
// by all form elements...
|
||||
else {
|
||||
result = nsNativeFormControlFrame::AttributeChanged(aPresContext, aChild, aAttribute, aHint);
|
||||
result = nsNativeFormControlFrame::AttributeChanged(aPresContext, aChild, aNameSpaceID, aAttribute, aHint);
|
||||
}
|
||||
NS_RELEASE(text);
|
||||
}
|
||||
@ -219,12 +220,12 @@ nsNativeTextControlFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
// Allow the base class to handle common attributes supported
|
||||
// by all form elements...
|
||||
else {
|
||||
result = nsNativeFormControlFrame::AttributeChanged(aPresContext, aChild, aAttribute, aHint);
|
||||
result = nsNativeFormControlFrame::AttributeChanged(aPresContext, aChild, aNameSpaceID, aAttribute, aHint);
|
||||
}
|
||||
NS_RELEASE(textArea);
|
||||
}
|
||||
else { // We didn't get a Text or TextArea. Uh oh...
|
||||
result = nsNativeFormControlFrame::AttributeChanged(aPresContext, aChild, aAttribute, aHint);
|
||||
result = nsNativeFormControlFrame::AttributeChanged(aPresContext, aChild, aNameSpaceID, aAttribute, aHint);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -38,6 +38,7 @@ public:
|
||||
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
|
||||
|
@ -127,6 +127,7 @@ public:
|
||||
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
protected:
|
||||
@ -1184,6 +1185,7 @@ void nsSelectControlFrame::SetOptionSelected(PRUint32 indx, PRBool aValue)
|
||||
NS_IMETHODIMP
|
||||
nsSelectControlFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
|
@ -93,6 +93,7 @@ public:
|
||||
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)=0;
|
||||
|
||||
|
@ -89,6 +89,7 @@ public:
|
||||
nsIContent* aContent2);
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
|
||||
|
@ -126,6 +126,7 @@ public:
|
||||
nsIContent* aContent2);
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint); // See nsStyleConsts fot hint values
|
||||
|
||||
@ -982,11 +983,12 @@ StyleSetImpl::ContentStatesChanged(nsIPresContext* aPresContext,
|
||||
NS_IMETHODIMP
|
||||
StyleSetImpl::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
return mFrameConstructor->AttributeChanged(aPresContext, aContent,
|
||||
aAttribute, aHint);
|
||||
aNameSpaceID, aAttribute, aHint);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1470,11 +1470,12 @@ nsBoxFrame::AppendFrames(nsIPresContext& aPresContext,
|
||||
NS_IMETHODIMP
|
||||
nsBoxFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
nsresult rv = nsHTMLContainerFrame::AttributeChanged(aPresContext, aChild,
|
||||
aAttribute, aHint);
|
||||
aNameSpaceID, aAttribute, aHint);
|
||||
|
||||
if (NS_OK != rv) {
|
||||
return rv;
|
||||
|
@ -88,6 +88,7 @@ public:
|
||||
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
|
||||
|
@ -75,11 +75,12 @@ nsDeckFrame::Init(nsIPresContext& aPresContext,
|
||||
NS_IMETHODIMP
|
||||
nsDeckFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
nsresult rv = nsBoxFrame::AttributeChanged(aPresContext, aChild,
|
||||
aAttribute, aHint);
|
||||
aNameSpaceID, aAttribute, aHint);
|
||||
|
||||
|
||||
// if the index changed hide the old element and make the now element visible
|
||||
|
@ -47,6 +47,7 @@ public:
|
||||
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
|
||||
|
@ -407,6 +407,7 @@ nsMenuFrame::ActivateMenu(PRBool aActivateFlag)
|
||||
NS_IMETHODIMP
|
||||
nsMenuFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
|
@ -169,6 +169,7 @@ protected:
|
||||
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
|
||||
|
@ -669,11 +669,12 @@ nsProgressMeterFrame::CalcSize(nsIPresContext& aPresContext, int& width, int& he
|
||||
NS_IMETHODIMP
|
||||
nsProgressMeterFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
nsresult rv = nsLeafFrame::AttributeChanged(aPresContext, aChild,
|
||||
aAttribute, aHint);
|
||||
aNameSpaceID, aAttribute, aHint);
|
||||
if (NS_OK != rv) {
|
||||
return rv;
|
||||
}
|
||||
|
@ -76,6 +76,7 @@ public:
|
||||
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
|
||||
|
@ -309,11 +309,12 @@ nsScrollbarFrame::Init(nsIPresContext& aPresContext,
|
||||
NS_IMETHODIMP
|
||||
nsScrollbarFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
nsresult rv = nsBoxFrame::AttributeChanged(aPresContext, aChild,
|
||||
aAttribute, aHint);
|
||||
aNameSpaceID, aAttribute, aHint);
|
||||
// if the current position changes
|
||||
if ( aAttribute == nsXULAtoms::curpos ||
|
||||
aAttribute == nsXULAtoms::maxpos ||
|
||||
@ -324,7 +325,7 @@ nsScrollbarFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIFrame* slider;
|
||||
nsScrollbarButtonFrame::GetChildWithTag(nsXULAtoms::slider, this, slider);
|
||||
if (slider)
|
||||
slider->AttributeChanged(aPresContext, aChild, aAttribute, aHint);
|
||||
slider->AttributeChanged(aPresContext, aChild, aNameSpaceID, aAttribute, aHint);
|
||||
}
|
||||
|
||||
return rv;
|
||||
|
@ -45,6 +45,7 @@ public:
|
||||
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
|
||||
|
@ -184,11 +184,12 @@ nsSliderFrame::GetIntegerAttribute(nsIContent* content, nsIAtom* atom, PRInt32 d
|
||||
NS_IMETHODIMP
|
||||
nsSliderFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
nsresult rv = nsHTMLContainerFrame::AttributeChanged(aPresContext, aChild,
|
||||
aAttribute, aHint);
|
||||
aNameSpaceID, aAttribute, aHint);
|
||||
// if the current position changes
|
||||
if (aAttribute == nsXULAtoms::curpos) {
|
||||
CurrentPositionChanged(aPresContext);
|
||||
|
@ -66,6 +66,7 @@ public:
|
||||
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
|
||||
|
@ -287,11 +287,12 @@ nsSplitterFrame::GetCursor(nsIPresContext& aPresContext,
|
||||
NS_IMETHODIMP
|
||||
nsSplitterFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
nsresult rv = nsBoxFrame::AttributeChanged(aPresContext, aChild,
|
||||
aAttribute, aHint);
|
||||
aNameSpaceID, aAttribute, aHint);
|
||||
// if the alignment changed. Let the grippy know
|
||||
if (aAttribute == nsHTMLAtoms::align) {
|
||||
// tell the slider its attribute changed so it can
|
||||
@ -299,7 +300,7 @@ nsSplitterFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIFrame* grippy = nsnull;
|
||||
nsScrollbarButtonFrame::GetChildWithTag(nsXULAtoms::grippy, this, grippy);
|
||||
if (grippy)
|
||||
grippy->AttributeChanged(aPresContext, aChild, aAttribute, aHint);
|
||||
grippy->AttributeChanged(aPresContext, aChild, aNameSpaceID, aAttribute, aHint);
|
||||
} else if (aAttribute == nsXULAtoms::state) {
|
||||
mImpl->UpdateState();
|
||||
}
|
||||
|
@ -46,6 +46,7 @@ public:
|
||||
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
|
||||
|
@ -170,6 +170,7 @@ NS_NewTitledButtonFrame ( nsIFrame** aNewFrame )
|
||||
NS_IMETHODIMP
|
||||
nsTitledButtonFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
|
@ -48,6 +48,7 @@ public:
|
||||
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
|
||||
|
@ -425,7 +425,7 @@ static void ForceDrawFrame(nsIFrame * aFrame)
|
||||
//
|
||||
NS_IMETHODIMP
|
||||
nsToolbarFrame :: AttributeChanged ( nsIPresContext* aPresContext, nsIContent* aChild,
|
||||
nsIAtom* aAttribute, PRInt32 aHint)
|
||||
PRInt32 aNameSpaceID, nsIAtom* aAttribute, PRInt32 aHint)
|
||||
{
|
||||
nsresult rv = NS_OK;
|
||||
|
||||
@ -439,7 +439,7 @@ nsToolbarFrame :: AttributeChanged ( nsIPresContext* aPresContext, nsIContent* a
|
||||
nsAllocator::Free ( iHateNSString );
|
||||
}
|
||||
else
|
||||
rv = nsBoxFrame::AttributeChanged ( aPresContext, aChild, aAttribute, aHint );
|
||||
rv = nsBoxFrame::AttributeChanged ( aPresContext, aChild, aNameSpaceID, aAttribute, aHint );
|
||||
|
||||
return rv;
|
||||
|
||||
|
@ -78,6 +78,7 @@ public:
|
||||
nsEventStatus& aEventStatus);
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint) ;
|
||||
|
||||
|
@ -117,10 +117,11 @@ nsTreeCellFrame::Init(nsIPresContext& aPresContext,
|
||||
|
||||
NS_IMETHODIMP nsTreeCellFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint)
|
||||
{
|
||||
nsresult rv = nsTableCellFrame::AttributeChanged(aPresContext, aChild, aAttribute, aHint);
|
||||
nsresult rv = nsTableCellFrame::AttributeChanged(aPresContext, aChild, aNameSpaceID, aAttribute, aHint);
|
||||
if (mAnonymousContent && (aAttribute == nsHTMLAtoms::align || aAttribute == nsXULAtoms::crop
|
||||
|| aAttribute == nsHTMLAtoms::value))
|
||||
{
|
||||
|
@ -29,6 +29,7 @@ public:
|
||||
|
||||
NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint);
|
||||
NS_IMETHOD GetFrameForPoint(const nsPoint& aPoint, // Overridden to capture events
|
||||
|
Loading…
x
Reference in New Issue
Block a user