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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSStyleSheet.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 29 matching lines...) Expand all
40 class ExceptionState; 40 class ExceptionState;
41 class MediaQuerySet; 41 class MediaQuerySet;
42 class SecurityOrigin; 42 class SecurityOrigin;
43 class StyleSheetContents; 43 class StyleSheetContents;
44 44
45 class CORE_EXPORT CSSStyleSheet final : public StyleSheet { 45 class CORE_EXPORT CSSStyleSheet final : public StyleSheet {
46 DEFINE_WRAPPERTYPEINFO(); 46 DEFINE_WRAPPERTYPEINFO();
47 WTF_MAKE_NONCOPYABLE(CSSStyleSheet); 47 WTF_MAKE_NONCOPYABLE(CSSStyleSheet);
48 48
49 public: 49 public:
50 static const Document* singleOwnerDocument(const CSSStyleSheet*);
51
50 static CSSStyleSheet* create(StyleSheetContents*, 52 static CSSStyleSheet* create(StyleSheetContents*,
51 CSSImportRule* ownerRule = nullptr); 53 CSSImportRule* ownerRule = nullptr);
52 static CSSStyleSheet* create(StyleSheetContents*, Node& ownerNode); 54 static CSSStyleSheet* create(StyleSheetContents*, Node& ownerNode);
53 static CSSStyleSheet* createInline( 55 static CSSStyleSheet* createInline(
54 Node&, 56 Node&,
55 const KURL&, 57 const KURL&,
56 const TextPosition& startPosition = TextPosition::minimumPosition(), 58 const TextPosition& startPosition = TextPosition::minimumPosition(),
57 const String& encoding = String()); 59 const String& encoding = String());
58 static CSSStyleSheet* createInline( 60 static CSSStyleSheet* createInline(
59 StyleSheetContents*, 61 StyleSheetContents*,
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 198
197 DEFINE_TYPE_CASTS(CSSStyleSheet, 199 DEFINE_TYPE_CASTS(CSSStyleSheet,
198 StyleSheet, 200 StyleSheet,
199 sheet, 201 sheet,
200 sheet->isCSSStyleSheet(), 202 sheet->isCSSStyleSheet(),
201 sheet.isCSSStyleSheet()); 203 sheet.isCSSStyleSheet());
202 204
203 } // namespace blink 205 } // namespace blink
204 206
205 #endif 207 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSKeyframesRule.cpp ('k') | third_party/WebKit/Source/core/css/CSSStyleSheet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698