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

Side by Side Diff: Source/core/css/StylePropertySet.h

Issue 14324009: Add support for disabling CSS Properties at runtime (Closed) Base URL: http://src.chromium.org/blink/trunk/Source/
Patch Set: Runtime guard more uses of CSSPropertyID, per Elliot's request. Created 7 years, 8 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 | « Source/core/css/DOMWindowCSS.cpp ('k') | Source/core/css/StylePropertySet.cpp » ('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, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2008, 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 CSSParserMode cssParserMode() const { return static_cast<CSSParserMode>(m_cs sParserMode); } 136 CSSParserMode cssParserMode() const { return static_cast<CSSParserMode>(m_cs sParserMode); }
137 137
138 void addSubresourceStyleURLs(ListHashSet<KURL>&, StyleSheetContents* context StyleSheet) const; 138 void addSubresourceStyleURLs(ListHashSet<KURL>&, StyleSheetContents* context StyleSheet) const;
139 139
140 PassRefPtr<StylePropertySet> copy() const; 140 PassRefPtr<StylePropertySet> copy() const;
141 PassRefPtr<StylePropertySet> immutableCopyIfNeeded() const; 141 PassRefPtr<StylePropertySet> immutableCopyIfNeeded() const;
142 142
143 void removeEquivalentProperties(const StylePropertySet*); 143 void removeEquivalentProperties(const StylePropertySet*);
144 void removeEquivalentProperties(const CSSStyleDeclaration*); 144 void removeEquivalentProperties(const CSSStyleDeclaration*);
145 145
146 PassRefPtr<StylePropertySet> copyPropertiesInSet(const CSSPropertyID* set, u nsigned length) const; 146 PassRefPtr<StylePropertySet> copyPropertiesInSet(const Vector<CSSPropertyID> &) const;
147 147
148 String asText() const; 148 String asText() const;
149 149
150 PropertySetCSSStyleDeclaration* cssStyleDeclaration(); 150 PropertySetCSSStyleDeclaration* cssStyleDeclaration();
151 CSSStyleDeclaration* ensureCSSStyleDeclaration(); 151 CSSStyleDeclaration* ensureCSSStyleDeclaration();
152 CSSStyleDeclaration* ensureInlineCSSStyleDeclaration(const StyledElement* pa rentElement); 152 CSSStyleDeclaration* ensureInlineCSSStyleDeclaration(const StyledElement* pa rentElement);
153 153
154 bool isMutable() const { return m_isMutable; } 154 bool isMutable() const { return m_isMutable; }
155 bool hasCSSOMWrapper() const { return m_ownsCSSOMWrapper; } 155 bool hasCSSOMWrapper() const { return m_ownsCSSOMWrapper; }
156 156
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 275
276 if (m_isMutable) 276 if (m_isMutable)
277 delete static_cast<MutableStylePropertySet*>(this); 277 delete static_cast<MutableStylePropertySet*>(this);
278 else 278 else
279 delete static_cast<ImmutableStylePropertySet*>(this); 279 delete static_cast<ImmutableStylePropertySet*>(this);
280 } 280 }
281 281
282 } // namespace WebCore 282 } // namespace WebCore
283 283
284 #endif // StylePropertySet_h 284 #endif // StylePropertySet_h
OLDNEW
« no previous file with comments | « Source/core/css/DOMWindowCSS.cpp ('k') | Source/core/css/StylePropertySet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698