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

Side by Side Diff: Source/core/accessibility/AccessibilityRenderObject.cpp

Issue 15674002: Fix issue where iframe content wasn't included in the accessibility tree. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple 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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 // 516 //
517 517
518 bool AccessibilityRenderObject::isAttachment() const 518 bool AccessibilityRenderObject::isAttachment() const
519 { 519 {
520 RenderBoxModelObject* renderer = renderBoxModelObject(); 520 RenderBoxModelObject* renderer = renderBoxModelObject();
521 if (!renderer) 521 if (!renderer)
522 return false; 522 return false;
523 // Widgets are the replaced elements that we represent to AX as attachments 523 // Widgets are the replaced elements that we represent to AX as attachments
524 bool isWidget = renderer->isWidget(); 524 bool isWidget = renderer->isWidget();
525 ASSERT(!isWidget || (renderer->isReplaced() && !isImage())); 525 ASSERT(!isWidget || (renderer->isReplaced() && !isImage()));
526 return isWidget && ariaRoleAttribute() == UnknownRole; 526 return isWidget;
527 } 527 }
528 528
529 bool AccessibilityRenderObject::isFileUploadButton() const 529 bool AccessibilityRenderObject::isFileUploadButton() const
530 { 530 {
531 if (m_renderer && m_renderer->node() && m_renderer->node()->hasTagName(input Tag)) { 531 if (m_renderer && m_renderer->node() && m_renderer->node()->hasTagName(input Tag)) {
532 HTMLInputElement* input = static_cast<HTMLInputElement*>(m_renderer->nod e()); 532 HTMLInputElement* input = static_cast<HTMLInputElement*>(m_renderer->nod e());
533 return input->isFileUpload(); 533 return input->isFileUpload();
534 } 534 }
535 535
536 return false; 536 return false;
(...skipping 2654 matching lines...) Expand 10 before | Expand all | Expand 10 after
3191 if (label && label->renderer()) { 3191 if (label && label->renderer()) {
3192 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR ect(); 3192 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR ect();
3193 result.unite(labelRect); 3193 result.unite(labelRect);
3194 } 3194 }
3195 } 3195 }
3196 3196
3197 return result; 3197 return result;
3198 } 3198 }
3199 3199
3200 } // namespace WebCore 3200 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698