| 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 1475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1486 // | 1486 // |
| 1487 | 1487 |
| 1488 double AXRenderObject::estimatedLoadingProgress() const | 1488 double AXRenderObject::estimatedLoadingProgress() const |
| 1489 { | 1489 { |
| 1490 if (!m_renderer) | 1490 if (!m_renderer) |
| 1491 return 0; | 1491 return 0; |
| 1492 | 1492 |
| 1493 if (isLoaded()) | 1493 if (isLoaded()) |
| 1494 return 1.0; | 1494 return 1.0; |
| 1495 | 1495 |
| 1496 if (Page* page = m_renderer->document().page()) | 1496 if (LocalFrame* frame = m_renderer->document().frame()) |
| 1497 return page->progress().estimatedProgress(); | 1497 return frame->loader().progress().estimatedProgress(); |
| 1498 return 0; | 1498 return 0; |
| 1499 } | 1499 } |
| 1500 | 1500 |
| 1501 // | 1501 // |
| 1502 // DOM and Render tree access. | 1502 // DOM and Render tree access. |
| 1503 // | 1503 // |
| 1504 | 1504 |
| 1505 Node* AXRenderObject::node() const | 1505 Node* AXRenderObject::node() const |
| 1506 { | 1506 { |
| 1507 return m_renderer ? m_renderer->node() : 0; | 1507 return m_renderer ? m_renderer->node() : 0; |
| (...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2342 if (label && label->renderer()) { | 2342 if (label && label->renderer()) { |
| 2343 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); | 2343 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); |
| 2344 result.unite(labelRect); | 2344 result.unite(labelRect); |
| 2345 } | 2345 } |
| 2346 } | 2346 } |
| 2347 | 2347 |
| 2348 return result; | 2348 return result; |
| 2349 } | 2349 } |
| 2350 | 2350 |
| 2351 } // namespace WebCore | 2351 } // namespace WebCore |
| OLD | NEW |