| OLD | NEW |
| 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 | 224 |
| 225 void ariaSelectedRows(AccessibilityChildrenVector&); | 225 void ariaSelectedRows(AccessibilityChildrenVector&); |
| 226 bool elementAttributeValue(const QualifiedName&) const; | 226 bool elementAttributeValue(const QualifiedName&) const; |
| 227 bool inheritsPresentationalRole() const; | 227 bool inheritsPresentationalRole() const; |
| 228 LayoutRect computeElementRect() const; | 228 LayoutRect computeElementRect() const; |
| 229 VisibleSelection selection() const; | 229 VisibleSelection selection() const; |
| 230 String stringForRange(const PlainTextRange&) const; | 230 String stringForRange(const PlainTextRange&) const; |
| 231 int indexForVisiblePosition(const VisiblePosition&) const; | 231 int indexForVisiblePosition(const VisiblePosition&) const; |
| 232 }; | 232 }; |
| 233 | 233 |
| 234 inline AXRenderObject* toAXRenderObject(AXObject* object) | 234 DEFINE_AX_OBJECT_TYPE_CASTS(AXRenderObject, isAXRenderObject()); |
| 235 { | |
| 236 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isAXRenderObject()); | |
| 237 return static_cast<AXRenderObject*>(object); | |
| 238 } | |
| 239 | |
| 240 inline const AXRenderObject* toAXRenderObject(const AXObject* object) | |
| 241 { | |
| 242 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isAXRenderObject()); | |
| 243 return static_cast<const AXRenderObject*>(object); | |
| 244 } | |
| 245 | |
| 246 // This will catch anyone doing an unnecessary cast. | |
| 247 void toAXRenderObject(const AXRenderObject*); | |
| 248 | 235 |
| 249 } // namespace WebCore | 236 } // namespace WebCore |
| 250 | 237 |
| 251 #endif // AXRenderObject_h | 238 #endif // AXRenderObject_h |
| OLD | NEW |