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

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

Issue 23819007: Have Node::document() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 4 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/AccessibilityMenuList.cpp
diff --git a/Source/core/accessibility/AccessibilityMenuList.cpp b/Source/core/accessibility/AccessibilityMenuList.cpp
index b84ab0a807e2f6a9a1ce21008d18dff1ac8c13d6..46dd227a98eb3cfff580b669c6f38dbc3f9772a3 100644
--- a/Source/core/accessibility/AccessibilityMenuList.cpp
+++ b/Source/core/accessibility/AccessibilityMenuList.cpp
@@ -56,7 +56,7 @@ void AccessibilityMenuList::addChildren()
{
m_haveChildren = true;
- AXObjectCache* cache = m_renderer->document()->axObjectCache();
+ AXObjectCache* cache = m_renderer->document().axObjectCache();
AccessibilityObject* list = cache->getOrCreate(MenuListPopupRole);
if (!list)
@@ -97,7 +97,7 @@ bool AccessibilityMenuList::canSetFocusAttribute() const
void AccessibilityMenuList::didUpdateActiveOption(int optionIndex)
{
- RefPtr<Document> document = m_renderer->document();
+ RefPtr<Document> document = &m_renderer->document();
AXObjectCache* cache = document->axObjectCache();
const AccessibilityChildrenVector& childObjects = children();
« no previous file with comments | « Source/core/accessibility/AccessibilityListBoxOption.cpp ('k') | Source/core/accessibility/AccessibilityNodeObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698