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

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

Issue 996603003: Add [TypeChecking=Interface] to XSLTProcessor interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update test Created 5 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
« no previous file with comments | « LayoutTests/fast/xsl/xslt-processor-expected.txt ('k') | Source/core/xml/XSLTProcessor.cpp » ('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 * This file is part of the XSL implementation. 2 * This file is part of the XSL implementation.
3 * 3 *
4 * Copyright (C) 2004, 2007, 2008 Apple, Inc. All rights reserved. 4 * Copyright (C) 2004, 2007, 2008 Apple, Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 } 49 }
50 ~XSLTProcessor(); 50 ~XSLTProcessor();
51 51
52 void setXSLStyleSheet(PassRefPtrWillBeRawPtr<XSLStyleSheet> styleSheet) { m_ stylesheet = styleSheet; } 52 void setXSLStyleSheet(PassRefPtrWillBeRawPtr<XSLStyleSheet> styleSheet) { m_ stylesheet = styleSheet; }
53 bool transformToString(Node* source, String& resultMIMEType, String& resultS tring, String& resultEncoding); 53 bool transformToString(Node* source, String& resultMIMEType, String& resultS tring, String& resultEncoding);
54 PassRefPtrWillBeRawPtr<Document> createDocumentFromSource(const String& sour ce, const String& sourceEncoding, const String& sourceMIMEType, Node* sourceNode , LocalFrame*); 54 PassRefPtrWillBeRawPtr<Document> createDocumentFromSource(const String& sour ce, const String& sourceEncoding, const String& sourceMIMEType, Node* sourceNode , LocalFrame*);
55 55
56 // DOM methods 56 // DOM methods
57 void importStylesheet(PassRefPtrWillBeRawPtr<Node> style) 57 void importStylesheet(PassRefPtrWillBeRawPtr<Node> style)
58 { 58 {
59 if (style) 59 m_stylesheetRootNode = style;
60 m_stylesheetRootNode = style;
61 } 60 }
62 PassRefPtrWillBeRawPtr<DocumentFragment> transformToFragment(Node* source, D ocument* ouputDoc); 61 PassRefPtrWillBeRawPtr<DocumentFragment> transformToFragment(Node* source, D ocument* ouputDoc);
63 PassRefPtrWillBeRawPtr<Document> transformToDocument(Node* source); 62 PassRefPtrWillBeRawPtr<Document> transformToDocument(Node* source);
64 63
65 void setParameter(const String& namespaceURI, const String& localName, const String& value); 64 void setParameter(const String& namespaceURI, const String& localName, const String& value);
66 String getParameter(const String& namespaceURI, const String& localName) con st; 65 String getParameter(const String& namespaceURI, const String& localName) con st;
67 void removeParameter(const String& namespaceURI, const String& localName); 66 void removeParameter(const String& namespaceURI, const String& localName);
68 void clearParameters() { m_parameters.clear(); } 67 void clearParameters() { m_parameters.clear(); }
69 68
70 void reset(); 69 void reset();
(...skipping 15 matching lines...) Expand all
86 85
87 RefPtrWillBeMember<XSLStyleSheet> m_stylesheet; 86 RefPtrWillBeMember<XSLStyleSheet> m_stylesheet;
88 RefPtrWillBeMember<Node> m_stylesheetRootNode; 87 RefPtrWillBeMember<Node> m_stylesheetRootNode;
89 RefPtrWillBeMember<Document> m_document; 88 RefPtrWillBeMember<Document> m_document;
90 ParameterMap m_parameters; 89 ParameterMap m_parameters;
91 }; 90 };
92 91
93 } // namespace blink 92 } // namespace blink
94 93
95 #endif // XSLTProcessor_h 94 #endif // XSLTProcessor_h
OLDNEW
« no previous file with comments | « LayoutTests/fast/xsl/xslt-processor-expected.txt ('k') | Source/core/xml/XSLTProcessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698