OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012, Google Inc. All rights reserved. | 2 * Copyright (C) 2012, Google 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 aria_roledescriptionAttr, | 206 aria_roledescriptionAttr, |
207 new StringAttributeSetter(AXStringAttribute::AriaRoleDescription)); | 207 new StringAttributeSetter(AXStringAttribute::AriaRoleDescription)); |
208 } | 208 } |
209 return axSparseAttributeSetterMap; | 209 return axSparseAttributeSetterMap; |
210 } | 210 } |
211 | 211 |
212 AXNodeObject::AXNodeObject(Node* node, AXObjectCacheImpl& axObjectCache) | 212 AXNodeObject::AXNodeObject(Node* node, AXObjectCacheImpl& axObjectCache) |
213 : AXObject(axObjectCache), | 213 : AXObject(axObjectCache), |
214 m_ariaRole(UnknownRole), | 214 m_ariaRole(UnknownRole), |
215 m_childrenDirty(false), | 215 m_childrenDirty(false), |
216 m_node(node) { | 216 m_node(node) {} |
217 } | |
218 | 217 |
219 AXNodeObject* AXNodeObject::create(Node* node, | 218 AXNodeObject* AXNodeObject::create(Node* node, |
220 AXObjectCacheImpl& axObjectCache) { | 219 AXObjectCacheImpl& axObjectCache) { |
221 return new AXNodeObject(node, axObjectCache); | 220 return new AXNodeObject(node, axObjectCache); |
222 } | 221 } |
223 | 222 |
224 AXNodeObject::~AXNodeObject() { | 223 AXNodeObject::~AXNodeObject() { |
225 ASSERT(!m_node); | 224 ASSERT(!m_node); |
226 } | 225 } |
227 | 226 |
(...skipping 2887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3115 return String(); | 3114 return String(); |
3116 return toTextControlElement(node)->strippedPlaceholder(); | 3115 return toTextControlElement(node)->strippedPlaceholder(); |
3117 } | 3116 } |
3118 | 3117 |
3119 DEFINE_TRACE(AXNodeObject) { | 3118 DEFINE_TRACE(AXNodeObject) { |
3120 visitor->trace(m_node); | 3119 visitor->trace(m_node); |
3121 AXObject::trace(visitor); | 3120 AXObject::trace(visitor); |
3122 } | 3121 } |
3123 | 3122 |
3124 } // namespace blink | 3123 } // namespace blink |
OLD | NEW |