| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012, Google Inc. All rights reserved. | 2 * Copyright (C) 2012, 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 1869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1880 parentNode = toHTMLOptionElement(node)->ownerSelectElement(); | 1880 parentNode = toHTMLOptionElement(node)->ownerSelectElement(); |
| 1881 | 1881 |
| 1882 if (!parentNode) | 1882 if (!parentNode) |
| 1883 parentNode = node->parentNode(); | 1883 parentNode = node->parentNode(); |
| 1884 | 1884 |
| 1885 return parentNode; | 1885 return parentNode; |
| 1886 } | 1886 } |
| 1887 | 1887 |
| 1888 AXObject* AXNodeObject::computeParent() const { | 1888 AXObject* AXNodeObject::computeParent() const { |
| 1889 ASSERT(!isDetached()); | 1889 ASSERT(!isDetached()); |
| 1890 if (Node* parentNode = getParentNodeForComputeParent(getNode())) | 1890 if (Node* parentNode = getParentNodeForComputeParent(getNode())) { |
| 1891 return axObjectCache().getOrCreate(parentNode); | 1891 return axObjectCache().getOrCreate(parentNode); |
| 1892 } |
| 1892 | 1893 |
| 1893 return nullptr; | 1894 return nullptr; |
| 1894 } | 1895 } |
| 1895 | 1896 |
| 1896 AXObject* AXNodeObject::computeParentIfExists() const { | 1897 AXObject* AXNodeObject::computeParentIfExists() const { |
| 1897 if (Node* parentNode = getParentNodeForComputeParent(getNode())) | 1898 if (Node* parentNode = getParentNodeForComputeParent(getNode())) |
| 1898 return axObjectCache().get(parentNode); | 1899 return axObjectCache().get(parentNode); |
| 1899 | 1900 |
| 1900 return nullptr; | 1901 return nullptr; |
| 1901 } | 1902 } |
| (...skipping 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2954 } | 2955 } |
| 2955 return placeholder; | 2956 return placeholder; |
| 2956 } | 2957 } |
| 2957 | 2958 |
| 2958 DEFINE_TRACE(AXNodeObject) { | 2959 DEFINE_TRACE(AXNodeObject) { |
| 2959 visitor->trace(m_node); | 2960 visitor->trace(m_node); |
| 2960 AXObject::trace(visitor); | 2961 AXObject::trace(visitor); |
| 2961 } | 2962 } |
| 2962 | 2963 |
| 2963 } // namespace blink | 2964 } // namespace blink |
| OLD | NEW |