OLD | NEW |
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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 if (node && node->isMediaControlElement()) | 275 if (node && node->isMediaControlElement()) |
276 return AccessibilityMediaControl::create(renderer, this); | 276 return AccessibilityMediaControl::create(renderer, this); |
277 | 277 |
278 if (isHTMLOptionElement(node)) | 278 if (isHTMLOptionElement(node)) |
279 return AXListBoxOption::create(renderer, this); | 279 return AXListBoxOption::create(renderer, this); |
280 | 280 |
281 if (renderer->isSVGRoot()) | 281 if (renderer->isSVGRoot()) |
282 return AXSVGRoot::create(renderer, this); | 282 return AXSVGRoot::create(renderer, this); |
283 | 283 |
284 if (renderer->isBoxModelObject()) { | 284 if (renderer->isBoxModelObject()) { |
285 RenderBoxModelObject* cssBox = toRenderBoxModelObject(renderer); | 285 LayoutBoxModelObject* cssBox = toLayoutBoxModelObject(renderer); |
286 if (cssBox->isListBox()) | 286 if (cssBox->isListBox()) |
287 return AXListBox::create(toRenderListBox(cssBox), this); | 287 return AXListBox::create(toRenderListBox(cssBox), this); |
288 if (cssBox->isMenuList()) | 288 if (cssBox->isMenuList()) |
289 return AXMenuList::create(toRenderMenuList(cssBox), this); | 289 return AXMenuList::create(toRenderMenuList(cssBox), this); |
290 | 290 |
291 // standard tables | 291 // standard tables |
292 if (cssBox->isTable()) | 292 if (cssBox->isTable()) |
293 return AXTable::create(toLayoutTable(cssBox), this); | 293 return AXTable::create(toLayoutTable(cssBox), this); |
294 if (cssBox->isTableRow()) | 294 if (cssBox->isTableRow()) |
295 return AXTableRow::create(toLayoutTableRow(cssBox), this); | 295 return AXTableRow::create(toLayoutTableRow(cssBox), this); |
(...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1121 void AXObjectCacheImpl::setCanvasObjectBounds(Element* element, const LayoutRect
& rect) | 1121 void AXObjectCacheImpl::setCanvasObjectBounds(Element* element, const LayoutRect
& rect) |
1122 { | 1122 { |
1123 AXObject* obj = getOrCreate(element); | 1123 AXObject* obj = getOrCreate(element); |
1124 if (!obj) | 1124 if (!obj) |
1125 return; | 1125 return; |
1126 | 1126 |
1127 obj->setElementRect(rect); | 1127 obj->setElementRect(rect); |
1128 } | 1128 } |
1129 | 1129 |
1130 } // namespace blink | 1130 } // namespace blink |
OLD | NEW |