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

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

Issue 2709033003: Migrate WTF::HashMap::get() to ::at() (Closed)
Patch Set: rebase Created 3 years, 9 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) 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 894 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 void AXNodeObject::getSparseAXAttributes( 905 void AXNodeObject::getSparseAXAttributes(
906 AXSparseAttributeClient& sparseAttributeClient) const { 906 AXSparseAttributeClient& sparseAttributeClient) const {
907 Node* node = this->getNode(); 907 Node* node = this->getNode();
908 if (!node || !node->isElementNode()) 908 if (!node || !node->isElementNode())
909 return; 909 return;
910 910
911 AXSparseAttributeSetterMap& axSparseAttributeSetterMap = 911 AXSparseAttributeSetterMap& axSparseAttributeSetterMap =
912 getSparseAttributeSetterMap(); 912 getSparseAttributeSetterMap();
913 AttributeCollection attributes = toElement(node)->attributesWithoutUpdate(); 913 AttributeCollection attributes = toElement(node)->attributesWithoutUpdate();
914 for (const Attribute& attr : attributes) { 914 for (const Attribute& attr : attributes) {
915 SparseAttributeSetter* setter = axSparseAttributeSetterMap.get(attr.name()); 915 SparseAttributeSetter* setter = axSparseAttributeSetterMap.at(attr.name());
916 if (setter) 916 if (setter)
917 setter->run(*this, sparseAttributeClient, attr.value()); 917 setter->run(*this, sparseAttributeClient, attr.value());
918 } 918 }
919 } 919 }
920 920
921 bool AXNodeObject::isAnchor() const { 921 bool AXNodeObject::isAnchor() const {
922 return !isNativeImage() && isLink(); 922 return !isNativeImage() && isLink();
923 } 923 }
924 924
925 bool AXNodeObject::isControl() const { 925 bool AXNodeObject::isControl() const {
(...skipping 2189 matching lines...) Expand 10 before | Expand all | Expand 10 after
3115 return String(); 3115 return String();
3116 return toTextControlElement(node)->strippedPlaceholder(); 3116 return toTextControlElement(node)->strippedPlaceholder();
3117 } 3117 }
3118 3118
3119 DEFINE_TRACE(AXNodeObject) { 3119 DEFINE_TRACE(AXNodeObject) {
3120 visitor->trace(m_node); 3120 visitor->trace(m_node);
3121 AXObject::trace(visitor); 3121 AXObject::trace(visitor);
3122 } 3122 }
3123 3123
3124 } // namespace blink 3124 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698