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

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

Issue 1225553002: CSSValue Immediates: Make CSSPrimitiveValue a container (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cssvalue_patch_1
Patch Set: Rebase Created 5 years, 4 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/StylePropertySerializer.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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 190
191 unsigned propertyCount() const { return m_propertyVector.size(); } 191 unsigned propertyCount() const { return m_propertyVector.size(); }
192 192
193 // Returns whether this style set was changed. 193 // Returns whether this style set was changed.
194 bool addParsedProperties(const WillBeHeapVector<CSSProperty, 256>&); 194 bool addParsedProperties(const WillBeHeapVector<CSSProperty, 256>&);
195 bool addRespectingCascade(const CSSProperty&); 195 bool addRespectingCascade(const CSSProperty&);
196 196
197 // These expand shorthand properties into multiple properties. 197 // These expand shorthand properties into multiple properties.
198 bool setProperty(CSSPropertyID unresolvedProperty, const String& value, bool important = false, StyleSheetContents* contextStyleSheet = 0); 198 bool setProperty(CSSPropertyID unresolvedProperty, const String& value, bool important = false, StyleSheetContents* contextStyleSheet = 0);
199 void setProperty(CSSPropertyID, CSSValue, bool important = false); 199 void setProperty(CSSPropertyID, CSSValue, bool important = false);
200 void setProperty(CSSPropertyID, CSSPrimitiveValue, bool important = false);
200 201
201 // These do not. FIXME: This is too messy, we can do better. 202 // These do not. FIXME: This is too messy, we can do better.
202 bool setProperty(CSSPropertyID, CSSValueID identifier, bool important = fals e); 203 bool setProperty(CSSPropertyID, CSSValueID identifier, bool important = fals e);
203 bool setProperty(const CSSProperty&, CSSProperty* slot = 0); 204 bool setProperty(const CSSProperty&, CSSProperty* slot = 0);
204 205
205 bool removeProperty(CSSPropertyID, String* returnText = 0); 206 bool removeProperty(CSSPropertyID, String* returnText = 0);
206 bool removePropertiesInSet(const CSSPropertyID* set, unsigned length); 207 bool removePropertiesInSet(const CSSPropertyID* set, unsigned length);
207 void removeEquivalentProperties(const StylePropertySet*); 208 void removeEquivalentProperties(const StylePropertySet*);
208 void removeEquivalentProperties(const CSSStyleDeclaration*); 209 void removeEquivalentProperties(const CSSStyleDeclaration*);
209 210
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const 291 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const
291 { 292 {
292 if (m_isMutable) 293 if (m_isMutable)
293 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID); 294 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID);
294 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID); 295 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID);
295 } 296 }
296 297
297 } // namespace blink 298 } // namespace blink
298 299
299 #endif // StylePropertySet_h 300 #endif // StylePropertySet_h
OLDNEW
« no previous file with comments | « Source/core/css/StylePropertySerializer.cpp ('k') | Source/core/css/StylePropertySet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698