| OLD | NEW |
| 1 /* | 1 /* |
| 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) | 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) |
| 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> | 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> |
| 4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 5 Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 5 Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 6 | 6 |
| 7 This library is free software; you can redistribute it and/or | 7 This library is free software; you can redistribute it and/or |
| 8 modify it under the terms of the GNU Library General Public | 8 modify it under the terms of the GNU Library General Public |
| 9 License as published by the Free Software Foundation; either | 9 License as published by the Free Software Foundation; either |
| 10 version 2 of the License, or (at your option) any later version. | 10 version 2 of the License, or (at your option) any later version. |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 static CSSStyleSheetResource* createForTest(const ResourceRequest&, | 46 static CSSStyleSheetResource* createForTest(const ResourceRequest&, |
| 47 const String& charset); | 47 const String& charset); |
| 48 | 48 |
| 49 ~CSSStyleSheetResource() override; | 49 ~CSSStyleSheetResource() override; |
| 50 DECLARE_VIRTUAL_TRACE(); | 50 DECLARE_VIRTUAL_TRACE(); |
| 51 | 51 |
| 52 const String sheetText(MIMETypeCheck = MIMETypeCheck::Strict) const; | 52 const String sheetText(MIMETypeCheck = MIMETypeCheck::Strict) const; |
| 53 | 53 |
| 54 void didAddClient(ResourceClient*) override; | 54 void didAddClient(ResourceClient*) override; |
| 55 | 55 |
| 56 StyleSheetContents* restoreParsedStyleSheet(const CSSParserContext&); | 56 StyleSheetContents* restoreParsedStyleSheet(const CSSParserContext*); |
| 57 void saveParsedStyleSheet(StyleSheetContents*); | 57 void saveParsedStyleSheet(StyleSheetContents*); |
| 58 | 58 |
| 59 void appendData(const char* data, size_t length) override; | 59 void appendData(const char* data, size_t length) override; |
| 60 | 60 |
| 61 private: | 61 private: |
| 62 class CSSStyleSheetResourceFactory : public ResourceFactory { | 62 class CSSStyleSheetResourceFactory : public ResourceFactory { |
| 63 public: | 63 public: |
| 64 CSSStyleSheetResourceFactory() : ResourceFactory(Resource::CSSStyleSheet) {} | 64 CSSStyleSheetResourceFactory() : ResourceFactory(Resource::CSSStyleSheet) {} |
| 65 | 65 |
| 66 Resource* create(const ResourceRequest& request, | 66 Resource* create(const ResourceRequest& request, |
| (...skipping 23 matching lines...) Expand all Loading... |
| 90 Member<StyleSheetContents> m_parsedStyleSheetCache; | 90 Member<StyleSheetContents> m_parsedStyleSheetCache; |
| 91 | 91 |
| 92 bool m_didNotifyFirstData; | 92 bool m_didNotifyFirstData; |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 DEFINE_RESOURCE_TYPE_CASTS(CSSStyleSheet); | 95 DEFINE_RESOURCE_TYPE_CASTS(CSSStyleSheet); |
| 96 | 96 |
| 97 } // namespace blink | 97 } // namespace blink |
| 98 | 98 |
| 99 #endif | 99 #endif |
| OLD | NEW |