| OLD | NEW |
| 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 22 matching lines...) Expand all Loading... |
| 33 #include <libxml/parserInternals.h> | 33 #include <libxml/parserInternals.h> |
| 34 #include <libxslt/documents.h> | 34 #include <libxslt/documents.h> |
| 35 | 35 |
| 36 namespace WebCore { | 36 namespace WebCore { |
| 37 | 37 |
| 38 class Frame; | 38 class Frame; |
| 39 class Document; | 39 class Document; |
| 40 class DocumentFragment; | 40 class DocumentFragment; |
| 41 | 41 |
| 42 class XSLTProcessor : public RefCountedWillBeGarbageCollectedFinalized<XSLTProce
ssor>, public ScriptWrappable { | 42 class XSLTProcessor : public RefCountedWillBeGarbageCollectedFinalized<XSLTProce
ssor>, public ScriptWrappable { |
| 43 DECLARE_GC_INFO; | |
| 44 public: | 43 public: |
| 45 static PassRefPtrWillBeRawPtr<XSLTProcessor> create() | 44 static PassRefPtrWillBeRawPtr<XSLTProcessor> create() |
| 46 { | 45 { |
| 47 ASSERT(RuntimeEnabledFeatures::xsltEnabled()); | 46 ASSERT(RuntimeEnabledFeatures::xsltEnabled()); |
| 48 return adoptRefWillBeNoop(new XSLTProcessor); | 47 return adoptRefWillBeNoop(new XSLTProcessor); |
| 49 } | 48 } |
| 50 ~XSLTProcessor(); | 49 ~XSLTProcessor(); |
| 51 | 50 |
| 52 void setXSLStyleSheet(PassRefPtr<XSLStyleSheet> styleSheet) { m_stylesheet =
styleSheet; } | 51 void setXSLStyleSheet(PassRefPtr<XSLStyleSheet> styleSheet) { m_stylesheet =
styleSheet; } |
| 53 bool transformToString(Node* source, String& resultMIMEType, String& resultS
tring, String& resultEncoding); | 52 bool transformToString(Node* source, String& resultMIMEType, String& resultS
tring, String& resultEncoding); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 } | 85 } |
| 87 | 86 |
| 88 RefPtr<XSLStyleSheet> m_stylesheet; | 87 RefPtr<XSLStyleSheet> m_stylesheet; |
| 89 RefPtr<Node> m_stylesheetRootNode; | 88 RefPtr<Node> m_stylesheetRootNode; |
| 90 ParameterMap m_parameters; | 89 ParameterMap m_parameters; |
| 91 }; | 90 }; |
| 92 | 91 |
| 93 } | 92 } |
| 94 | 93 |
| 95 #endif | 94 #endif |
| OLD | NEW |