зеркало из https://github.com/mozilla/gecko-dev.git
Fix bug # 124743: RDF SEQs. r=tingley sr=ben
This commit is contained in:
Родитель
66a9afbfc9
Коммит
025bf62abb
|
@ -233,8 +233,8 @@ RDFContainerUtilsImpl::IsContainer(nsIRDFDataSource *aDataSource, nsIRDFResource
|
|||
if (! _retval)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
if (IsA(aDataSource, aResource, kRDF_Bag) ||
|
||||
IsA(aDataSource, aResource, kRDF_Seq) ||
|
||||
if (IsA(aDataSource, aResource, kRDF_Seq) ||
|
||||
IsA(aDataSource, aResource, kRDF_Bag) ||
|
||||
IsA(aDataSource, aResource, kRDF_Alt)) {
|
||||
*_retval = PR_TRUE;
|
||||
}
|
||||
|
|
|
@ -2899,7 +2899,7 @@ nsBookmarksService::GetSynthesizedType(nsIRDFResource *aNode, nsIRDFNode **aType
|
|||
// (which is either a bookmark or a bookmark folder, since everything
|
||||
// else is annotated)
|
||||
PRBool isContainer = PR_FALSE;
|
||||
(void)gRDFC->IsContainer(mInner, aNode, &isContainer);
|
||||
(void)gRDFC->IsSeq(mInner, aNode, &isContainer);
|
||||
*aType = (isContainer) ? kNC_Folder : kNC_Bookmark;
|
||||
NS_ADDREF(*aType);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче