Reviewed by Maciej and Richard.
authorharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 26 Jan 2005 00:28:57 +0000 (00:28 +0000)
committerharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 26 Jan 2005 00:28:57 +0000 (00:28 +0000)
        <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

WebCore/ChangeLog-2005-08-23
WebCore/khtml/html/html_miscimpl.cpp

index 902487f1a74c6f2913220e66077f332c458d10f3..1c46c12bd569f070eb028521fcf9308c5a140d24 100644 (file)
@@ -1,3 +1,13 @@
+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
index 5d1334bb4774f7190a65bf270eba6cc446f8730b..927498867ae4b9495fd2dfd87b803804d9bea2ea 100644 (file)
@@ -56,7 +56,7 @@ HTMLCollectionImpl::HTMLCollectionImpl(NodeImpl *_base, int _type)
     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()