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

Side by Side Diff: Source/core/xml/XSLTProcessor.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 * This file is part of the XSL implementation. 2 * This file is part of the XSL implementation.
3 * 3 *
4 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple, Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple, Inc. All rights reserved.
5 * Copyright (C) 2005, 2006 Alexey Proskuryakov <ap@webkit.org> 5 * Copyright (C) 2005, 2006 Alexey Proskuryakov <ap@webkit.org>
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n" 47 "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n"
48 "<head><title/></head>\n" 48 "<head><title/></head>\n"
49 "<body>\n" 49 "<body>\n"
50 "<pre>" + text + "</pre>\n" 50 "<pre>" + text + "</pre>\n"
51 "</body>\n" 51 "</body>\n"
52 "</html>\n"; 52 "</html>\n";
53 } 53 }
54 54
55 XSLTProcessor::~XSLTProcessor() 55 XSLTProcessor::~XSLTProcessor()
56 { 56 {
57 #if !ENABLE(OILPAN)
57 // Stylesheet shouldn't outlive its root node. 58 // Stylesheet shouldn't outlive its root node.
58 ASSERT(!m_stylesheetRootNode || !m_stylesheet || m_stylesheet->hasOneRef()); 59 ASSERT(!m_stylesheetRootNode || !m_stylesheet || m_stylesheet->hasOneRef());
60 #endif
59 } 61 }
60 62
61 PassRefPtr<Document> XSLTProcessor::createDocumentFromSource(const String& sourc eString, 63 PassRefPtr<Document> XSLTProcessor::createDocumentFromSource(const String& sourc eString,
62 const String& sourceEncoding, const String& sourceMIMEType, Node* sourceNode , LocalFrame* frame) 64 const String& sourceEncoding, const String& sourceMIMEType, Node* sourceNode , LocalFrame* frame)
63 { 65 {
64 RefPtr<Document> ownerDocument(sourceNode->document()); 66 RefPtr<Document> ownerDocument(sourceNode->document());
65 bool sourceIsDocument = (sourceNode == ownerDocument.get()); 67 bool sourceIsDocument = (sourceNode == ownerDocument.get());
66 String documentSource = sourceString; 68 String documentSource = sourceString;
67 69
68 RefPtr<Document> result; 70 RefPtr<Document> result;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 m_parameters.remove(localName); 152 m_parameters.remove(localName);
151 } 153 }
152 154
153 void XSLTProcessor::reset() 155 void XSLTProcessor::reset()
154 { 156 {
155 m_stylesheet.clear(); 157 m_stylesheet.clear();
156 m_stylesheetRootNode.clear(); 158 m_stylesheetRootNode.clear();
157 m_parameters.clear(); 159 m_parameters.clear();
158 } 160 }
159 161
162 void XSLTProcessor::trace(Visitor* visitor)
163 {
164 visitor->trace(m_stylesheet);
165 }
166
160 } // namespace WebCore 167 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698