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

Side by Side Diff: sky/engine/core/dom/ElementData.h

Issue 655083003: Remove GarbageCollectedFinalized (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/core/css/FontFaceSet.h ('k') | sky/engine/core/dom/Node.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 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * Copyright (C) 2014 Apple Inc. All rights reserved. 3 * Copyright (C) 2014 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 class ShareableElementData; 43 class ShareableElementData;
44 class StylePropertySet; 44 class StylePropertySet;
45 class UniqueElementData; 45 class UniqueElementData;
46 46
47 // ElementData represents very common, but not necessarily unique to an element, 47 // ElementData represents very common, but not necessarily unique to an element,
48 // data such as attributes, inline style, and parsed class names and ids. 48 // data such as attributes, inline style, and parsed class names and ids.
49 class ElementData : public RefCounted<ElementData> { 49 class ElementData : public RefCounted<ElementData> {
50 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; 50 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
51 public: 51 public:
52 #if ENABLE(OILPAN)
53 // Override GarbageCollectedFinalized's finalizeGarbageCollectedObject to
54 // dispatch to the correct subclass destructor.
55 void finalizeGarbageCollectedObject();
56 #else
57 // Override RefCounted's deref() to ensure operator delete is called on 52 // Override RefCounted's deref() to ensure operator delete is called on
58 // the appropriate subclass type. 53 // the appropriate subclass type.
59 void deref(); 54 void deref();
60 #endif
61 55
62 void clearClass() const { m_classNames.clear(); } 56 void clearClass() const { m_classNames.clear(); }
63 void setClass(const AtomicString& className, bool shouldFoldCase) const { m_ classNames.set(className, shouldFoldCase); } 57 void setClass(const AtomicString& className, bool shouldFoldCase) const { m_ classNames.set(className, shouldFoldCase); }
64 const SpaceSplitString& classNames() const { return m_classNames; } 58 const SpaceSplitString& classNames() const { return m_classNames; }
65 59
66 const AtomicString& idForStyleResolution() const { return m_idForStyleResolu tion; } 60 const AtomicString& idForStyleResolution() const { return m_idForStyleResolu tion; }
67 void setIdForStyleResolution(const AtomicString& newId) const { m_idForStyle Resolution = newId; } 61 void setIdForStyleResolution(const AtomicString& newId) const { m_idForStyle Resolution = newId; }
68 62
69 const StylePropertySet* inlineStyle() const { return m_inlineStyle.get(); } 63 const StylePropertySet* inlineStyle() const { return m_inlineStyle.get(); }
70 64
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 } 196 }
203 197
204 inline MutableAttributeCollection UniqueElementData::attributes() 198 inline MutableAttributeCollection UniqueElementData::attributes()
205 { 199 {
206 return MutableAttributeCollection(m_attributeVector); 200 return MutableAttributeCollection(m_attributeVector);
207 } 201 }
208 202
209 } // namespace blink 203 } // namespace blink
210 204
211 #endif // ElementData_h 205 #endif // ElementData_h
OLDNEW
« no previous file with comments | « sky/engine/core/css/FontFaceSet.h ('k') | sky/engine/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698