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

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

Issue 275573003: Oilpan: Prepare to move select and option elements to Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 { 92 {
93 if (!m_parent) 93 if (!m_parent)
94 return; 94 return;
95 95
96 Node* selectNode = m_parent->node(); 96 Node* selectNode = m_parent->node();
97 if (!selectNode) 97 if (!selectNode)
98 return; 98 return;
99 99
100 m_haveChildren = true; 100 m_haveChildren = true;
101 101
102 const Vector<HTMLElement*>& listItems = toHTMLSelectElement(selectNode)->lis tItems(); 102 const WillBeHeapVector<RawPtrWillBeMember<HTMLElement> >& listItems = toHTML SelectElement(selectNode)->listItems();
103 unsigned length = listItems.size(); 103 unsigned length = listItems.size();
104 for (unsigned i = 0; i < length; i++) { 104 for (unsigned i = 0; i < length; i++) {
105 AXMenuListOption* option = menuListOptionAXObject(listItems[i]); 105 AXMenuListOption* option = menuListOptionAXObject(listItems[i]);
106 if (option) { 106 if (option) {
107 option->setParent(this); 107 option->setParent(this);
108 m_children.append(option); 108 m_children.append(option);
109 } 109 }
110 } 110 }
111 } 111 }
112 112
(...skipping 25 matching lines...) Expand all
138 ASSERT_ARG(optionIndex, optionIndex < static_cast<int>(m_children.size())); 138 ASSERT_ARG(optionIndex, optionIndex < static_cast<int>(m_children.size()));
139 139
140 AXObjectCache* cache = axObjectCache(); 140 AXObjectCache* cache = axObjectCache();
141 RefPtr<AXObject> child = m_children[optionIndex].get(); 141 RefPtr<AXObject> child = m_children[optionIndex].get();
142 142
143 cache->postNotification(child.get(), document(), AXObjectCache::AXFocusedUIE lementChanged, true, PostSynchronously); 143 cache->postNotification(child.get(), document(), AXObjectCache::AXFocusedUIE lementChanged, true, PostSynchronously);
144 cache->postNotification(child.get(), document(), AXObjectCache::AXMenuListIt emSelected, true, PostSynchronously); 144 cache->postNotification(child.get(), document(), AXObjectCache::AXMenuListIt emSelected, true, PostSynchronously);
145 } 145 }
146 146
147 } // namespace WebCore 147 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698