| 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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 return !toHTMLAnchorElement(*anchor).href().isEmpty(); | 372 return !toHTMLAnchorElement(*anchor).href().isEmpty(); |
| 373 } | 373 } |
| 374 | 374 |
| 375 bool AXLayoutObject::isLoaded() const { | 375 bool AXLayoutObject::isLoaded() const { |
| 376 return !m_layoutObject->document().parser(); | 376 return !m_layoutObject->document().parser(); |
| 377 } | 377 } |
| 378 | 378 |
| 379 bool AXLayoutObject::isOffScreen() const { | 379 bool AXLayoutObject::isOffScreen() const { |
| 380 ASSERT(m_layoutObject); | 380 ASSERT(m_layoutObject); |
| 381 IntRect contentRect = | 381 IntRect contentRect = |
| 382 pixelSnappedIntRect(m_layoutObject->absoluteClippedOverflowRect()); | 382 pixelSnappedIntRect(m_layoutObject->absoluteVisualRect()); |
| 383 FrameView* view = m_layoutObject->frame()->view(); | 383 FrameView* view = m_layoutObject->frame()->view(); |
| 384 IntRect viewRect = view->visibleContentRect(); | 384 IntRect viewRect = view->visibleContentRect(); |
| 385 viewRect.intersect(contentRect); | 385 viewRect.intersect(contentRect); |
| 386 return viewRect.isEmpty(); | 386 return viewRect.isEmpty(); |
| 387 } | 387 } |
| 388 | 388 |
| 389 bool AXLayoutObject::isReadOnly() const { | 389 bool AXLayoutObject::isReadOnly() const { |
| 390 ASSERT(m_layoutObject); | 390 ASSERT(m_layoutObject); |
| 391 | 391 |
| 392 if (isWebArea()) { | 392 if (isWebArea()) { |
| (...skipping 2056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2449 | 2449 |
| 2450 bool AXLayoutObject::elementAttributeValue( | 2450 bool AXLayoutObject::elementAttributeValue( |
| 2451 const QualifiedName& attributeName) const { | 2451 const QualifiedName& attributeName) const { |
| 2452 if (!m_layoutObject) | 2452 if (!m_layoutObject) |
| 2453 return false; | 2453 return false; |
| 2454 | 2454 |
| 2455 return equalIgnoringCase(getAttribute(attributeName), "true"); | 2455 return equalIgnoringCase(getAttribute(attributeName), "true"); |
| 2456 } | 2456 } |
| 2457 | 2457 |
| 2458 } // namespace blink | 2458 } // namespace blink |
| OLD | NEW |