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

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

Issue 791583002: Oilpan: remove redundant WILL_BE_EAGERLY_TRACED() declarations. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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
« no previous file with comments | « Source/core/css/RuleSet.h ('k') | Source/core/css/StyleRule.h » ('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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 , m_arraySize(std::min(immutableArraySize, unsigned(MaxArraySize))) 141 , m_arraySize(std::min(immutableArraySize, unsigned(MaxArraySize)))
142 { } 142 { }
143 143
144 unsigned m_cssParserMode : 3; 144 unsigned m_cssParserMode : 3;
145 mutable unsigned m_isMutable : 1; 145 mutable unsigned m_isMutable : 1;
146 unsigned m_arraySize : 28; 146 unsigned m_arraySize : 28;
147 147
148 friend class PropertySetCSSStyleDeclaration; 148 friend class PropertySetCSSStyleDeclaration;
149 }; 149 };
150 150
151 WILL_BE_EAGERLY_TRACED(StylePropertySet);
152
153 class ImmutableStylePropertySet : public StylePropertySet { 151 class ImmutableStylePropertySet : public StylePropertySet {
154 public: 152 public:
155 ~ImmutableStylePropertySet(); 153 ~ImmutableStylePropertySet();
156 static PassRefPtrWillBeRawPtr<ImmutableStylePropertySet> create(const CSSPro perty* properties, unsigned count, CSSParserMode); 154 static PassRefPtrWillBeRawPtr<ImmutableStylePropertySet> create(const CSSPro perty* properties, unsigned count, CSSParserMode);
157 155
158 unsigned propertyCount() const { return m_arraySize; } 156 unsigned propertyCount() const { return m_arraySize; }
159 157
160 const RawPtrWillBeMember<CSSValue>* valueArray() const; 158 const RawPtrWillBeMember<CSSValue>* valueArray() const;
161 const StylePropertyMetadata* metadataArray() const; 159 const StylePropertyMetadata* metadataArray() const;
162 int findPropertyIndex(CSSPropertyID) const; 160 int findPropertyIndex(CSSPropertyID) const;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const 295 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const
298 { 296 {
299 if (m_isMutable) 297 if (m_isMutable)
300 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID); 298 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID);
301 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID); 299 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID);
302 } 300 }
303 301
304 } // namespace blink 302 } // namespace blink
305 303
306 #endif // StylePropertySet_h 304 #endif // StylePropertySet_h
OLDNEW
« no previous file with comments | « Source/core/css/RuleSet.h ('k') | Source/core/css/StyleRule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698