Implement support for repeat element (bug 269132). Patch by allan@beaufour.dk, r=aaronr sr=bryner.
git-svn-id: svn://10.0.0.236/trunk@166341 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -81,6 +81,7 @@ public:
|
||||
|
||||
// nsIXTFElement overrides
|
||||
NS_IMETHOD OnDestroyed();
|
||||
NS_IMETHOD DocumentChanged(nsIDOMDocument *aNewDocument);
|
||||
NS_IMETHOD ParentChanged(nsIDOMElement *aNewParent);
|
||||
NS_IMETHOD WillSetAttribute(nsIAtom *aName, const nsAString &aValue);
|
||||
NS_IMETHOD AttributeSet(nsIAtom *aName, const nsAString &aValue);
|
||||
@@ -109,6 +110,7 @@ nsXFormsOutputElement::OnCreated(nsIXTFXMLVisualWrapper *aWrapper)
|
||||
#endif
|
||||
aWrapper->SetNotificationMask(nsIXTFElement::NOTIFY_WILL_SET_ATTRIBUTE |
|
||||
nsIXTFElement::NOTIFY_ATTRIBUTE_SET |
|
||||
nsIXTFElement::NOTIFY_DOCUMENT_CHANGED |
|
||||
nsIXTFElement::NOTIFY_PARENT_CHANGED);
|
||||
|
||||
nsresult rv;
|
||||
@@ -164,11 +166,22 @@ nsXFormsOutputElement::OnDestroyed()
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXFormsOutputElement::DocumentChanged(nsIDOMDocument *aNewDocument)
|
||||
{
|
||||
// We need to re-evaluate our instance data binding when our document
|
||||
// changes, since our context can change
|
||||
if (aNewDocument)
|
||||
Refresh();
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXFormsOutputElement::ParentChanged(nsIDOMElement *aNewParent)
|
||||
{
|
||||
// We need to re-evaluate our instance data binding when our parent
|
||||
// changes, since xmlns declarations in effect could have changed.
|
||||
// We need to re-evaluate our instance data binding when our parent changes,
|
||||
// since xmlns declarations or our context could have changed.
|
||||
if (aNewParent) {
|
||||
Refresh();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user