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

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

Issue 196513007: Oilpan: Reapply: Remove all the RefPtrs and most of the raw pointers to style (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 } 229 }
230 230
231 if (doctype) 231 if (doctype)
232 doc->appendChild(doctype); 232 doc->appendChild(doctype);
233 if (documentElement) 233 if (documentElement)
234 doc->appendChild(documentElement.release()); 234 doc->appendChild(documentElement.release());
235 235
236 return doc.release(); 236 return doc.release();
237 } 237 }
238 238
239 PassRefPtr<CSSStyleSheet> DOMImplementation::createCSSStyleSheet(const String&, const String& media) 239 PassRefPtrWillBeRawPtr<CSSStyleSheet> DOMImplementation::createCSSStyleSheet(con st String&, const String& media)
240 { 240 {
241 // FIXME: Title should be set. 241 // FIXME: Title should be set.
242 // FIXME: Media could have wrong syntax, in which case we should generate an exception. 242 // FIXME: Media could have wrong syntax, in which case we should generate an exception.
243 RefPtr<CSSStyleSheet> sheet = CSSStyleSheet::create(StyleSheetContents::crea te(strictCSSParserContext())); 243 RefPtrWillBeRawPtr<CSSStyleSheet> sheet = CSSStyleSheet::create(StyleSheetCo ntents::create(strictCSSParserContext()));
244 sheet->setMediaQueries(MediaQuerySet::create(media)); 244 sheet->setMediaQueries(MediaQuerySet::create(media));
245 return sheet; 245 return sheet;
246 } 246 }
247 247
248 bool DOMImplementation::isXMLMIMEType(const String& mimeType) 248 bool DOMImplementation::isXMLMIMEType(const String& mimeType)
249 { 249 {
250 if (equalIgnoringCase(mimeType, "text/xml") 250 if (equalIgnoringCase(mimeType, "text/xml")
251 || equalIgnoringCase(mimeType, "application/xml") 251 || equalIgnoringCase(mimeType, "application/xml")
252 || equalIgnoringCase(mimeType, "text/xsl")) 252 || equalIgnoringCase(mimeType, "text/xsl"))
253 return true; 253 return true;
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 return TextDocument::create(init); 389 return TextDocument::create(init);
390 if (type == "image/svg+xml") 390 if (type == "image/svg+xml")
391 return SVGDocument::create(init); 391 return SVGDocument::create(init);
392 if (isXMLMIMEType(type)) 392 if (isXMLMIMEType(type))
393 return XMLDocument::create(init); 393 return XMLDocument::create(init);
394 394
395 return HTMLDocument::create(init); 395 return HTMLDocument::create(init);
396 } 396 }
397 397
398 } 398 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698