Fix the non-mac build.
authorhausmann@webkit.org <hausmann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Apr 2008 10:27:52 +0000 (10:27 +0000)
committerhausmann@webkit.org <hausmann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Apr 2008 10:27:52 +0000 (10:27 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@31522 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/page/AXObjectCache.h
WebCore/page/AccessibilityObject.h

index 0a9171b..97ed63c 100644 (file)
@@ -1,3 +1,12 @@
+2008-04-01  Simon Hausmann  <hausmann@webkit.org>
+
+        Fix the non-mac build.
+
+        * page/AXObjectCache.h: Don't reference AccessibilityObjects when
+        building without accessibility.
+        * page/AccessibilityObject.h: Don't include RetainPtr.h for non-mac
+        builds.
+
 2008-04-01  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
 
         Reviewed by Simon.
index 19093d4..d5dc615 100644 (file)
@@ -31,7 +31,9 @@
 #include <wtf/HashMap.h>
 #include <wtf/HashSet.h>
 #include <wtf/RefPtr.h>
+#if PLATFORM(MAC)
 #include <wtf/RetainPtr.h>
+#endif
 
 #ifdef __OBJC__
     @class AccessibilityObjectWrapper;
@@ -84,8 +86,10 @@ namespace WebCore {
 
         AXID getAXID(AccessibilityObject*);
 
+#if PLATFORM(MAC)
         HashMap<RenderObject*, RefPtr<AccessibilityObject> > m_objects;
         HashSet<AXID, IntHash<AXID>, AXIDHashTraits> m_idsInUse;
+#endif
     };
 
 #if !PLATFORM(MAC)
index ba3ada4..2fcf7f5 100644 (file)
@@ -32,7 +32,9 @@
 #include "VisiblePosition.h"
 #include <wtf/RefPtr.h>
 #include <wtf/Vector.h>
+#if PLATFORM(MAC)
 #include <wtf/RetainPtr.h>
+#endif
 
 typedef struct _NSRange NSRange;