| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * (C) 2007 David Smith (catfish.man@gmail.com) | 6 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. |
| 8 * All rights reserved. | 8 * All rights reserved. |
| 9 * (C) 2007 Eric Seidel (eric@webkit.org) | 9 * (C) 2007 Eric Seidel (eric@webkit.org) |
| 10 * | 10 * |
| (...skipping 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1181 return cache->get()->computedRoleForNode(this); | 1181 return cache->get()->computedRoleForNode(this); |
| 1182 } | 1182 } |
| 1183 | 1183 |
| 1184 String Element::computedName() { | 1184 String Element::computedName() { |
| 1185 document().updateStyleAndLayoutIgnorePendingStylesheetsForNode(this); | 1185 document().updateStyleAndLayoutIgnorePendingStylesheetsForNode(this); |
| 1186 std::unique_ptr<ScopedAXObjectCache> cache = | 1186 std::unique_ptr<ScopedAXObjectCache> cache = |
| 1187 ScopedAXObjectCache::create(document()); | 1187 ScopedAXObjectCache::create(document()); |
| 1188 return cache->get()->computedNameForNode(this); | 1188 return cache->get()->computedNameForNode(this); |
| 1189 } | 1189 } |
| 1190 | 1190 |
| 1191 AccessibleNode* Element::existingAccessibleNode() const { |
| 1192 if (!RuntimeEnabledFeatures::accessibilityObjectModelEnabled()) |
| 1193 return nullptr; |
| 1194 |
| 1195 if (!hasRareData()) |
| 1196 return nullptr; |
| 1197 |
| 1198 return elementRareData()->accessibleNode(); |
| 1199 } |
| 1200 |
| 1201 AccessibleNode* Element::accessibleNode() { |
| 1202 if (!RuntimeEnabledFeatures::accessibilityObjectModelEnabled()) |
| 1203 return nullptr; |
| 1204 |
| 1205 ElementRareData& rareData = ensureElementRareData(); |
| 1206 return rareData.ensureAccessibleNode(this); |
| 1207 } |
| 1208 |
| 1191 const AtomicString& Element::getAttribute(const AtomicString& localName) const { | 1209 const AtomicString& Element::getAttribute(const AtomicString& localName) const { |
| 1192 if (!elementData()) | 1210 if (!elementData()) |
| 1193 return nullAtom; | 1211 return nullAtom; |
| 1194 synchronizeAttribute(localName); | 1212 synchronizeAttribute(localName); |
| 1195 if (const Attribute* attribute = elementData()->attributes().find( | 1213 if (const Attribute* attribute = elementData()->attributes().find( |
| 1196 localName, shouldIgnoreAttributeCase())) | 1214 localName, shouldIgnoreAttributeCase())) |
| 1197 return attribute->value(); | 1215 return attribute->value(); |
| 1198 return nullAtom; | 1216 return nullAtom; |
| 1199 } | 1217 } |
| 1200 | 1218 |
| (...skipping 2965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4166 } | 4184 } |
| 4167 | 4185 |
| 4168 DEFINE_TRACE_WRAPPERS(Element) { | 4186 DEFINE_TRACE_WRAPPERS(Element) { |
| 4169 if (hasRareData()) { | 4187 if (hasRareData()) { |
| 4170 visitor->traceWrappers(elementRareData()); | 4188 visitor->traceWrappers(elementRareData()); |
| 4171 } | 4189 } |
| 4172 ContainerNode::traceWrappers(visitor); | 4190 ContainerNode::traceWrappers(visitor); |
| 4173 } | 4191 } |
| 4174 | 4192 |
| 4175 } // namespace blink | 4193 } // namespace blink |
| OLD | NEW |