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

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

Issue 199273005: Oilpan: Change the name of the finalization method that can be (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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 class StyleSheetContents; 42 class StyleSheetContents;
43 43
44 class StylePropertySet : public RefCountedWillBeRefCountedGarbageCollected<Style PropertySet> { 44 class StylePropertySet : public RefCountedWillBeRefCountedGarbageCollected<Style PropertySet> {
45 friend class PropertyReference; 45 friend class PropertyReference;
46 public: 46 public:
47 47
48 #if ENABLE(OILPAN) 48 #if ENABLE(OILPAN)
49 // When oilpan is enabled override the finalize method to dispatch to the su bclasses' 49 // When oilpan is enabled override the finalize method to dispatch to the su bclasses'
50 // destructor. This can be removed once the MutableStylePropertySet's OwnPtr is moved 50 // destructor. This can be removed once the MutableStylePropertySet's OwnPtr is moved
51 // to the heap. 51 // to the heap.
52 void finalize(); 52 void finalizeGarbageCollectedObject();
53 #else 53 #else
54 // Override RefCounted's deref() to ensure operator delete is called on 54 // Override RefCounted's deref() to ensure operator delete is called on
55 // the appropriate subclass type. 55 // the appropriate subclass type.
56 void deref(); 56 void deref();
57 #endif 57 #endif
58 58
59 class PropertyReference { 59 class PropertyReference {
60 public: 60 public:
61 PropertyReference(const StylePropertySet& propertySet, unsigned index) 61 PropertyReference(const StylePropertySet& propertySet, unsigned index)
62 : m_propertySet(propertySet) 62 : m_propertySet(propertySet)
(...skipping 231 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

Powered by Google App Engine
This is Rietveld 408576698