| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 void checkLoaded(); | 80 void checkLoaded(); |
| 81 void startLoadingDynamicSheet(); | 81 void startLoadingDynamicSheet(); |
| 82 | 82 |
| 83 StyleSheetContents* rootStyleSheet() const; | 83 StyleSheetContents* rootStyleSheet() const; |
| 84 bool hasSingleOwnerNode() const; | 84 bool hasSingleOwnerNode() const; |
| 85 Node* singleOwnerNode() const; | 85 Node* singleOwnerNode() const; |
| 86 Document* singleOwnerDocument() const; | 86 Document* singleOwnerDocument() const; |
| 87 bool hasSingleOwnerDocument() const { return m_hasSingleOwnerDocument; } | 87 bool hasSingleOwnerDocument() const { return m_hasSingleOwnerDocument; } |
| 88 | 88 |
| 89 // Gets the first owner document in the list of registered clients, or nullptr |
| 90 // if there are none. |
| 91 Document* anyOwnerDocument() const; |
| 92 |
| 89 const String& charset() const { return m_parserContext.charset(); } | 93 const String& charset() const { return m_parserContext.charset(); } |
| 90 | 94 |
| 91 bool loadCompleted() const; | 95 bool loadCompleted() const; |
| 92 bool hasFailedOrCanceledSubresources() const; | 96 bool hasFailedOrCanceledSubresources() const; |
| 93 | 97 |
| 94 void setHasSyntacticallyValidCSSHeader(bool isValidCss); | 98 void setHasSyntacticallyValidCSSHeader(bool isValidCss); |
| 95 bool hasSyntacticallyValidCSSHeader() const { | 99 bool hasSyntacticallyValidCSSHeader() const { |
| 96 return m_hasSyntacticallyValidCSSHeader; | 100 return m_hasSyntacticallyValidCSSHeader; |
| 97 } | 101 } |
| 98 | 102 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 private: | 184 private: |
| 181 StyleSheetContents(StyleRuleImport* ownerRule, | 185 StyleSheetContents(StyleRuleImport* ownerRule, |
| 182 const String& originalURL, | 186 const String& originalURL, |
| 183 const CSSParserContext&); | 187 const CSSParserContext&); |
| 184 StyleSheetContents(const StyleSheetContents&); | 188 StyleSheetContents(const StyleSheetContents&); |
| 185 StyleSheetContents() = delete; | 189 StyleSheetContents() = delete; |
| 186 StyleSheetContents& operator=(const StyleSheetContents&) = delete; | 190 StyleSheetContents& operator=(const StyleSheetContents&) = delete; |
| 187 void notifyRemoveFontFaceRule(const StyleRuleFontFace*); | 191 void notifyRemoveFontFaceRule(const StyleRuleFontFace*); |
| 188 | 192 |
| 189 Document* clientSingleOwnerDocument() const; | 193 Document* clientSingleOwnerDocument() const; |
| 194 Document* clientAnyOwnerDocument() const; |
| 190 | 195 |
| 191 Member<StyleRuleImport> m_ownerRule; | 196 Member<StyleRuleImport> m_ownerRule; |
| 192 | 197 |
| 193 String m_originalURL; | 198 String m_originalURL; |
| 194 | 199 |
| 195 HeapVector<Member<StyleRuleImport>> m_importRules; | 200 HeapVector<Member<StyleRuleImport>> m_importRules; |
| 196 HeapVector<Member<StyleRuleNamespace>> m_namespaceRules; | 201 HeapVector<Member<StyleRuleNamespace>> m_namespaceRules; |
| 197 HeapVector<Member<StyleRuleBase>> m_childRules; | 202 HeapVector<Member<StyleRuleBase>> m_childRules; |
| 198 using PrefixNamespaceURIMap = HashMap<AtomicString, AtomicString>; | 203 using PrefixNamespaceURIMap = HashMap<AtomicString, AtomicString>; |
| 199 PrefixNamespaceURIMap m_namespaces; | 204 PrefixNamespaceURIMap m_namespaces; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 214 HeapHashSet<WeakMember<CSSStyleSheet>> m_loadingClients; | 219 HeapHashSet<WeakMember<CSSStyleSheet>> m_loadingClients; |
| 215 HeapHashSet<WeakMember<CSSStyleSheet>> m_completedClients; | 220 HeapHashSet<WeakMember<CSSStyleSheet>> m_completedClients; |
| 216 | 221 |
| 217 Member<RuleSet> m_ruleSet; | 222 Member<RuleSet> m_ruleSet; |
| 218 String m_sourceMapURL; | 223 String m_sourceMapURL; |
| 219 }; | 224 }; |
| 220 | 225 |
| 221 } // namespace blink | 226 } // namespace blink |
| 222 | 227 |
| 223 #endif | 228 #endif |
| OLD | NEW |