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

Side by Side Diff: Source/core/dom/ElementData.h

Issue 1035573005: Change a bool type to an enum type in constructor argument of SpaceSplitString. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Move enum struct to SpaceSplitString and rename. Created 5 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
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/SandboxFlags.cpp » ('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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // Override GarbageCollectedFinalized's finalizeGarbageCollectedObject to 53 // Override GarbageCollectedFinalized's finalizeGarbageCollectedObject to
54 // dispatch to the correct subclass destructor. 54 // dispatch to the correct subclass destructor.
55 void finalizeGarbageCollectedObject(); 55 void finalizeGarbageCollectedObject();
56 #else 56 #else
57 // Override RefCounted's deref() to ensure operator delete is called on 57 // Override RefCounted's deref() to ensure operator delete is called on
58 // the appropriate subclass type. 58 // the appropriate subclass type.
59 void deref(); 59 void deref();
60 #endif 60 #endif
61 61
62 void clearClass() const { m_classNames.clear(); } 62 void clearClass() const { m_classNames.clear(); }
63 void setClass(const AtomicString& className, bool shouldFoldCase) const { m_ classNames.set(className, shouldFoldCase); } 63 void setClass(const AtomicString& className, bool shouldFoldCase) const { m_ classNames.set(className, shouldFoldCase ? SpaceSplitString::ShouldFoldCase : Sp aceSplitString::ShouldNotFoldCase); }
64 const SpaceSplitString& classNames() const { return m_classNames; } 64 const SpaceSplitString& classNames() const { return m_classNames; }
65 65
66 const AtomicString& idForStyleResolution() const { return m_idForStyleResolu tion; } 66 const AtomicString& idForStyleResolution() const { return m_idForStyleResolu tion; }
67 void setIdForStyleResolution(const AtomicString& newId) const { m_idForStyle Resolution = newId; } 67 void setIdForStyleResolution(const AtomicString& newId) const { m_idForStyle Resolution = newId; }
68 68
69 const StylePropertySet* inlineStyle() const { return m_inlineStyle.get(); } 69 const StylePropertySet* inlineStyle() const { return m_inlineStyle.get(); }
70 70
71 const StylePropertySet* presentationAttributeStyle() const; 71 const StylePropertySet* presentationAttributeStyle() const;
72 72
73 AttributeCollection attributes() const; 73 AttributeCollection attributes() const;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 } 219 }
220 220
221 inline MutableAttributeCollection UniqueElementData::attributes() 221 inline MutableAttributeCollection UniqueElementData::attributes()
222 { 222 {
223 return MutableAttributeCollection(m_attributeVector); 223 return MutableAttributeCollection(m_attributeVector);
224 } 224 }
225 225
226 } // namespace blink 226 } // namespace blink
227 227
228 #endif // ElementData_h 228 #endif // ElementData_h
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/SandboxFlags.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698