OLD | NEW |
1 /* | 1 /* |
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) | 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) |
4 * Copyright (C) 2002, 2006, 2008, 2012 Apple Inc. All rights reserved. | 4 * Copyright (C) 2002, 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 void clearParentStyleSheet() { m_parentStyleSheet = nullptr; } | 45 void clearParentStyleSheet() { m_parentStyleSheet = nullptr; } |
46 | 46 |
47 String href() const { return m_strHref; } | 47 String href() const { return m_strHref; } |
48 StyleSheetContents* styleSheet() const { return m_styleSheet.get(); } | 48 StyleSheetContents* styleSheet() const { return m_styleSheet.get(); } |
49 | 49 |
50 bool isLoading() const; | 50 bool isLoading() const; |
51 MediaQuerySet* mediaQueries() { return m_mediaQueries.get(); } | 51 MediaQuerySet* mediaQueries() { return m_mediaQueries.get(); } |
52 | 52 |
53 void requestStyleSheet(); | 53 void requestStyleSheet(); |
54 | 54 |
| 55 void purgeMemory(); |
| 56 |
55 DECLARE_TRACE_AFTER_DISPATCH(); | 57 DECLARE_TRACE_AFTER_DISPATCH(); |
56 | 58 |
57 private: | 59 private: |
58 // FIXME: inherit from StyleSheetResourceClient directly to eliminate raw ba
ck pointer, as there are no space savings in this. | 60 // FIXME: inherit from StyleSheetResourceClient directly to eliminate raw ba
ck pointer, as there are no space savings in this. |
59 // NOTE: We put the StyleSheetResourceClient in a member instead of inheriti
ng from it | 61 // NOTE: We put the StyleSheetResourceClient in a member instead of inheriti
ng from it |
60 // to avoid adding a vptr to StyleRuleImport. | 62 // to avoid adding a vptr to StyleRuleImport. |
61 class ImportedStyleSheetClient final : public StyleSheetResourceClient { | 63 class ImportedStyleSheetClient final : public StyleSheetResourceClient { |
62 DISALLOW_NEW(); | 64 DISALLOW_NEW(); |
63 public: | 65 public: |
64 ImportedStyleSheetClient(StyleRuleImport* ownerRule) : m_ownerRule(owner
Rule) { } | 66 ImportedStyleSheetClient(StyleRuleImport* ownerRule) : m_ownerRule(owner
Rule) { } |
(...skipping 26 matching lines...) Expand all Loading... |
91 RefPtrWillBeMember<StyleSheetContents> m_styleSheet; | 93 RefPtrWillBeMember<StyleSheetContents> m_styleSheet; |
92 ResourcePtr<CSSStyleSheetResource> m_resource; | 94 ResourcePtr<CSSStyleSheetResource> m_resource; |
93 bool m_loading; | 95 bool m_loading; |
94 }; | 96 }; |
95 | 97 |
96 DEFINE_STYLE_RULE_TYPE_CASTS(Import); | 98 DEFINE_STYLE_RULE_TYPE_CASTS(Import); |
97 | 99 |
98 } // namespace blink | 100 } // namespace blink |
99 | 101 |
100 #endif | 102 #endif |
OLD | NEW |