| OLD | NEW |
| 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 Loading... |
| 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 ? ShouldFoldCase : 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 Loading... |
| 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 |
| OLD | NEW |