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

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

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 21 matching lines...) Expand all
32 #include "core/html/HTMLOptionElement.h" 32 #include "core/html/HTMLOptionElement.h"
33 #include "core/html/HTMLSelectElement.h" 33 #include "core/html/HTMLSelectElement.h"
34 #include "core/rendering/RenderListBox.h" 34 #include "core/rendering/RenderListBox.h"
35 #include "modules/accessibility/AXObjectCacheImpl.h" 35 #include "modules/accessibility/AXObjectCacheImpl.h"
36 36
37 37
38 namespace blink { 38 namespace blink {
39 39
40 using namespace HTMLNames; 40 using namespace HTMLNames;
41 41
42 AXListBoxOption::AXListBoxOption(RenderObject* renderer, AXObjectCacheImpl* axOb jectCache) 42 AXListBoxOption::AXListBoxOption(LayoutObject* renderer, AXObjectCacheImpl* axOb jectCache)
43 : AXRenderObject(renderer, axObjectCache) 43 : AXRenderObject(renderer, axObjectCache)
44 { 44 {
45 } 45 }
46 46
47 AXListBoxOption::~AXListBoxOption() 47 AXListBoxOption::~AXListBoxOption()
48 { 48 {
49 } 49 }
50 50
51 PassRefPtr<AXListBoxOption> AXListBoxOption::create(RenderObject* renderer, AXOb jectCacheImpl* axObjectCache) 51 PassRefPtr<AXListBoxOption> AXListBoxOption::create(LayoutObject* renderer, AXOb jectCacheImpl* axObjectCache)
52 { 52 {
53 return adoptRef(new AXListBoxOption(renderer, axObjectCache)); 53 return adoptRef(new AXListBoxOption(renderer, axObjectCache));
54 } 54 }
55 55
56 bool AXListBoxOption::isEnabled() const 56 bool AXListBoxOption::isEnabled() const
57 { 57 {
58 if (!node()) 58 if (!node())
59 return false; 59 return false;
60 60
61 if (equalIgnoringCase(getAttribute(aria_disabledAttr), "true")) 61 if (equalIgnoringCase(getAttribute(aria_disabledAttr), "true"))
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 unsigned length = listItems.size(); 161 unsigned length = listItems.size();
162 for (unsigned i = 0; i < length; i++) { 162 for (unsigned i = 0; i < length; i++) {
163 if (listItems[i] == node()) 163 if (listItems[i] == node())
164 return i; 164 return i;
165 } 165 }
166 166
167 return -1; 167 return -1;
168 } 168 }
169 169
170 } // namespace blink 170 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/accessibility/AXListBoxOption.h ('k') | Source/modules/accessibility/AXMediaControls.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698