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

Side by Side Diff: WebCore/dom/Document.cpp

Issue 5543004: Merge 72969 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/597/
Patch Set: Created 10 years 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
« no previous file with comments | « WebCore/accessibility/AccessibilityImageMapLink.cpp ('k') | no next file » | 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) 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
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
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
OLDNEW
« no previous file with comments | « WebCore/accessibility/AccessibilityImageMapLink.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698