| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 } | 206 } |
| 207 | 207 |
| 208 bool WebAXObject::isAnchor() const | 208 bool WebAXObject::isAnchor() const |
| 209 { | 209 { |
| 210 if (isDetached()) | 210 if (isDetached()) |
| 211 return 0; | 211 return 0; |
| 212 | 212 |
| 213 return m_private->isAnchor(); | 213 return m_private->isAnchor(); |
| 214 } | 214 } |
| 215 | 215 |
| 216 WebAXOptionalBool WebAXObject::isAriaGrabbed() const |
| 217 { |
| 218 if (isDetached()) |
| 219 return WebAXOptionalBoolUndefined; |
| 220 |
| 221 return static_cast<WebAXOptionalBool>(m_private->isAriaGrabbed()); |
| 222 } |
| 223 |
| 216 bool WebAXObject::isAriaReadOnly() const | 224 bool WebAXObject::isAriaReadOnly() const |
| 217 { | 225 { |
| 218 if (isDetached()) | 226 if (isDetached()) |
| 219 return 0; | 227 return 0; |
| 220 | 228 |
| 221 return equalIgnoringCase(m_private->getAttribute(HTMLNames::aria_readonlyAtt
r), "true"); | 229 return equalIgnoringCase(m_private->getAttribute(HTMLNames::aria_readonlyAtt
r), "true"); |
| 222 } | 230 } |
| 223 | 231 |
| 224 bool WebAXObject::isButtonStateMixed() const | 232 bool WebAXObject::isButtonStateMixed() const |
| 225 { | 233 { |
| (...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1214 m_private = object; | 1222 m_private = object; |
| 1215 return *this; | 1223 return *this; |
| 1216 } | 1224 } |
| 1217 | 1225 |
| 1218 WebAXObject::operator WTF::PassRefPtr<AXObject>() const | 1226 WebAXObject::operator WTF::PassRefPtr<AXObject>() const |
| 1219 { | 1227 { |
| 1220 return m_private.get(); | 1228 return m_private.get(); |
| 1221 } | 1229 } |
| 1222 | 1230 |
| 1223 } // namespace blink | 1231 } // namespace blink |
| OLD | NEW |