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

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

Issue 23819007: Have Node::document() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 3 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) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 if (!isAccessibilityTable()) { 87 if (!isAccessibilityTable()) {
88 AccessibilityRenderObject::addChildren(); 88 AccessibilityRenderObject::addChildren();
89 return; 89 return;
90 } 90 }
91 91
92 m_haveChildren = true; 92 m_haveChildren = true;
93 if (!m_renderer) 93 if (!m_renderer)
94 return; 94 return;
95 95
96 AXObjectCache* axCache = m_renderer->document()->axObjectCache(); 96 AXObjectCache* axCache = m_renderer->document().axObjectCache();
97 97
98 // add only rows that are labeled as aria rows 98 // add only rows that are labeled as aria rows
99 HashSet<AccessibilityObject*> appendedRows; 99 HashSet<AccessibilityObject*> appendedRows;
100 unsigned columnCount = 0; 100 unsigned columnCount = 0;
101 for (RefPtr<AccessibilityObject> child = firstChild(); child; child = child- >nextSibling()) { 101 for (RefPtr<AccessibilityObject> child = firstChild(); child; child = child- >nextSibling()) {
102 102
103 if (!addTableCellChild(child.get(), appendedRows, columnCount)) { 103 if (!addTableCellChild(child.get(), appendedRows, columnCount)) {
104 104
105 // in case the render tree doesn't match the expected ARIA hierarchy , look at the children 105 // in case the render tree doesn't match the expected ARIA hierarchy , look at the children
106 if (!child->hasChildren()) 106 if (!child->hasChildren())
(...skipping 17 matching lines...) Expand all
124 if (!column->accessibilityIsIgnored()) 124 if (!column->accessibilityIsIgnored())
125 m_children.append(column); 125 m_children.append(column);
126 } 126 }
127 127
128 AccessibilityObject* headerContainerObject = headerContainer(); 128 AccessibilityObject* headerContainerObject = headerContainer();
129 if (headerContainerObject && !headerContainerObject->accessibilityIsIgnored( )) 129 if (headerContainerObject && !headerContainerObject->accessibilityIsIgnored( ))
130 m_children.append(headerContainerObject); 130 m_children.append(headerContainerObject);
131 } 131 }
132 132
133 } // namespace WebCore 133 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/accessibility/AXObjectCache.cpp ('k') | Source/core/accessibility/AccessibilityImageMapLink.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698