Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: WebCore/css/CSSStyleSheet.h

Issue 6474050: Revert 78101 - Merge r76728, crbug 68263 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/597/
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « WebCore/css/CSSMediaRule.cpp ('k') | WebCore/css/CSSStyleSheet.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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(); 90 Document* document() { return m_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;
115 OwnPtr<CSSNamespace> m_namespaces; 116 OwnPtr<CSSNamespace> m_namespaces;
116 String m_charset; 117 String m_charset;
117 bool m_loadCompleted : 1; 118 bool m_loadCompleted : 1;
118 bool m_strictParsing : 1; 119 bool m_strictParsing : 1;
119 bool m_isUserStyleSheet : 1; 120 bool m_isUserStyleSheet : 1;
120 bool m_hasSyntacticallyValidCSSHeader : 1; 121 bool m_hasSyntacticallyValidCSSHeader : 1;
121 }; 122 };
122 123
123 } // namespace 124 } // namespace
124 125
125 #endif 126 #endif
OLDNEW
« no previous file with comments | « WebCore/css/CSSMediaRule.cpp ('k') | WebCore/css/CSSStyleSheet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698