| 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, 2012 Apple Inc. All rights | 3 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All rights |
| 4 * reserved. | 4 * reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 void setHasSyntacticallyValidCSSHeader(bool isValidCss); | 94 void setHasSyntacticallyValidCSSHeader(bool isValidCss); |
| 95 bool hasSyntacticallyValidCSSHeader() const { | 95 bool hasSyntacticallyValidCSSHeader() const { |
| 96 return m_hasSyntacticallyValidCSSHeader; | 96 return m_hasSyntacticallyValidCSSHeader; |
| 97 } | 97 } |
| 98 | 98 |
| 99 void setHasFontFaceRule() { m_hasFontFaceRule = true; } | 99 void setHasFontFaceRule() { m_hasFontFaceRule = true; } |
| 100 bool hasFontFaceRule() const { return m_hasFontFaceRule; } | 100 bool hasFontFaceRule() const { return m_hasFontFaceRule; } |
| 101 void findFontFaceRules( | 101 void findFontFaceRules( |
| 102 HeapVector<Member<const StyleRuleFontFace>>& fontFaceRules); | 102 HeapVector<Member<const StyleRuleFontFace>>& fontFaceRules); |
| 103 | 103 |
| 104 void setHasViewportRule() { m_hasViewportRule = true; } |
| 105 bool hasViewportRule() const { return m_hasViewportRule; } |
| 106 |
| 104 void parserAddNamespace(const AtomicString& prefix, const AtomicString& uri); | 107 void parserAddNamespace(const AtomicString& prefix, const AtomicString& uri); |
| 105 void parserAppendRule(StyleRuleBase*); | 108 void parserAppendRule(StyleRuleBase*); |
| 106 | 109 |
| 107 void clearRules(); | 110 void clearRules(); |
| 108 | 111 |
| 109 // Rules other than @import. | 112 // Rules other than @import. |
| 110 const HeapVector<Member<StyleRuleBase>>& childRules() const { | 113 const HeapVector<Member<StyleRuleBase>>& childRules() const { |
| 111 return m_childRules; | 114 return m_childRules; |
| 112 } | 115 } |
| 113 const HeapVector<Member<StyleRuleImport>>& importRules() const { | 116 const HeapVector<Member<StyleRuleImport>>& importRules() const { |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 HeapVector<Member<StyleRuleBase>> m_childRules; | 197 HeapVector<Member<StyleRuleBase>> m_childRules; |
| 195 using PrefixNamespaceURIMap = HashMap<AtomicString, AtomicString>; | 198 using PrefixNamespaceURIMap = HashMap<AtomicString, AtomicString>; |
| 196 PrefixNamespaceURIMap m_namespaces; | 199 PrefixNamespaceURIMap m_namespaces; |
| 197 AtomicString m_defaultNamespace; | 200 AtomicString m_defaultNamespace; |
| 198 WeakMember<CSSStyleSheetResource> m_referencedFromResource; | 201 WeakMember<CSSStyleSheetResource> m_referencedFromResource; |
| 199 | 202 |
| 200 bool m_hasSyntacticallyValidCSSHeader : 1; | 203 bool m_hasSyntacticallyValidCSSHeader : 1; |
| 201 bool m_didLoadErrorOccur : 1; | 204 bool m_didLoadErrorOccur : 1; |
| 202 bool m_isMutable : 1; | 205 bool m_isMutable : 1; |
| 203 bool m_hasFontFaceRule : 1; | 206 bool m_hasFontFaceRule : 1; |
| 207 bool m_hasViewportRule : 1; |
| 204 bool m_hasMediaQueries : 1; | 208 bool m_hasMediaQueries : 1; |
| 205 bool m_hasSingleOwnerDocument : 1; | 209 bool m_hasSingleOwnerDocument : 1; |
| 206 bool m_isUsedFromTextCache : 1; | 210 bool m_isUsedFromTextCache : 1; |
| 207 | 211 |
| 208 CSSParserContext m_parserContext; | 212 CSSParserContext m_parserContext; |
| 209 | 213 |
| 210 HeapHashSet<WeakMember<CSSStyleSheet>> m_loadingClients; | 214 HeapHashSet<WeakMember<CSSStyleSheet>> m_loadingClients; |
| 211 HeapHashSet<WeakMember<CSSStyleSheet>> m_completedClients; | 215 HeapHashSet<WeakMember<CSSStyleSheet>> m_completedClients; |
| 212 | 216 |
| 213 Member<RuleSet> m_ruleSet; | 217 Member<RuleSet> m_ruleSet; |
| 214 String m_sourceMapURL; | 218 String m_sourceMapURL; |
| 215 }; | 219 }; |
| 216 | 220 |
| 217 } // namespace blink | 221 } // namespace blink |
| 218 | 222 |
| 219 #endif | 223 #endif |
| OLD | NEW |