<rdar://problem/
3963731> AX VO: Changing window sizes causes a crash using with Voice Over - KWQPtrDictImpl::clear
* khtml/html/html_miscimpl.cpp:
(HTMLCollectionImpl::HTMLCollectionImpl):
Ensure that isHTMLDocument before calling HTMLDocument-only method.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8451
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-01-25 David Harrison <harrison@apple.com>
+
+ Reviewed by Maciej and Richard.
+
+ <rdar://problem/3963731> AX VO: Changing window sizes causes a crash using with Voice Over - KWQPtrDictImpl::clear
+
+ * khtml/html/html_miscimpl.cpp:
+ (HTMLCollectionImpl::HTMLCollectionImpl):
+ Ensure that isHTMLDocument before calling HTMLDocument-only method.
+
2005-01-25 Richard Williamson <rjw@apple.com>
Part one of fix for <rdar://problem/3757712> REGRESSION (Mail): WebCore does not allow Devanagari ligature input
base->ref();
type = _type;
idsDone = false;
- info = base->isDocumentNode() ? static_cast<HTMLDocumentImpl*>(base->getDocument())->collectionInfo(type) : 0;
+ info = base->isDocumentNode() && base->getDocument()->isHTMLDocument() ? static_cast<HTMLDocumentImpl*>(base->getDocument())->collectionInfo(type) : 0;
}
HTMLCollectionImpl::~HTMLCollectionImpl()