OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
(...skipping 2345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2356 if (view() && renderObject && (!renderObject->firstChild() || renderObje
ct->needsLayout())) | 2356 if (view() && renderObject && (!renderObject->firstChild() || renderObje
ct->needsLayout())) |
2357 view()->layout(); | 2357 view()->layout(); |
2358 } | 2358 } |
2359 | 2359 |
2360 m_processingLoadEvent = false; | 2360 m_processingLoadEvent = false; |
2361 | 2361 |
2362 if (f && renderObject && AXObjectCache::accessibilityEnabled()) { | 2362 if (f && renderObject && AXObjectCache::accessibilityEnabled()) { |
2363 // The AX cache may have been cleared at this point, but we need to make
sure it contains an | 2363 // The AX cache may have been cleared at this point, but we need to make
sure it contains an |
2364 // AX object to send the notification to. getOrCreate will make sure tha
t an valid AX object | 2364 // AX object to send the notification to. getOrCreate will make sure tha
t an valid AX object |
2365 // exists in the cache (we ignore the return value because we don't need
it here). This is | 2365 // exists in the cache (we ignore the return value because we don't need
it here). This is |
2366 // only safe to call when a layout is not in progress, so it can not be
used in postNotification. | 2366 // only safe to call when a layout is not in progress, so it can not be
used in postNotification. |
2367 axObjectCache()->getOrCreate(renderObject); | 2367 if (AXObjectCache* cache = axObjectCache()) { |
2368 if (this == topDocument()) | 2368 cache->getOrCreate(renderObject); |
2369 axObjectCache()->postNotification(renderObject, AXObjectCache::AXLoa
dComplete, true); | 2369 if (this == topDocument()) |
2370 else { | 2370 cache->postNotification(renderObject, AXObjectCache::AXLoadCompl
ete, true); |
2371 // AXLoadComplete can only be posted on the top document, so if it's
a document | 2371 else { |
2372 // in an iframe that just finished loading, post AXLayoutComplete in
stead. | 2372 // AXLoadComplete can only be posted on the top document, so if
it's a document |
2373 axObjectCache()->postNotification(renderObject, AXObjectCache::AXLay
outComplete, true); | 2373 // in an iframe that just finished loading, post AXLayoutComplet
e instead. |
| 2374 cache->postNotification(renderObject, AXObjectCache::AXLayoutCom
plete, true); |
| 2375 } |
2374 } | 2376 } |
2375 } | 2377 } |
2376 | 2378 |
2377 #if ENABLE(SVG) | 2379 #if ENABLE(SVG) |
2378 if (svgExtensions()) | 2380 if (svgExtensions()) |
2379 accessSVGExtensions()->startAnimations(); | 2381 accessSVGExtensions()->startAnimations(); |
2380 #endif | 2382 #endif |
2381 } | 2383 } |
2382 | 2384 |
2383 void Document::setParsing(bool b) | 2385 void Document::setParsing(bool b) |
(...skipping 3506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5890 return; | 5892 return; |
5891 | 5893 |
5892 Vector<RefPtr<Element> > associatedFormControls; | 5894 Vector<RefPtr<Element> > associatedFormControls; |
5893 copyToVector(m_associatedFormControls, associatedFormControls); | 5895 copyToVector(m_associatedFormControls, associatedFormControls); |
5894 | 5896 |
5895 frame()->page()->chrome()->client()->didAssociateFormControls(associatedForm
Controls); | 5897 frame()->page()->chrome()->client()->didAssociateFormControls(associatedForm
Controls); |
5896 m_associatedFormControls.clear(); | 5898 m_associatedFormControls.clear(); |
5897 } | 5899 } |
5898 | 5900 |
5899 } // namespace WebCore | 5901 } // namespace WebCore |
OLD | NEW |