| OLD | NEW |
| 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 11 matching lines...) Expand all Loading... |
| 22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #include "config.h" | 29 #include "config.h" |
| 30 #include "modules/accessibility/AXARIAGridCell.h" | 30 #include "modules/accessibility/AXARIAGridCell.h" |
| 31 | 31 |
| 32 #include "core/dom/AXObjectCache.h" |
| 32 #include "modules/accessibility/AXTable.h" | 33 #include "modules/accessibility/AXTable.h" |
| 33 #include "modules/accessibility/AXTableRow.h" | 34 #include "modules/accessibility/AXTableRow.h" |
| 34 | 35 |
| 35 | 36 |
| 36 namespace blink { | 37 namespace blink { |
| 37 | 38 |
| 38 AXARIAGridCell::AXARIAGridCell(RenderObject* renderer) | 39 AXARIAGridCell::AXARIAGridCell(RenderObject* renderer, AXObjectCache* axObjectCa
che) |
| 39 : AXTableCell(renderer) | 40 : AXTableCell(renderer, axObjectCache) |
| 40 { | 41 { |
| 41 } | 42 } |
| 42 | 43 |
| 43 AXARIAGridCell::~AXARIAGridCell() | 44 AXARIAGridCell::~AXARIAGridCell() |
| 44 { | 45 { |
| 45 } | 46 } |
| 46 | 47 |
| 47 PassRefPtr<AXARIAGridCell> AXARIAGridCell::create(RenderObject* renderer) | 48 PassRefPtr<AXARIAGridCell> AXARIAGridCell::create(RenderObject* renderer, AXObje
ctCache* axObjectCache) |
| 48 { | 49 { |
| 49 return adoptRef(new AXARIAGridCell(renderer)); | 50 return adoptRef(new AXARIAGridCell(renderer, axObjectCache)); |
| 50 } | 51 } |
| 51 | 52 |
| 52 AXObject* AXARIAGridCell::parentTable() const | 53 AXObject* AXARIAGridCell::parentTable() const |
| 53 { | 54 { |
| 54 AXObject* parent = parentObjectUnignored(); | 55 AXObject* parent = parentObjectUnignored(); |
| 55 if (!parent) | 56 if (!parent) |
| 56 return 0; | 57 return 0; |
| 57 | 58 |
| 58 if (parent->isAXTable()) | 59 if (parent->isAXTable()) |
| 59 return parent; | 60 return parent; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 columnRange.first = k; | 115 columnRange.first = k; |
| 115 break; | 116 break; |
| 116 } | 117 } |
| 117 } | 118 } |
| 118 | 119 |
| 119 // as far as I can tell, grid cells cannot span columns | 120 // as far as I can tell, grid cells cannot span columns |
| 120 columnRange.second = 1; | 121 columnRange.second = 1; |
| 121 } | 122 } |
| 122 | 123 |
| 123 } // namespace blink | 124 } // namespace blink |
| OLD | NEW |