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

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

Issue 455223002: Make anchors mouse-focusable (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Move m_wasFocusedByMouse to elementData().m_shouldHideFocusRingOnMouseFocus Created 6 years, 4 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/ElementData.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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/ElementData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698