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

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

Issue 547333002: Get rid of method setProperty(): never used in the whole code (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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 | 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 198
199 void addParsedProperties(const WillBeHeapVector<CSSProperty, 256>&); 199 void addParsedProperties(const WillBeHeapVector<CSSProperty, 256>&);
200 void addParsedProperty(const CSSProperty&); 200 void addParsedProperty(const CSSProperty&);
201 201
202 // These expand shorthand properties into multiple properties. 202 // These expand shorthand properties into multiple properties.
203 bool setProperty(CSSPropertyID, const String& value, bool important = false, StyleSheetContents* contextStyleSheet = 0); 203 bool setProperty(CSSPropertyID, const String& value, bool important = false, StyleSheetContents* contextStyleSheet = 0);
204 void setProperty(CSSPropertyID, PassRefPtrWillBeRawPtr<CSSValue>, bool impor tant = false); 204 void setProperty(CSSPropertyID, PassRefPtrWillBeRawPtr<CSSValue>, bool impor tant = false);
205 205
206 // These do not. FIXME: This is too messy, we can do better. 206 // These do not. FIXME: This is too messy, we can do better.
207 bool setProperty(CSSPropertyID, CSSValueID identifier, bool important = fals e); 207 bool setProperty(CSSPropertyID, CSSValueID identifier, bool important = fals e);
208 bool setProperty(CSSPropertyID, CSSPropertyID identifier, bool important = f alse);
209 void appendPrefixingVariantProperty(const CSSProperty&); 208 void appendPrefixingVariantProperty(const CSSProperty&);
210 void setPrefixingVariantProperty(const CSSProperty&); 209 void setPrefixingVariantProperty(const CSSProperty&);
211 void setProperty(const CSSProperty&, CSSProperty* slot = 0); 210 void setProperty(const CSSProperty&, CSSProperty* slot = 0);
212 211
213 bool removeProperty(CSSPropertyID, String* returnText = 0); 212 bool removeProperty(CSSPropertyID, String* returnText = 0);
214 void removePrefixedOrUnprefixedProperty(CSSPropertyID); 213 void removePrefixedOrUnprefixedProperty(CSSPropertyID);
215 void removeBlockProperties(); 214 void removeBlockProperties();
216 bool removePropertiesInSet(const CSSPropertyID* set, unsigned length); 215 bool removePropertiesInSet(const CSSPropertyID* set, unsigned length);
217 void removeEquivalentProperties(const StylePropertySet*); 216 void removeEquivalentProperties(const StylePropertySet*);
218 void removeEquivalentProperties(const CSSStyleDeclaration*); 217 void removeEquivalentProperties(const CSSStyleDeclaration*);
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const 299 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const
301 { 300 {
302 if (m_isMutable) 301 if (m_isMutable)
303 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID); 302 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID);
304 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID); 303 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID);
305 } 304 }
306 305
307 } // namespace blink 306 } // namespace blink
308 307
309 #endif // StylePropertySet_h 308 #endif // StylePropertySet_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/StylePropertySet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698