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, 2006, 2008, 2012 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004, 2006, 2008, 2012 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 18 matching lines...) Expand all Loading... |
29 #include "wtf/PassRefPtr.h" | 29 #include "wtf/PassRefPtr.h" |
30 | 30 |
31 #include <libxml/tree.h> | 31 #include <libxml/tree.h> |
32 #include <libxslt/transform.h> | 32 #include <libxslt/transform.h> |
33 | 33 |
34 namespace WebCore { | 34 namespace WebCore { |
35 | 35 |
36 class ResourceFetcher; | 36 class ResourceFetcher; |
37 class XSLImportRule; | 37 class XSLImportRule; |
38 | 38 |
39 class XSLStyleSheet : public StyleSheet { | 39 class XSLStyleSheet FINAL : public StyleSheet { |
40 public: | 40 public: |
41 static PassRefPtr<XSLStyleSheet> create(XSLImportRule* parentImport, const S
tring& originalURL, const KURL& finalURL) | 41 static PassRefPtr<XSLStyleSheet> create(XSLImportRule* parentImport, const S
tring& originalURL, const KURL& finalURL) |
42 { | 42 { |
43 ASSERT(RuntimeEnabledFeatures::xsltEnabled()); | 43 ASSERT(RuntimeEnabledFeatures::xsltEnabled()); |
44 return adoptRef(new XSLStyleSheet(parentImport, originalURL, finalURL)); | 44 return adoptRef(new XSLStyleSheet(parentImport, originalURL, finalURL)); |
45 } | 45 } |
46 static PassRefPtr<XSLStyleSheet> create(ProcessingInstruction* parentNode, c
onst String& originalURL, const KURL& finalURL) | 46 static PassRefPtr<XSLStyleSheet> create(ProcessingInstruction* parentNode, c
onst String& originalURL, const KURL& finalURL) |
47 { | 47 { |
48 ASSERT(RuntimeEnabledFeatures::xsltEnabled()); | 48 ASSERT(RuntimeEnabledFeatures::xsltEnabled()); |
49 return adoptRef(new XSLStyleSheet(parentNode, originalURL, finalURL, fal
se)); | 49 return adoptRef(new XSLStyleSheet(parentNode, originalURL, finalURL, fal
se)); |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 bool m_compilationFailed; | 118 bool m_compilationFailed; |
119 | 119 |
120 XSLStyleSheet* m_parentStyleSheet; | 120 XSLStyleSheet* m_parentStyleSheet; |
121 }; | 121 }; |
122 | 122 |
123 DEFINE_TYPE_CASTS(XSLStyleSheet, StyleSheet, sheet, !sheet->isCSSStyleSheet(), !
sheet.isCSSStyleSheet()); | 123 DEFINE_TYPE_CASTS(XSLStyleSheet, StyleSheet, sheet, !sheet->isCSSStyleSheet(), !
sheet.isCSSStyleSheet()); |
124 | 124 |
125 } // namespace WebCore | 125 } // namespace WebCore |
126 | 126 |
127 #endif // XSLStyleSheet_h | 127 #endif // XSLStyleSheet_h |
OLD | NEW |