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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXListBoxOption.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 return 0; 192 return 0;
193 } 193 }
194 194
195 int AXListBoxOption::listBoxOptionIndex() const 195 int AXListBoxOption::listBoxOptionIndex() const
196 { 196 {
197 HTMLSelectElement* selectElement = listBoxOptionParentNode(); 197 HTMLSelectElement* selectElement = listBoxOptionParentNode();
198 if (!selectElement) 198 if (!selectElement)
199 return -1; 199 return -1;
200 200
201 const WillBeHeapVector<RawPtrWillBeMember<HTMLElement>>& listItems = selectE lement->listItems(); 201 const HeapVector<Member<HTMLElement>>& listItems = selectElement->listItems( );
202 unsigned length = listItems.size(); 202 unsigned length = listItems.size();
203 for (unsigned i = 0; i < length; i++) { 203 for (unsigned i = 0; i < length; i++) {
204 if (listItems[i] == getNode()) 204 if (listItems[i] == getNode())
205 return i; 205 return i;
206 } 206 }
207 207
208 return -1; 208 return -1;
209 } 209 }
210 210
211 } // namespace blink 211 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698