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

Side by Side Diff: Source/core/accessibility/AXMenuList.cpp

Issue 313023003: Oilpan: Replace RefPtrs to Document in core/{accessibility,animation,fetch} with Oilpan transition … (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2010 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 bool AXMenuList::canSetFocusAttribute() const 90 bool AXMenuList::canSetFocusAttribute() const
91 { 91 {
92 if (!node()) 92 if (!node())
93 return false; 93 return false;
94 94
95 return !toElement(node())->isDisabledFormControl(); 95 return !toElement(node())->isDisabledFormControl();
96 } 96 }
97 97
98 void AXMenuList::didUpdateActiveOption(int optionIndex) 98 void AXMenuList::didUpdateActiveOption(int optionIndex)
99 { 99 {
100 RefPtr<Document> document(m_renderer->document()); 100 RefPtrWillBeRawPtr<Document> document(m_renderer->document());
101 AXObjectCache* cache = document->axObjectCache(); 101 AXObjectCache* cache = document->axObjectCache();
102 102
103 const AccessibilityChildrenVector& childObjects = children(); 103 const AccessibilityChildrenVector& childObjects = children();
104 if (!childObjects.isEmpty()) { 104 if (!childObjects.isEmpty()) {
105 ASSERT(childObjects.size() == 1); 105 ASSERT(childObjects.size() == 1);
106 ASSERT(childObjects[0]->isMenuListPopup()); 106 ASSERT(childObjects[0]->isMenuListPopup());
107 107
108 if (childObjects[0]->isMenuListPopup()) { 108 if (childObjects[0]->isMenuListPopup()) {
109 if (AXMenuListPopup* popup = toAXMenuListPopup(childObjects[0].get() )) 109 if (AXMenuListPopup* popup = toAXMenuListPopup(childObjects[0].get() ))
110 popup->didUpdateActiveOption(optionIndex); 110 popup->didUpdateActiveOption(optionIndex);
111 } 111 }
112 } 112 }
113 113
114 cache->postNotification(this, document.get(), AXObjectCache::AXMenuListValue Changed, true, PostSynchronously); 114 cache->postNotification(this, document.get(), AXObjectCache::AXMenuListValue Changed, true, PostSynchronously);
115 } 115 }
116 116
117 } // namespace WebCore 117 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | Source/core/accessibility/AXObjectCache.cpp » ('j') | Source/core/accessibility/AXObjectCache.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698