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

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

Issue 205033007: Revert of Oilpan: Move CSSStyleDeclaration and subclasses to the heap using transistion types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 231
232 void traceAfterDispatch(Visitor*); 232 void traceAfterDispatch(Visitor*);
233 233
234 private: 234 private:
235 explicit MutableStylePropertySet(CSSParserMode); 235 explicit MutableStylePropertySet(CSSParserMode);
236 explicit MutableStylePropertySet(const StylePropertySet&); 236 explicit MutableStylePropertySet(const StylePropertySet&);
237 MutableStylePropertySet(const CSSProperty* properties, unsigned count); 237 MutableStylePropertySet(const CSSProperty* properties, unsigned count);
238 238
239 bool removeShorthandProperty(CSSPropertyID); 239 bool removeShorthandProperty(CSSPropertyID);
240 CSSProperty* findCSSPropertyWithID(CSSPropertyID); 240 CSSProperty* findCSSPropertyWithID(CSSPropertyID);
241 OwnPtrWillBeMember<PropertySetCSSStyleDeclaration> m_cssomWrapper; 241 OwnPtr<PropertySetCSSStyleDeclaration> m_cssomWrapper;
242 242
243 friend class StylePropertySet; 243 friend class StylePropertySet;
244 244
245 WillBeHeapVector<CSSProperty, 4> m_propertyVector; 245 WillBeHeapVector<CSSProperty, 4> m_propertyVector;
246 }; 246 };
247 247
248 DEFINE_TYPE_CASTS(MutableStylePropertySet, StylePropertySet, set, set->isMutable (), set.isMutable()); 248 DEFINE_TYPE_CASTS(MutableStylePropertySet, StylePropertySet, set, set->isMutable (), set.isMutable());
249 249
250 inline MutableStylePropertySet* toMutableStylePropertySet(const RefPtr<StyleProp ertySet>& set) 250 inline MutableStylePropertySet* toMutableStylePropertySet(const RefPtr<StyleProp ertySet>& set)
251 { 251 {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const 294 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const
295 { 295 {
296 if (m_isMutable) 296 if (m_isMutable)
297 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID); 297 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID);
298 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID); 298 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID);
299 } 299 }
300 300
301 } // namespace WebCore 301 } // namespace WebCore
302 302
303 #endif // StylePropertySet_h 303 #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