| 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 29 matching lines...) Expand all Loading... |
| 40 public: | 40 public: |
| 41 CachedCSSStyleSheet(const ResourceRequest&, const String& charset); | 41 CachedCSSStyleSheet(const ResourceRequest&, const String& charset); |
| 42 virtual ~CachedCSSStyleSheet(); | 42 virtual ~CachedCSSStyleSheet(); |
| 43 | 43 |
| 44 const String sheetText(bool enforceMIMEType = true, bool* hasValidMIMETy
pe = 0) const; | 44 const String sheetText(bool enforceMIMEType = true, bool* hasValidMIMETy
pe = 0) const; |
| 45 | 45 |
| 46 virtual void didAddClient(CachedResourceClient*); | 46 virtual void didAddClient(CachedResourceClient*); |
| 47 | 47 |
| 48 virtual void setEncoding(const String&); | 48 virtual void setEncoding(const String&); |
| 49 virtual String encoding() const; | 49 virtual String encoding() const; |
| 50 virtual void data(PassRefPtr<ResourceBuffer> data, bool allDataReceived)
; | |
| 51 virtual void destroyDecodedData() OVERRIDE; | 50 virtual void destroyDecodedData() OVERRIDE; |
| 52 | 51 |
| 53 PassRefPtr<StyleSheetContents> restoreParsedStyleSheet(const CSSParserCo
ntext&); | 52 PassRefPtr<StyleSheetContents> restoreParsedStyleSheet(const CSSParserCo
ntext&); |
| 54 void saveParsedStyleSheet(PassRefPtr<StyleSheetContents>); | 53 void saveParsedStyleSheet(PassRefPtr<StyleSheetContents>); |
| 55 | 54 |
| 56 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; | 55 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; |
| 57 | 56 |
| 58 private: | 57 private: |
| 59 bool canUseSheet(bool enforceMIMEType, bool* hasValidMIMEType) const; | 58 bool canUseSheet(bool enforceMIMEType, bool* hasValidMIMEType) const; |
| 60 virtual PurgePriority purgePriority() const { return PurgeLast; } | 59 virtual PurgePriority purgePriority() const { return PurgeLast; } |
| 61 | 60 |
| 62 protected: | 61 protected: |
| 63 virtual void checkNotify(); | 62 virtual void checkNotify(); |
| 64 | 63 |
| 65 RefPtr<TextResourceDecoder> m_decoder; | 64 RefPtr<TextResourceDecoder> m_decoder; |
| 66 String m_decodedSheetText; | 65 String m_decodedSheetText; |
| 67 | 66 |
| 68 RefPtr<StyleSheetContents> m_parsedStyleSheetCache; | 67 RefPtr<StyleSheetContents> m_parsedStyleSheetCache; |
| 69 }; | 68 }; |
| 70 | 69 |
| 71 } | 70 } |
| 72 | 71 |
| 73 #endif | 72 #endif |
| OLD | NEW |