Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(864)

Unified Diff: Source/core/accessibility/AccessibilityRenderObject.cpp

Issue 23728003: Return Frame&, not Frame* from RenderView::frame() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed PopupMenuTest build Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/accessibility/AccessibilityRenderObject.cpp
diff --git a/Source/core/accessibility/AccessibilityRenderObject.cpp b/Source/core/accessibility/AccessibilityRenderObject.cpp
index 673e7f120b01bcf4e45ac396f90676f9286194e6..6a32f9c9d832daed1b1e6cbcc524885bdf817814 100644
--- a/Source/core/accessibility/AccessibilityRenderObject.cpp
+++ b/Source/core/accessibility/AccessibilityRenderObject.cpp
@@ -2088,8 +2088,7 @@ AccessibilitySVGRoot* AccessibilityRenderObject::remoteSVGRootElement() const
FrameView* frameView = svgImage->frameView();
if (!frameView)
return 0;
- Frame* frame = frameView->frame();
- Document* doc = frame->document();
+ Document* doc = frameView->frame().document();
if (!doc || !doc->isSVGDocument())
return 0;
@@ -2100,7 +2099,7 @@ AccessibilitySVGRoot* AccessibilityRenderObject::remoteSVGRootElement() const
if (!rendererRoot)
return 0;
- AccessibilityObject* rootSVGObject = frame->document()->axObjectCache()->getOrCreate(rendererRoot);
+ AccessibilityObject* rootSVGObject = doc->axObjectCache()->getOrCreate(rendererRoot);
// In order to connect the AX hierarchy from the SVG root element from the loaded resource
// the parent must be set, because there's no other way to get back to who created the image.
« no previous file with comments | « Source/core/accessibility/AccessibilityObject.cpp ('k') | Source/core/accessibility/AccessibilityScrollView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698