Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: Source/core/accessibility/AXRenderObject.cpp

Issue 183793002: Make start/stop loading notifications per-frame (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/loader/EmptyClients.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/core/loader/EmptyClients.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698