зеркало из https://github.com/mozilla/gecko-dev.git
XForms bug 314158 - itemset/repeat can't bind against non-dom elements. r=smaug,aaronr
This commit is contained in:
Родитель
7962a513cf
Коммит
dac3fb8c60
|
@ -292,8 +292,7 @@ nsXFormsItemSetElement::Refresh()
|
|||
|
||||
nsCOMPtr<nsIXFormsContextControl> ctx(do_QueryInterface(contextContainer));
|
||||
if (ctx) {
|
||||
ctx->SetContext(nsCOMPtr<nsIDOMElement>(do_QueryInterface(node)),
|
||||
i + 1, nodeCount);
|
||||
ctx->SetContext(node, i + 1, nodeCount);
|
||||
}
|
||||
// Clone the template content under the item
|
||||
for (PRUint32 j = 0; j < templateNodeCount; ++j) {
|
||||
|
|
|
@ -769,11 +769,8 @@ nsXFormsRepeatElement::Refresh()
|
|||
rv = result->SnapshotItem(i - 1, getter_AddRefs(contextNode));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
nsCOMPtr<nsIDOMElement> contextElement = do_QueryInterface(contextNode);
|
||||
NS_ENSURE_TRUE(contextElement, NS_ERROR_FAILURE);
|
||||
|
||||
// Set context node, position, and size
|
||||
rv = riContext->SetContext(contextElement, i, contextSize);
|
||||
rv = riContext->SetContext(contextNode, i, contextSize);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
// Iterate over template children, clone them, and append them to <contextcontainer>
|
||||
|
|
Загрузка…
Ссылка в новой задаче