diff options
Diffstat (limited to 'WebCore/loader/CachedCSSStyleSheet.h')
-rw-r--r-- | WebCore/loader/CachedCSSStyleSheet.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/WebCore/loader/CachedCSSStyleSheet.h b/WebCore/loader/CachedCSSStyleSheet.h index b9129ba..fa0b31a 100644 --- a/WebCore/loader/CachedCSSStyleSheet.h +++ b/WebCore/loader/CachedCSSStyleSheet.h @@ -1,10 +1,8 @@ /* - This file is part of the KDE libraries - Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) Copyright (C) 2001 Dirk Mueller <mueller@kde.org> Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) - Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. + Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public @@ -42,10 +40,12 @@ namespace WebCore { CachedCSSStyleSheet(const String& URL, const String& charset); virtual ~CachedCSSStyleSheet(); - const String sheetText(bool enforceMIMEType = true) const { return canUseSheet(enforceMIMEType) ? m_sheet : ""; } + const String sheetText(bool enforceMIMEType = true) const; virtual void addClient(CachedResourceClient*); - + + virtual void allClientsRemoved(); + virtual void setEncoding(const String&); virtual String encoding() const; virtual void data(PassRefPtr<SharedBuffer> data, bool allDataReceived); @@ -59,8 +59,8 @@ namespace WebCore { bool canUseSheet(bool enforceMIMEType) const; protected: - String m_sheet; RefPtr<TextResourceDecoder> m_decoder; + String m_decodedSheetText; }; } |