зеркало из https://github.com/mozilla/pjs.git
Bug 495444, r=enn,sr=neil
--HG-- extra : rebase_source : a4eaa6a8c816630456381b78f436447159bd44a8
This commit is contained in:
Родитель
796c106899
Коммит
e13afacc52
|
@ -1109,7 +1109,9 @@ nsXULTemplateBuilder::AttributeChanged(nsIDocument* aDocument,
|
|||
// case we may need to nuke and rebuild the entire content model
|
||||
// beneath the element.
|
||||
if (aAttribute == nsGkAtoms::ref)
|
||||
Rebuild();
|
||||
nsContentUtils::AddScriptRunner(
|
||||
NS_NEW_RUNNABLE_METHOD(nsXULTemplateBuilder, this,
|
||||
RunnableRebuild));
|
||||
|
||||
// Check for a change to the 'datasources' attribute. If so, setup
|
||||
// mDB by parsing the new value and rebuild.
|
||||
|
@ -1119,7 +1121,9 @@ nsXULTemplateBuilder::AttributeChanged(nsIDocument* aDocument,
|
|||
PRBool shouldDelay;
|
||||
LoadDataSources(aDocument, &shouldDelay);
|
||||
if (!shouldDelay)
|
||||
Rebuild();
|
||||
nsContentUtils::AddScriptRunner(
|
||||
NS_NEW_RUNNABLE_METHOD(nsXULTemplateBuilder, this,
|
||||
RunnableRebuild));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -151,6 +151,8 @@ public:
|
|||
virtual nsresult
|
||||
RebuildAll() = 0; // must be implemented by subclasses
|
||||
|
||||
void RunnableRebuild() { Rebuild(); }
|
||||
|
||||
/**
|
||||
* Find the <template> tag that applies for this builder
|
||||
*/
|
||||
|
|
Загрузка…
Ссылка в новой задаче