BUILD FIX (r154580): RenderObject::document() returns a reference
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 26 Aug 2013 16:28:16 +0000 (16:28 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 26 Aug 2013 16:28:16 +0000 (16:28 +0000)
See: <https://webkit.org/b/120272>

* accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
(-[WebAccessibilityObjectWrapper _accessibilityParentForSubview:]):
(AXAttributeStringSetHeadingLevel):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@154608 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm

index b674d57..3887d69 100644 (file)
@@ -1,3 +1,13 @@
+2013-08-26  David Kilzer  <ddkilzer@apple.com>
+
+        BUILD FIX (r154580): RenderObject::document() returns a reference
+
+        See: <https://webkit.org/b/120272>
+
+        * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
+        (-[WebAccessibilityObjectWrapper _accessibilityParentForSubview:]):
+        (AXAttributeStringSetHeadingLevel):
+
 2013-08-26  Brent Fulgham  <bfulgham@apple.com>
 
         [Windows] Build fix after r154578.  Return Vector<String>() instead
index f30adb2..7a09f12 100644 (file)
@@ -1273,7 +1273,7 @@ static RenderObject* rendererForView(WAKView* view)
     if (!renderer)
         return nil;
     
-    AccessibilityObject* obj = renderer->document()->axObjectCache()->getOrCreate(renderer);
+    AccessibilityObject* obj = renderer->document().axObjectCache()->getOrCreate(renderer);
     if (obj)
         return obj->parentObjectUnignored()->wrapper();
     return nil;
@@ -1466,7 +1466,7 @@ static void AXAttributeStringSetHeadingLevel(NSMutableAttributedString* attrStri
     if (!renderer)
         return;
     
-    AccessibilityObject* parentObject = renderer->document()->axObjectCache()->getOrCreate(renderer->parent());
+    AccessibilityObject* parentObject = renderer->document().axObjectCache()->getOrCreate(renderer->parent());
     int parentHeadingLevel = parentObject->headingLevel();
     
     if (parentHeadingLevel)