WebCore:
[WebKit-https.git] / WebCore / page / AccessibilityRenderObject.cpp
index 628f58e..6f7c3e1 100644 (file)
@@ -1037,6 +1037,16 @@ RenderObject* AccessibilityRenderObject::topRenderer() const
     return m_renderer->document()->topDocument()->renderer();
 }
 
+Document* AccessibilityRenderObject::document() const
+{
+    return m_renderer->document();
+}
+
+FrameView* AccessibilityRenderObject::topDocumentFrameView() const
+{
+    return topRenderer()->view()->frameView();
+}
+
 Widget* AccessibilityRenderObject::widget() const
 {
     if (!m_renderer->isWidget())
@@ -1068,6 +1078,15 @@ void AccessibilityRenderObject::getDocumentLinks(Vector<RefPtr<AccessibilityObje
     }
 }
 
+FrameView* AccessibilityRenderObject::documentFrameView() const 
+{ 
+    if (!m_renderer || !m_renderer->document()) 
+        return 0; 
+
+    // this is the RenderObject's Document's Frame's FrameView 
+    return m_renderer->document()->view();
+}
+
 Widget* AccessibilityRenderObject::widgetForAttachmentView() const
 {
     if (!isAttachment())