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

Side by Side Diff: Source/core/accessibility/AXListBoxOption.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) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 202
203 int AXListBoxOption::listBoxOptionIndex() const 203 int AXListBoxOption::listBoxOptionIndex() const
204 { 204 {
205 if (!m_optionElement) 205 if (!m_optionElement)
206 return -1; 206 return -1;
207 207
208 HTMLSelectElement* selectElement = listBoxOptionParentNode(); 208 HTMLSelectElement* selectElement = listBoxOptionParentNode();
209 if (!selectElement) 209 if (!selectElement)
210 return -1; 210 return -1;
211 211
212 const Vector<HTMLElement*>& listItems = selectElement->listItems(); 212 const WillBeHeapVector<RawPtrWillBeMember<HTMLElement> >& listItems = select Element->listItems();
213 unsigned length = listItems.size(); 213 unsigned length = listItems.size();
214 for (unsigned i = 0; i < length; i++) { 214 for (unsigned i = 0; i < length; i++) {
215 if (listItems[i] == m_optionElement) 215 if (listItems[i] == m_optionElement)
216 return i; 216 return i;
217 } 217 }
218 218
219 return -1; 219 return -1;
220 } 220 }
221 221
222 } // namespace WebCore 222 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698