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

Side by Side Diff: Source/modules/accessibility/AXARIAGrid.cpp

Issue 1072273006: Oilpan: Prepare moving AXObject to heap (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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) 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 28 matching lines...) Expand all
39 39
40 AXARIAGrid::AXARIAGrid(LayoutObject* layoutObject, AXObjectCacheImpl& axObjectCa che) 40 AXARIAGrid::AXARIAGrid(LayoutObject* layoutObject, AXObjectCacheImpl& axObjectCa che)
41 : AXTable(layoutObject, axObjectCache) 41 : AXTable(layoutObject, axObjectCache)
42 { 42 {
43 } 43 }
44 44
45 AXARIAGrid::~AXARIAGrid() 45 AXARIAGrid::~AXARIAGrid()
46 { 46 {
47 } 47 }
48 48
49 PassRefPtr<AXARIAGrid> AXARIAGrid::create(LayoutObject* layoutObject, AXObjectCa cheImpl& axObjectCache) 49 PassRefPtrWillBeRawPtr<AXARIAGrid> AXARIAGrid::create(LayoutObject* layoutObject , AXObjectCacheImpl& axObjectCache)
50 { 50 {
51 return adoptRef(new AXARIAGrid(layoutObject, axObjectCache)); 51 return adoptRefWillBeNoop(new AXARIAGrid(layoutObject, axObjectCache));
52 } 52 }
53 53
54 bool AXARIAGrid::addTableCellChild(AXObject* child, HashSet<AXObject*>& appended Rows, unsigned& columnCount) 54 bool AXARIAGrid::addTableCellChild(AXObject* child, HashSet<AXObject*>& appended Rows, unsigned& columnCount)
55 { 55 {
56 if (!child || !child->isTableRow() || child->ariaRoleAttribute() != RowRole) 56 if (!child || !child->isTableRow() || child->ariaRoleAttribute() != RowRole)
57 return false; 57 return false;
58 58
59 AXTableRow* row = toAXTableRow(child); 59 AXTableRow* row = toAXTableRow(child);
60 if (appendedRows.contains(row)) 60 if (appendedRows.contains(row))
61 return false; 61 return false;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 if (!column->accessibilityIsIgnored()) 125 if (!column->accessibilityIsIgnored())
126 m_children.append(column); 126 m_children.append(column);
127 } 127 }
128 128
129 AXObject* headerContainerObject = headerContainer(); 129 AXObject* headerContainerObject = headerContainer();
130 if (headerContainerObject && !headerContainerObject->accessibilityIsIgnored( )) 130 if (headerContainerObject && !headerContainerObject->accessibilityIsIgnored( ))
131 m_children.append(headerContainerObject); 131 m_children.append(headerContainerObject);
132 } 132 }
133 133
134 } // namespace blink 134 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/accessibility/AXARIAGrid.h ('k') | Source/modules/accessibility/AXARIAGridCell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698