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

Side by Side Diff: third_party/WebKit/Source/core/css/StyleSheetContents.h

Issue 2671173002: Change CSSParserContext to have a Document handle (vs UseCounter). (Closed)
Patch Set: fix todo style Created 3 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
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, 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 static StyleSheetContents* create(const String& originalURL, 54 static StyleSheetContents* create(const String& originalURL,
55 const CSSParserContext* context) { 55 const CSSParserContext* context) {
56 return new StyleSheetContents(0, originalURL, context); 56 return new StyleSheetContents(0, originalURL, context);
57 } 57 }
58 static StyleSheetContents* create(StyleRuleImport* ownerRule, 58 static StyleSheetContents* create(StyleRuleImport* ownerRule,
59 const String& originalURL, 59 const String& originalURL,
60 const CSSParserContext* context) { 60 const CSSParserContext* context) {
61 return new StyleSheetContents(ownerRule, originalURL, context); 61 return new StyleSheetContents(ownerRule, originalURL, context);
62 } 62 }
63 63
64 static const Document* singleOwnerDocument(const StyleSheetContents*);
65
64 ~StyleSheetContents(); 66 ~StyleSheetContents();
65 67
66 const CSSParserContext* parserContext() const { return m_parserContext; } 68 const CSSParserContext* parserContext() const { return m_parserContext; }
67 69
68 const AtomicString& defaultNamespace() { return m_defaultNamespace; } 70 const AtomicString& defaultNamespace() { return m_defaultNamespace; }
69 const AtomicString& namespaceURIFromPrefix(const AtomicString& prefix); 71 const AtomicString& namespaceURIFromPrefix(const AtomicString& prefix);
70 72
71 void parseAuthorStyleSheet(const CSSStyleSheetResource*, 73 void parseAuthorStyleSheet(const CSSStyleSheetResource*,
72 const SecurityOrigin*); 74 const SecurityOrigin*);
73 void parseString(const String&); 75 void parseString(const String&);
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 HeapHashSet<WeakMember<CSSStyleSheet>> m_loadingClients; 222 HeapHashSet<WeakMember<CSSStyleSheet>> m_loadingClients;
221 HeapHashSet<WeakMember<CSSStyleSheet>> m_completedClients; 223 HeapHashSet<WeakMember<CSSStyleSheet>> m_completedClients;
222 224
223 Member<RuleSet> m_ruleSet; 225 Member<RuleSet> m_ruleSet;
224 String m_sourceMapURL; 226 String m_sourceMapURL;
225 }; 227 };
226 228
227 } // namespace blink 229 } // namespace blink
228 230
229 #endif 231 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/FontFace.cpp ('k') | third_party/WebKit/Source/core/css/StyleSheetContents.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698