| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. | 3 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 virtual void styleSheetChanged(); | 80 virtual void styleSheetChanged(); |
| 81 | 81 |
| 82 virtual bool parseString(const String&, bool strict = true); | 82 virtual bool parseString(const String&, bool strict = true); |
| 83 | 83 |
| 84 bool parseStringAtLine(const String&, bool strict, int startLineNumber); | 84 bool parseStringAtLine(const String&, bool strict, int startLineNumber); |
| 85 | 85 |
| 86 virtual bool isLoading(); | 86 virtual bool isLoading(); |
| 87 | 87 |
| 88 virtual void checkLoaded(); | 88 virtual void checkLoaded(); |
| 89 | 89 |
| 90 Document* document() { return m_document; } | 90 Document* document(); |
| 91 | 91 |
| 92 const String& charset() const { return m_charset; } | 92 const String& charset() const { return m_charset; } |
| 93 | 93 |
| 94 bool loadCompleted() const { return m_loadCompleted; } | 94 bool loadCompleted() const { return m_loadCompleted; } |
| 95 | 95 |
| 96 virtual KURL completeURL(const String& url) const; | 96 virtual KURL completeURL(const String& url) const; |
| 97 virtual void addSubresourceStyleURLs(ListHashSet<KURL>&); | 97 virtual void addSubresourceStyleURLs(ListHashSet<KURL>&); |
| 98 | 98 |
| 99 void setStrictParsing(bool b) { m_strictParsing = b; } | 99 void setStrictParsing(bool b) { m_strictParsing = b; } |
| 100 bool useStrictParsing() const { return m_strictParsing; } | 100 bool useStrictParsing() const { return m_strictParsing; } |
| 101 | 101 |
| 102 void setIsUserStyleSheet(bool b) { m_isUserStyleSheet = b; } | 102 void setIsUserStyleSheet(bool b) { m_isUserStyleSheet = b; } |
| 103 bool isUserStyleSheet() const { return m_isUserStyleSheet; } | 103 bool isUserStyleSheet() const { return m_isUserStyleSheet; } |
| 104 void setHasSyntacticallyValidCSSHeader(bool b) { m_hasSyntacticallyValidCSSH
eader = b; } | 104 void setHasSyntacticallyValidCSSHeader(bool b) { m_hasSyntacticallyValidCSSH
eader = b; } |
| 105 bool hasSyntacticallyValidCSSHeader() const { return m_hasSyntacticallyValid
CSSHeader; } | 105 bool hasSyntacticallyValidCSSHeader() const { return m_hasSyntacticallyValid
CSSHeader; } |
| 106 | 106 |
| 107 private: | 107 private: |
| 108 CSSStyleSheet(Node* ownerNode, const String& originalURL, const KURL& finalU
RL, const String& charset); | 108 CSSStyleSheet(Node* ownerNode, const String& originalURL, const KURL& finalU
RL, const String& charset); |
| 109 CSSStyleSheet(CSSStyleSheet* parentSheet, const String& originalURL, const K
URL& finalURL, const String& charset); | 109 CSSStyleSheet(CSSStyleSheet* parentSheet, const String& originalURL, const K
URL& finalURL, const String& charset); |
| 110 CSSStyleSheet(CSSRule* ownerRule, const String& originalURL, const KURL& fin
alURL, const String& charset); | 110 CSSStyleSheet(CSSRule* ownerRule, const String& originalURL, const KURL& fin
alURL, const String& charset); |
| 111 | 111 |
| 112 virtual bool isCSSStyleSheet() const { return true; } | 112 virtual bool isCSSStyleSheet() const { return true; } |
| 113 virtual String type() const { return "text/css"; } | 113 virtual String type() const { return "text/css"; } |
| 114 | 114 |
| 115 Document* m_document; | |
| 116 OwnPtr<CSSNamespace> m_namespaces; | 115 OwnPtr<CSSNamespace> m_namespaces; |
| 117 String m_charset; | 116 String m_charset; |
| 118 bool m_loadCompleted : 1; | 117 bool m_loadCompleted : 1; |
| 119 bool m_strictParsing : 1; | 118 bool m_strictParsing : 1; |
| 120 bool m_isUserStyleSheet : 1; | 119 bool m_isUserStyleSheet : 1; |
| 121 bool m_hasSyntacticallyValidCSSHeader : 1; | 120 bool m_hasSyntacticallyValidCSSHeader : 1; |
| 122 }; | 121 }; |
| 123 | 122 |
| 124 } // namespace | 123 } // namespace |
| 125 | 124 |
| 126 #endif | 125 #endif |
| OLD | NEW |