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

Side by Side Diff: Source/core/xml/XSLTProcessor.cpp

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix tests build Created 7 years, 3 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 String resultMIMEType; 114 String resultMIMEType;
115 String resultString; 115 String resultString;
116 String resultEncoding; 116 String resultEncoding;
117 117
118 // If the output document is HTML, default to HTML method. 118 // If the output document is HTML, default to HTML method.
119 if (outputDoc->isHTMLDocument()) 119 if (outputDoc->isHTMLDocument())
120 resultMIMEType = "text/html"; 120 resultMIMEType = "text/html";
121 121
122 if (!transformToString(sourceNode, resultMIMEType, resultString, resultEncod ing)) 122 if (!transformToString(sourceNode, resultMIMEType, resultString, resultEncod ing))
123 return 0; 123 return 0;
124 return createFragmentForTransformToFragment(resultString, resultMIMEType, ou tputDoc); 124 return createFragmentForTransformToFragment(resultString, resultMIMEType, *o utputDoc);
125 } 125 }
126 126
127 void XSLTProcessor::setParameter(const String& /*namespaceURI*/, const String& l ocalName, const String& value) 127 void XSLTProcessor::setParameter(const String& /*namespaceURI*/, const String& l ocalName, const String& value)
128 { 128 {
129 // FIXME: namespace support? 129 // FIXME: namespace support?
130 // should make a QualifiedName here but we'd have to expose the impl 130 // should make a QualifiedName here but we'd have to expose the impl
131 m_parameters.set(localName, value); 131 m_parameters.set(localName, value);
132 } 132 }
133 133
134 String XSLTProcessor::getParameter(const String& /*namespaceURI*/, const String& localName) const 134 String XSLTProcessor::getParameter(const String& /*namespaceURI*/, const String& localName) const
(...skipping 10 matching lines...) Expand all
145 } 145 }
146 146
147 void XSLTProcessor::reset() 147 void XSLTProcessor::reset()
148 { 148 {
149 m_stylesheet.clear(); 149 m_stylesheet.clear();
150 m_stylesheetRootNode.clear(); 150 m_stylesheetRootNode.clear();
151 m_parameters.clear(); 151 m_parameters.clear();
152 } 152 }
153 153
154 } // namespace WebCore 154 } // namespace WebCore
OLDNEW
« Source/core/svg/SVGElement.h ('K') | « Source/core/testing/MockPagePopupDriver.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698