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 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
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 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 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 * | 10 * |
(...skipping 1835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1846 | 1846 |
1847 RenderView* Document::renderView() const | 1847 RenderView* Document::renderView() const |
1848 { | 1848 { |
1849 return toRenderView(renderer()); | 1849 return toRenderView(renderer()); |
1850 } | 1850 } |
1851 | 1851 |
1852 void Document::clearAXObjectCache() | 1852 void Document::clearAXObjectCache() |
1853 { | 1853 { |
1854 // clear cache in top document | 1854 // clear cache in top document |
1855 if (m_axObjectCache) { | 1855 if (m_axObjectCache) { |
1856 delete m_axObjectCache; | 1856 // Clear the cache member variable before calling delete because attempt
s |
| 1857 // are made to access it during destruction. |
| 1858 AXObjectCache* axObjectCache = m_axObjectCache; |
1857 m_axObjectCache = 0; | 1859 m_axObjectCache = 0; |
| 1860 delete axObjectCache; |
1858 return; | 1861 return; |
1859 } | 1862 } |
1860 | 1863 |
1861 // ask the top-level document to clear its cache | 1864 // ask the top-level document to clear its cache |
1862 Document* doc = topDocument(); | 1865 Document* doc = topDocument(); |
1863 if (doc != this) | 1866 if (doc != this) |
1864 doc->clearAXObjectCache(); | 1867 doc->clearAXObjectCache(); |
1865 } | 1868 } |
1866 | 1869 |
1867 bool Document::axObjectCacheExists() const | 1870 bool Document::axObjectCacheExists() const |
(...skipping 3039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4907 // This functions is used for checking such possibility of FOUCs. | 4910 // This functions is used for checking such possibility of FOUCs. |
4908 // Note that the implementation considers only empty or <head> only contents
as a FOUC cause | 4911 // Note that the implementation considers only empty or <head> only contents
as a FOUC cause |
4909 // rather than missing <body>, because non-HTML document like SVG and arbitr
ary XML from foreign namespace | 4912 // rather than missing <body>, because non-HTML document like SVG and arbitr
ary XML from foreign namespace |
4910 // should be painted even if there is no <body>. | 4913 // should be painted even if there is no <body>. |
4911 if (didLayoutWithPendingStylesheets()) | 4914 if (didLayoutWithPendingStylesheets()) |
4912 return true; | 4915 return true; |
4913 return !hasHeadSibling(this); | 4916 return !hasHeadSibling(this); |
4914 } | 4917 } |
4915 | 4918 |
4916 } // namespace WebCore | 4919 } // namespace WebCore |
OLD | NEW |