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

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

Issue 1192983003: CSS Custom Properties (Variables) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: with missing files Created 5 years, 6 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 | Annotate | Revision Log
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 PassRefPtrWillBeRawPtr<MutableStylePropertySet> copyPropertiesInSet(const Ve ctor<CSSPropertyID>&) const; 107 PassRefPtrWillBeRawPtr<MutableStylePropertySet> copyPropertiesInSet(const Ve ctor<CSSPropertyID>&) const;
108 108
109 String asText() const; 109 String asText() const;
110 110
111 bool isMutable() const { return m_isMutable; } 111 bool isMutable() const { return m_isMutable; }
112 112
113 bool hasFailedOrCanceledSubresources() const; 113 bool hasFailedOrCanceledSubresources() const;
114 114
115 static unsigned averageSizeInBytes(); 115 static unsigned averageSizeInBytes();
116 116
117 unsigned variableCount() const;
118
117 #ifndef NDEBUG 119 #ifndef NDEBUG
118 void showStyle(); 120 void showStyle();
119 #endif 121 #endif
120 122
121 bool propertyMatches(CSSPropertyID, const CSSValue*) const; 123 bool propertyMatches(CSSPropertyID, const CSSValue*) const;
122 124
123 DECLARE_TRACE(); 125 DECLARE_TRACE();
124 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { } 126 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { }
125 127
126 protected: 128 protected:
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const 292 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const
291 { 293 {
292 if (m_isMutable) 294 if (m_isMutable)
293 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID); 295 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID);
294 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID); 296 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID);
295 } 297 }
296 298
297 } // namespace blink 299 } // namespace blink
298 300
299 #endif // StylePropertySet_h 301 #endif // StylePropertySet_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698