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

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

Issue 1096963002: Make UseCounters work on aliased properties (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 ~MutableStylePropertySet() { } 192 ~MutableStylePropertySet() { }
193 static PassRefPtrWillBeRawPtr<MutableStylePropertySet> create(CSSParserMode = HTMLQuirksMode); 193 static PassRefPtrWillBeRawPtr<MutableStylePropertySet> create(CSSParserMode = HTMLQuirksMode);
194 static PassRefPtrWillBeRawPtr<MutableStylePropertySet> create(const CSSPrope rty* properties, unsigned count); 194 static PassRefPtrWillBeRawPtr<MutableStylePropertySet> create(const CSSPrope rty* properties, unsigned count);
195 195
196 unsigned propertyCount() const { return m_propertyVector.size(); } 196 unsigned propertyCount() const { return m_propertyVector.size(); }
197 197
198 void addParsedProperties(const WillBeHeapVector<CSSProperty, 256>&); 198 void addParsedProperties(const WillBeHeapVector<CSSProperty, 256>&);
199 void addParsedProperty(const CSSProperty&); 199 void addParsedProperty(const CSSProperty&);
200 200
201 // These expand shorthand properties into multiple properties. 201 // These expand shorthand properties into multiple properties.
202 bool setProperty(CSSPropertyID, const String& value, bool important = false, StyleSheetContents* contextStyleSheet = 0); 202 bool setProperty(CSSPropertyID unresolvedProperty, const String& value, bool important = false, StyleSheetContents* contextStyleSheet = 0);
203 void setProperty(CSSPropertyID, PassRefPtrWillBeRawPtr<CSSValue>, bool impor tant = false); 203 void setProperty(CSSPropertyID, PassRefPtrWillBeRawPtr<CSSValue>, bool impor tant = false);
204 204
205 // These do not. FIXME: This is too messy, we can do better. 205 // These do not. FIXME: This is too messy, we can do better.
206 bool setProperty(CSSPropertyID, CSSValueID identifier, bool important = fals e); 206 bool setProperty(CSSPropertyID, CSSValueID identifier, bool important = fals e);
207 void appendPrefixingVariantProperty(const CSSProperty&); 207 void appendPrefixingVariantProperty(const CSSProperty&);
208 void setPrefixingVariantProperty(const CSSProperty&); 208 void setPrefixingVariantProperty(const CSSProperty&);
209 void setProperty(const CSSProperty&, CSSProperty* slot = 0); 209 void setProperty(const CSSProperty&, CSSProperty* slot = 0);
210 210
211 bool removeProperty(CSSPropertyID, String* returnText = 0); 211 bool removeProperty(CSSPropertyID, String* returnText = 0);
212 void removePrefixedOrUnprefixedProperty(CSSPropertyID); 212 void removePrefixedOrUnprefixedProperty(CSSPropertyID);
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const 298 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const
299 { 299 {
300 if (m_isMutable) 300 if (m_isMutable)
301 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID); 301 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID);
302 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID); 302 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID);
303 } 303 }
304 304
305 } // namespace blink 305 } // namespace blink
306 306
307 #endif // StylePropertySet_h 307 #endif // StylePropertySet_h
OLDNEW
« no previous file with comments | « Source/core/css/PropertySetCSSStyleDeclaration.cpp ('k') | Source/core/css/StylePropertySet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698