Title: [119773] trunk/Source/WebCore
Revision
119773
Author
[email protected]
Date
2012-06-07 16:59:48 -0700 (Thu, 07 Jun 2012)

Log Message

Initialize m_document in AXObjectCache's constructor for !HAVE(ACCESSIBILITY) builds
https://bugs.webkit.org/show_bug.cgi?id=88527

Reviewed by Adam Barth.

Initialize the m_document member with the passed on document in the stubbed
AXObjectCache constructor. No behavioral changes.

* accessibility/AXObjectCache.h:
(WebCore::AXObjectCache::AXObjectCache):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (119772 => 119773)


--- trunk/Source/WebCore/ChangeLog	2012-06-07 23:46:17 UTC (rev 119772)
+++ trunk/Source/WebCore/ChangeLog	2012-06-07 23:59:48 UTC (rev 119773)
@@ -1,3 +1,16 @@
+2012-06-07  Peter Beverloo  <[email protected]>
+
+        Initialize m_document in AXObjectCache's constructor for !HAVE(ACCESSIBILITY) builds
+        https://bugs.webkit.org/show_bug.cgi?id=88527
+
+        Reviewed by Adam Barth.
+
+        Initialize the m_document member with the passed on document in the stubbed
+        AXObjectCache constructor. No behavioral changes.
+
+        * accessibility/AXObjectCache.h:
+        (WebCore::AXObjectCache::AXObjectCache):
+
 2012-06-05  James Robinson  <[email protected]>
 
         [chromium] Move deferral-related logic out of Canvas2DLayerChromium

Modified: trunk/Source/WebCore/accessibility/AXObjectCache.h (119772 => 119773)


--- trunk/Source/WebCore/accessibility/AXObjectCache.h	2012-06-07 23:46:17 UTC (rev 119772)
+++ trunk/Source/WebCore/accessibility/AXObjectCache.h	2012-06-07 23:59:48 UTC (rev 119773)
@@ -200,7 +200,7 @@
 bool nodeHasRole(Node*, const String& role);
 
 #if !HAVE(ACCESSIBILITY)
-inline AXObjectCache::AXObjectCache(const Document*) : m_document(0), m_notificationPostTimer(this, 0) { }
+inline AXObjectCache::AXObjectCache(const Document* doc) : m_document(const_cast<Document*>(doc)), m_notificationPostTimer(this, 0) { }
 inline AXObjectCache::~AXObjectCache() { }
 inline AccessibilityObject* AXObjectCache::focusedUIElementForPage(const Page*) { return 0; }
 inline AccessibilityObject* AXObjectCache::get(RenderObject*) { return 0; }
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to