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

Side by Side Diff: Source/core/dom/Document.cpp

Issue 277633002: Convert DocumentParser code to Use more reference (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make TextDocument use reference as well Created 6 years, 7 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
« no previous file with comments | « no previous file | Source/core/html/HTMLViewSourceDocument.cpp » ('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) 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 2303 matching lines...) Expand 10 before | Expand all | Expand 10 after
2314 ASSERT(topDocument == this || !m_axObjectCache); 2314 ASSERT(topDocument == this || !m_axObjectCache);
2315 if (!topDocument.m_axObjectCache) 2315 if (!topDocument.m_axObjectCache)
2316 topDocument.m_axObjectCache = adoptPtr(new AXObjectCache(topDocument)); 2316 topDocument.m_axObjectCache = adoptPtr(new AXObjectCache(topDocument));
2317 return topDocument.m_axObjectCache.get(); 2317 return topDocument.m_axObjectCache.get();
2318 } 2318 }
2319 2319
2320 PassRefPtr<DocumentParser> Document::createParser() 2320 PassRefPtr<DocumentParser> Document::createParser()
2321 { 2321 {
2322 if (isHTMLDocument()) { 2322 if (isHTMLDocument()) {
2323 bool reportErrors = InspectorInstrumentation::collectingHTMLParseErrors( page()); 2323 bool reportErrors = InspectorInstrumentation::collectingHTMLParseErrors( page());
2324 return HTMLDocumentParser::create(toHTMLDocument(this), reportErrors); 2324 return HTMLDocumentParser::create(toHTMLDocument(*this), reportErrors);
2325 } 2325 }
2326 // FIXME: this should probably pass the frame instead 2326 // FIXME: this should probably pass the frame instead
2327 return XMLDocumentParser::create(*this, view()); 2327 return XMLDocumentParser::create(*this, view());
2328 } 2328 }
2329 2329
2330 bool Document::isFrameSet() const 2330 bool Document::isFrameSet() const
2331 { 2331 {
2332 if (!isHTMLDocument()) 2332 if (!isHTMLDocument())
2333 return false; 2333 return false;
2334 return isHTMLFrameSetElement(body()); 2334 return isHTMLFrameSetElement(body());
(...skipping 3425 matching lines...) Expand 10 before | Expand all | Expand 10 after
5760 visitor->trace(m_timeline); 5760 visitor->trace(m_timeline);
5761 visitor->trace(m_compositorPendingAnimations); 5761 visitor->trace(m_compositorPendingAnimations);
5762 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); 5762 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this);
5763 DocumentSupplementable::trace(visitor); 5763 DocumentSupplementable::trace(visitor);
5764 TreeScope::trace(visitor); 5764 TreeScope::trace(visitor);
5765 ContainerNode::trace(visitor); 5765 ContainerNode::trace(visitor);
5766 ExecutionContext::trace(visitor); 5766 ExecutionContext::trace(visitor);
5767 } 5767 }
5768 5768
5769 } // namespace WebCore 5769 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/HTMLViewSourceDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698