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

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

Issue 2907133002: Move WebAXObject.cpp to core/ (WIP) (Closed)
Patch Set: Created 3 years, 6 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) 2014, Google Inc. All rights reserved. 2 * Copyright (C) 2014, 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 return 0; 133 return 0;
134 134
135 HTMLImageElement* image_element = area_element->ImageElement(); 135 HTMLImageElement* image_element = area_element->ImageElement();
136 if (!image_element) 136 if (!image_element)
137 return 0; 137 return 0;
138 138
139 AXObjectImpl* ax_layout_image = GetOrCreate(image_element); 139 AXObjectImpl* ax_layout_image = GetOrCreate(image_element);
140 if (!ax_layout_image) 140 if (!ax_layout_image)
141 return 0; 141 return 0;
142 142
143 const AXObjectImpl::AXObjectVector& image_children = 143 const AXObjectImpl::AXObjectImplVector& image_children =
144 ax_layout_image->Children(); 144 ax_layout_image->Children();
145 unsigned count = image_children.size(); 145 unsigned count = image_children.size();
146 for (unsigned k = 0; k < count; ++k) { 146 for (unsigned k = 0; k < count; ++k) {
147 AXObjectImpl* child = image_children[k]; 147 AXObjectImpl* child = image_children[k];
148 if (!child->IsImageMapLink()) 148 if (!child->IsImageMapLink())
149 continue; 149 continue;
150 150
151 if (ToAXImageMapLink(child)->AreaElement() == area_element) 151 if (ToAXImageMapLink(child)->AreaElement() == area_element)
152 return child; 152 return child;
153 } 153 }
(...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after
1256 visitor->Trace(document_); 1256 visitor->Trace(document_);
1257 visitor->Trace(node_object_mapping_); 1257 visitor->Trace(node_object_mapping_);
1258 1258
1259 visitor->Trace(objects_); 1259 visitor->Trace(objects_);
1260 visitor->Trace(notifications_to_post_); 1260 visitor->Trace(notifications_to_post_);
1261 1261
1262 AXObjectCache::Trace(visitor); 1262 AXObjectCache::Trace(visitor);
1263 } 1263 }
1264 1264
1265 } // namespace blink 1265 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698