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

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

Issue 22887044: [oilpan] Make the oilpan branch build on Mac. (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Add FIXME. 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/accessibility/AccessibilityImageMapLink.cpp ('k') | Source/core/css/CSSParser.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 24 matching lines...) Expand all
35 #include "core/html/HTMLSelectElement.h" 35 #include "core/html/HTMLSelectElement.h"
36 #include "core/rendering/RenderListBox.h" 36 #include "core/rendering/RenderListBox.h"
37 37
38 using namespace std; 38 using namespace std;
39 39
40 namespace WebCore { 40 namespace WebCore {
41 41
42 using namespace HTMLNames; 42 using namespace HTMLNames;
43 43
44 AccessibilityListBoxOption::AccessibilityListBoxOption() 44 AccessibilityListBoxOption::AccessibilityListBoxOption()
45 : m_optionElement(0)
46 { 45 {
47 } 46 }
48 47
49 AccessibilityListBoxOption::~AccessibilityListBoxOption() 48 AccessibilityListBoxOption::~AccessibilityListBoxOption()
50 { 49 {
51 } 50 }
52 51
53 PassRefPtr<AccessibilityListBoxOption> AccessibilityListBoxOption::create() 52 PassRefPtr<AccessibilityListBoxOption> AccessibilityListBoxOption::create()
54 { 53 {
55 return adoptRef(new AccessibilityListBoxOption()); 54 return adoptRef(new AccessibilityListBoxOption());
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 const Vector<Member<HTMLElement> >& listItems = selectElement->listItems(); 218 const Vector<Member<HTMLElement> >& listItems = selectElement->listItems();
220 unsigned length = listItems.size(); 219 unsigned length = listItems.size();
221 for (unsigned i = 0; i < length; i++) 220 for (unsigned i = 0; i < length; i++)
222 if (listItems[i] == m_optionElement) 221 if (listItems[i] == m_optionElement)
223 return i; 222 return i;
224 223
225 return -1; 224 return -1;
226 } 225 }
227 226
228 } // namespace WebCore 227 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/accessibility/AccessibilityImageMapLink.cpp ('k') | Source/core/css/CSSParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698