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

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

Issue 276733002: Convert XMLDocumentParser code to Use more reference (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review comments 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
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 2311 matching lines...) Expand 10 before | Expand all | Expand 10 after
2322 return topDocument.m_axObjectCache.get(); 2322 return topDocument.m_axObjectCache.get();
2323 } 2323 }
2324 2324
2325 PassRefPtr<DocumentParser> Document::createParser() 2325 PassRefPtr<DocumentParser> Document::createParser()
2326 { 2326 {
2327 if (isHTMLDocument()) { 2327 if (isHTMLDocument()) {
2328 bool reportErrors = InspectorInstrumentation::collectingHTMLParseErrors( page()); 2328 bool reportErrors = InspectorInstrumentation::collectingHTMLParseErrors( page());
2329 return HTMLDocumentParser::create(toHTMLDocument(this), reportErrors); 2329 return HTMLDocumentParser::create(toHTMLDocument(this), reportErrors);
2330 } 2330 }
2331 // FIXME: this should probably pass the frame instead 2331 // FIXME: this should probably pass the frame instead
2332 return XMLDocumentParser::create(this, view()); 2332 return XMLDocumentParser::create(*this, view());
2333 } 2333 }
2334 2334
2335 bool Document::isFrameSet() const 2335 bool Document::isFrameSet() const
2336 { 2336 {
2337 if (!isHTMLDocument()) 2337 if (!isHTMLDocument())
2338 return false; 2338 return false;
2339 return isHTMLFrameSetElement(body()); 2339 return isHTMLFrameSetElement(body());
2340 } 2340 }
2341 2341
2342 ScriptableDocumentParser* Document::scriptableDocumentParser() const 2342 ScriptableDocumentParser* Document::scriptableDocumentParser() const
(...skipping 3365 matching lines...) Expand 10 before | Expand all | Expand 10 after
5708 visitor->trace(m_visibilityObservers); 5708 visitor->trace(m_visibilityObservers);
5709 visitor->trace(m_userActionElements); 5709 visitor->trace(m_userActionElements);
5710 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); 5710 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this);
5711 DocumentSupplementable::trace(visitor); 5711 DocumentSupplementable::trace(visitor);
5712 TreeScope::trace(visitor); 5712 TreeScope::trace(visitor);
5713 ContainerNode::trace(visitor); 5713 ContainerNode::trace(visitor);
5714 ExecutionContext::trace(visitor); 5714 ExecutionContext::trace(visitor);
5715 } 5715 }
5716 5716
5717 } // namespace WebCore 5717 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/DecodedDataDocumentParser.cpp ('k') | Source/core/dom/ScriptableDocumentParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698