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

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

Issue 288343017: Oilpan: Replace RefPtrs to Node and its subclasses in core/xml/ with Oilpan transition types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: nullptr 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/DOMImplementation.h ('k') | Source/core/frame/DOMWindow.h » ('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 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
6 * Copyright (C) 2006 Samuel Weinig (sam@webkit.org) 6 * Copyright (C) 2006 Samuel Weinig (sam@webkit.org)
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 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 RefPtrWillBeRawPtr<HTMLDocument> d = HTMLDocument::create(init); 325 RefPtrWillBeRawPtr<HTMLDocument> d = HTMLDocument::create(init);
326 d->open(); 326 d->open();
327 d->write("<!doctype html><html><body></body></html>"); 327 d->write("<!doctype html><html><body></body></html>");
328 if (!title.isNull()) 328 if (!title.isNull())
329 d->setTitle(title); 329 d->setTitle(title);
330 d->setSecurityOrigin(document().securityOrigin()->isolatedCopy()); 330 d->setSecurityOrigin(document().securityOrigin()->isolatedCopy());
331 d->setContextFeatures(document().contextFeatures()); 331 d->setContextFeatures(document().contextFeatures());
332 return d.release(); 332 return d.release();
333 } 333 }
334 334
335 PassRefPtr<Document> DOMImplementation::createDocument(const String& type, Local Frame* frame, const KURL& url, bool inViewSourceMode) 335 PassRefPtrWillBeRawPtr<Document> DOMImplementation::createDocument(const String& type, LocalFrame* frame, const KURL& url, bool inViewSourceMode)
336 { 336 {
337 return createDocument(type, DocumentInit(url, frame), inViewSourceMode); 337 return createDocument(type, DocumentInit(url, frame), inViewSourceMode);
338 } 338 }
339 339
340 PassRefPtr<Document> DOMImplementation::createDocument(const String& type, const DocumentInit& init, bool inViewSourceMode) 340 PassRefPtrWillBeRawPtr<Document> DOMImplementation::createDocument(const String& type, const DocumentInit& init, bool inViewSourceMode)
341 { 341 {
342 if (inViewSourceMode) 342 if (inViewSourceMode)
343 return HTMLViewSourceDocument::create(init, type); 343 return HTMLViewSourceDocument::create(init, type);
344 344
345 // Plugins cannot take HTML and XHTML from us, and we don't even need to ini tialize the plugin database for those. 345 // Plugins cannot take HTML and XHTML from us, and we don't even need to ini tialize the plugin database for those.
346 if (type == "text/html") 346 if (type == "text/html")
347 return HTMLDocument::create(init); 347 return HTMLDocument::create(init);
348 if (type == "application/xhtml+xml") 348 if (type == "application/xhtml+xml")
349 return XMLDocument::createXHTML(init); 349 return XMLDocument::createXHTML(init);
350 350
(...skipping 26 matching lines...) Expand all
377 377
378 return HTMLDocument::create(init); 378 return HTMLDocument::create(init);
379 } 379 }
380 380
381 void DOMImplementation::trace(Visitor* visitor) 381 void DOMImplementation::trace(Visitor* visitor)
382 { 382 {
383 visitor->trace(m_document); 383 visitor->trace(m_document);
384 } 384 }
385 385
386 } 386 }
OLDNEW
« no previous file with comments | « Source/core/dom/DOMImplementation.h ('k') | Source/core/frame/DOMWindow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698