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

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

Issue 1996883002: CSS: SelectorFilter is non-copyable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: additional classes Created 4 years, 7 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 | « no previous file | third_party/WebKit/Source/core/css/CSSValueList.h » ('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, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All rights reserved.
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 29 matching lines...) Expand all
40 class SecurityOrigin; 40 class SecurityOrigin;
41 class StyleSheetContents; 41 class StyleSheetContents;
42 42
43 enum StyleSheetUpdateType { 43 enum StyleSheetUpdateType {
44 PartialRuleUpdate, 44 PartialRuleUpdate,
45 EntireStyleSheetUpdate 45 EntireStyleSheetUpdate
46 }; 46 };
47 47
48 class CORE_EXPORT CSSStyleSheet final : public StyleSheet { 48 class CORE_EXPORT CSSStyleSheet final : public StyleSheet {
49 DEFINE_WRAPPERTYPEINFO(); 49 DEFINE_WRAPPERTYPEINFO();
50 WTF_MAKE_NONCOPYABLE(CSSStyleSheet);
50 public: 51 public:
51 static CSSStyleSheet* create(StyleSheetContents*, CSSImportRule* ownerRule = 0); 52 static CSSStyleSheet* create(StyleSheetContents*, CSSImportRule* ownerRule = 0);
52 static CSSStyleSheet* create(StyleSheetContents*, Node* ownerNode); 53 static CSSStyleSheet* create(StyleSheetContents*, Node* ownerNode);
53 static CSSStyleSheet* createInline(Node*, const KURL&, const TextPosition& s tartPosition = TextPosition::minimumPosition(), const String& encoding = String( )); 54 static CSSStyleSheet* createInline(Node*, const KURL&, const TextPosition& s tartPosition = TextPosition::minimumPosition(), const String& encoding = String( ));
54 static CSSStyleSheet* createInline(StyleSheetContents*, Node* ownerNode, con st TextPosition& startPosition = TextPosition::minimumPosition()); 55 static CSSStyleSheet* createInline(StyleSheetContents*, Node* ownerNode, con st TextPosition& startPosition = TextPosition::minimumPosition());
55 56
56 ~CSSStyleSheet() override; 57 ~CSSStyleSheet() override;
57 58
58 CSSStyleSheet* parentStyleSheet() const override; 59 CSSStyleSheet* parentStyleSheet() const override;
59 Node* ownerNode() const override { return m_ownerNode; } 60 Node* ownerNode() const override { return m_ownerNode; }
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 { 170 {
170 if (m_styleSheet) 171 if (m_styleSheet)
171 m_styleSheet->didMutateRules(); 172 m_styleSheet->didMutateRules();
172 } 173 }
173 174
174 DEFINE_TYPE_CASTS(CSSStyleSheet, StyleSheet, sheet, sheet->isCSSStyleSheet(), sh eet.isCSSStyleSheet()); 175 DEFINE_TYPE_CASTS(CSSStyleSheet, StyleSheet, sheet, sheet->isCSSStyleSheet(), sh eet.isCSSStyleSheet());
175 176
176 } // namespace blink 177 } // namespace blink
177 178
178 #endif 179 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSValueList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698