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 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004, 2006, 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 14 matching lines...) Expand all Loading... |
25 | 25 |
26 #include "core/xml/XSLStyleSheet.h" | 26 #include "core/xml/XSLStyleSheet.h" |
27 #include "platform/RuntimeEnabledFeatures.h" | 27 #include "platform/RuntimeEnabledFeatures.h" |
28 | 28 |
29 namespace blink { | 29 namespace blink { |
30 | 30 |
31 class XSLImportRule final : public GarbageCollectedFinalized<XSLImportRule> { | 31 class XSLImportRule final : public GarbageCollectedFinalized<XSLImportRule> { |
32 public: | 32 public: |
33 static XSLImportRule* create(XSLStyleSheet* parentSheet, const String& href) | 33 static XSLImportRule* create(XSLStyleSheet* parentSheet, const String& href) |
34 { | 34 { |
35 ASSERT(RuntimeEnabledFeatures::xsltEnabled()); | 35 DCHECK(RuntimeEnabledFeatures::xsltEnabled()); |
36 return new XSLImportRule(parentSheet, href); | 36 return new XSLImportRule(parentSheet, href); |
37 } | 37 } |
38 | 38 |
39 virtual ~XSLImportRule(); | 39 virtual ~XSLImportRule(); |
40 DECLARE_VIRTUAL_TRACE(); | 40 DECLARE_VIRTUAL_TRACE(); |
41 | 41 |
42 const String& href() const { return m_strHref; } | 42 const String& href() const { return m_strHref; } |
43 XSLStyleSheet* styleSheet() const { return m_styleSheet.get(); } | 43 XSLStyleSheet* styleSheet() const { return m_styleSheet.get(); } |
44 | 44 |
45 XSLStyleSheet* parentStyleSheet() const { return m_parentStyleSheet; } | 45 XSLStyleSheet* parentStyleSheet() const { return m_parentStyleSheet; } |
46 void setParentStyleSheet(XSLStyleSheet* styleSheet) { m_parentStyleSheet = s
tyleSheet; } | 46 void setParentStyleSheet(XSLStyleSheet* styleSheet) { m_parentStyleSheet = s
tyleSheet; } |
47 | 47 |
48 bool isLoading(); | 48 bool isLoading(); |
49 void loadSheet(); | 49 void loadSheet(); |
50 | 50 |
51 private: | 51 private: |
52 XSLImportRule(XSLStyleSheet* parentSheet, const String& href); | 52 XSLImportRule(XSLStyleSheet* parentSheet, const String& href); |
53 | 53 |
54 void setXSLStyleSheet(const String& href, const KURL& baseURL, const String&
sheet); | 54 void setXSLStyleSheet(const String& href, const KURL& baseURL, const String&
sheet); |
55 | 55 |
56 Member<XSLStyleSheet> m_parentStyleSheet; | 56 Member<XSLStyleSheet> m_parentStyleSheet; |
57 String m_strHref; | 57 String m_strHref; |
58 Member<XSLStyleSheet> m_styleSheet; | 58 Member<XSLStyleSheet> m_styleSheet; |
59 bool m_loading; | 59 bool m_loading; |
60 }; | 60 }; |
61 | 61 |
62 } // namespace blink | 62 } // namespace blink |
63 | 63 |
64 #endif // XSLImportRule_h | 64 #endif // XSLImportRule_h |
OLD | NEW |