| 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 return toLayoutInline(layoutObject)->continuation(); | 187 return toLayoutInline(layoutObject)->continuation(); |
| 188 if (layoutObject->isLayoutBlockFlow()) | 188 if (layoutObject->isLayoutBlockFlow()) |
| 189 return toLayoutBlockFlow(layoutObject)->inlineElementContinuation(); | 189 return toLayoutBlockFlow(layoutObject)->inlineElementContinuation(); |
| 190 return 0; | 190 return 0; |
| 191 } | 191 } |
| 192 | 192 |
| 193 AXLayoutObject::AXLayoutObject(LayoutObject* layoutObject, | 193 AXLayoutObject::AXLayoutObject(LayoutObject* layoutObject, |
| 194 AXObjectCacheImpl& axObjectCache) | 194 AXObjectCacheImpl& axObjectCache) |
| 195 : AXNodeObject(layoutObject->node(), axObjectCache), | 195 : AXNodeObject(layoutObject->node(), axObjectCache), |
| 196 m_layoutObject(layoutObject) { | 196 m_layoutObject(layoutObject) { |
| 197 #if ENABLE(ASSERT) | 197 #if DCHECK_IS_ON() |
| 198 m_layoutObject->setHasAXObject(true); | 198 m_layoutObject->setHasAXObject(true); |
| 199 #endif | 199 #endif |
| 200 } | 200 } |
| 201 | 201 |
| 202 AXLayoutObject* AXLayoutObject::create(LayoutObject* layoutObject, | 202 AXLayoutObject* AXLayoutObject::create(LayoutObject* layoutObject, |
| 203 AXObjectCacheImpl& axObjectCache) { | 203 AXObjectCacheImpl& axObjectCache) { |
| 204 return new AXLayoutObject(layoutObject, axObjectCache); | 204 return new AXLayoutObject(layoutObject, axObjectCache); |
| 205 } | 205 } |
| 206 | 206 |
| 207 AXLayoutObject::~AXLayoutObject() { | 207 AXLayoutObject::~AXLayoutObject() { |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 | 307 |
| 308 void AXLayoutObject::init() { | 308 void AXLayoutObject::init() { |
| 309 AXNodeObject::init(); | 309 AXNodeObject::init(); |
| 310 } | 310 } |
| 311 | 311 |
| 312 void AXLayoutObject::detach() { | 312 void AXLayoutObject::detach() { |
| 313 AXNodeObject::detach(); | 313 AXNodeObject::detach(); |
| 314 | 314 |
| 315 detachRemoteSVGRoot(); | 315 detachRemoteSVGRoot(); |
| 316 | 316 |
| 317 #if ENABLE(ASSERT) | 317 #if DCHECK_IS_ON() |
| 318 if (m_layoutObject) | 318 if (m_layoutObject) |
| 319 m_layoutObject->setHasAXObject(false); | 319 m_layoutObject->setHasAXObject(false); |
| 320 #endif | 320 #endif |
| 321 m_layoutObject = 0; | 321 m_layoutObject = 0; |
| 322 } | 322 } |
| 323 | 323 |
| 324 // | 324 // |
| 325 // Check object role or purpose. | 325 // Check object role or purpose. |
| 326 // | 326 // |
| 327 | 327 |
| (...skipping 2151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2479 | 2479 |
| 2480 bool AXLayoutObject::elementAttributeValue( | 2480 bool AXLayoutObject::elementAttributeValue( |
| 2481 const QualifiedName& attributeName) const { | 2481 const QualifiedName& attributeName) const { |
| 2482 if (!m_layoutObject) | 2482 if (!m_layoutObject) |
| 2483 return false; | 2483 return false; |
| 2484 | 2484 |
| 2485 return equalIgnoringCase(getAttribute(attributeName), "true"); | 2485 return equalIgnoringCase(getAttribute(attributeName), "true"); |
| 2486 } | 2486 } |
| 2487 | 2487 |
| 2488 } // namespace blink | 2488 } // namespace blink |
| OLD | NEW |