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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
82 void traceAfterDispatch(Visitor*); | 82 void traceAfterDispatch(Visitor*); |
83 void trace(Visitor*); | 83 void trace(Visitor*); |
84 | 84 |
85 protected: | 85 protected: |
86 ElementData(); | 86 ElementData(); |
87 explicit ElementData(unsigned arraySize); | 87 explicit ElementData(unsigned arraySize); |
88 ElementData(const ElementData&, bool isUnique); | 88 ElementData(const ElementData&, bool isUnique); |
89 | 89 |
90 // Keep the type in a bitfield instead of using virtual destructors to avoid adding a vtable. | 90 // Keep the type in a bitfield instead of using virtual destructors to avoid adding a vtable. |
91 unsigned m_isUnique : 1; | 91 unsigned m_isUnique : 1; |
92 unsigned m_arraySize : 28; | 92 unsigned m_arraySize : 19; |
pdr.
2014/08/25 22:57:37
You cannot just take 9 bits off m_arraySize :)
It
robwu
2014/08/25 23:14:58
Oops, should have removed only one bit. 28 -> 27 i
| |
93 mutable unsigned m_presentationAttributeStyleIsDirty : 1; | 93 mutable unsigned m_presentationAttributeStyleIsDirty : 1; |
94 mutable unsigned m_styleAttributeIsDirty : 1; | 94 mutable unsigned m_styleAttributeIsDirty : 1; |
95 mutable unsigned m_animatedSVGAttributesAreDirty : 1; | 95 mutable unsigned m_animatedSVGAttributesAreDirty : 1; |
96 // Whether an element whose mouse focus ring is hidden by default should be rendered with a focus ring on mouse focus. | |
97 bool m_shouldHideFocusRingOnMouseFocus : 1; | |
96 | 98 |
97 mutable RefPtrWillBeMember<StylePropertySet> m_inlineStyle; | 99 mutable RefPtrWillBeMember<StylePropertySet> m_inlineStyle; |
98 mutable SpaceSplitString m_classNames; | 100 mutable SpaceSplitString m_classNames; |
99 mutable AtomicString m_idForStyleResolution; | 101 mutable AtomicString m_idForStyleResolution; |
100 | 102 |
101 private: | 103 private: |
102 friend class Element; | 104 friend class Element; |
103 friend class ShareableElementData; | 105 friend class ShareableElementData; |
104 friend class UniqueElementData; | 106 friend class UniqueElementData; |
105 friend class SVGElement; | 107 friend class SVGElement; |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
219 } | 221 } |
220 | 222 |
221 inline MutableAttributeCollection UniqueElementData::attributes() | 223 inline MutableAttributeCollection UniqueElementData::attributes() |
222 { | 224 { |
223 return MutableAttributeCollection(m_attributeVector); | 225 return MutableAttributeCollection(m_attributeVector); |
224 } | 226 } |
225 | 227 |
226 } // namespace blink | 228 } // namespace blink |
227 | 229 |
228 #endif // ElementData_h | 230 #endif // ElementData_h |
OLD | NEW |