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

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

Issue 17176018: [CSS Regions] Add new regionOversetChange event (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Integrated styling fixes Created 7 years, 6 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/ElementRareData.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) 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 David Smith <catfish.man@gmail.com> 3 * Copyright (C) 2008 David Smith <catfish.man@gmail.com>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 bool needsFocusAppearanceUpdateSoonAfterAttach() const { return m_needsFocus AppearanceUpdateSoonAfterAttach; } 57 bool needsFocusAppearanceUpdateSoonAfterAttach() const { return m_needsFocus AppearanceUpdateSoonAfterAttach; }
58 void setNeedsFocusAppearanceUpdateSoonAfterAttach(bool needs) { m_needsFocus AppearanceUpdateSoonAfterAttach = needs; } 58 void setNeedsFocusAppearanceUpdateSoonAfterAttach(bool needs) { m_needsFocus AppearanceUpdateSoonAfterAttach = needs; }
59 59
60 bool styleAffectedByEmpty() const { return m_styleAffectedByEmpty; } 60 bool styleAffectedByEmpty() const { return m_styleAffectedByEmpty; }
61 void setStyleAffectedByEmpty(bool value) { m_styleAffectedByEmpty = value; } 61 void setStyleAffectedByEmpty(bool value) { m_styleAffectedByEmpty = value; }
62 62
63 bool isInCanvasSubtree() const { return m_isInCanvasSubtree; } 63 bool isInCanvasSubtree() const { return m_isInCanvasSubtree; }
64 void setIsInCanvasSubtree(bool value) { m_isInCanvasSubtree = value; } 64 void setIsInCanvasSubtree(bool value) { m_isInCanvasSubtree = value; }
65 65
66 RegionOversetState regionOversetState() const { return m_regionOversetState; }
67 void setRegionOversetState(RegionOversetState state) { m_regionOversetState = state; }
68
66 bool containsFullScreenElement() { return m_containsFullScreenElement; } 69 bool containsFullScreenElement() { return m_containsFullScreenElement; }
67 void setContainsFullScreenElement(bool value) { m_containsFullScreenElement = value; } 70 void setContainsFullScreenElement(bool value) { m_containsFullScreenElement = value; }
68 71
69 bool isInTopLayer() const { return m_isInTopLayer; } 72 bool isInTopLayer() const { return m_isInTopLayer; }
70 void setIsInTopLayer(bool value) { m_isInTopLayer = value; } 73 void setIsInTopLayer(bool value) { m_isInTopLayer = value; }
71 74
72 bool childrenAffectedByHover() const { return m_childrenAffectedByHover; } 75 bool childrenAffectedByHover() const { return m_childrenAffectedByHover; }
73 void setChildrenAffectedByHover(bool value) { m_childrenAffectedByHover = va lue; } 76 void setChildrenAffectedByHover(bool value) { m_childrenAffectedByHover = va lue; }
74 bool childrenAffectedByActive() const { return m_childrenAffectedByActive; } 77 bool childrenAffectedByActive() const { return m_childrenAffectedByActive; }
75 void setChildrenAffectedByActive(bool value) { m_childrenAffectedByActive = value; } 78 void setChildrenAffectedByActive(bool value) { m_childrenAffectedByActive = value; }
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 unsigned m_childrenAffectedByDrag : 1; 159 unsigned m_childrenAffectedByDrag : 1;
157 // Bits for dynamic child matching. 160 // Bits for dynamic child matching.
158 // We optimize for :first-child and :last-child. The other positional child selectors like nth-child or 161 // We optimize for :first-child and :last-child. The other positional child selectors like nth-child or
159 // *-child-of-type, we will just give up and re-evaluate whenever children c hange at all. 162 // *-child-of-type, we will just give up and re-evaluate whenever children c hange at all.
160 unsigned m_childrenAffectedByFirstChildRules : 1; 163 unsigned m_childrenAffectedByFirstChildRules : 1;
161 unsigned m_childrenAffectedByLastChildRules : 1; 164 unsigned m_childrenAffectedByLastChildRules : 1;
162 unsigned m_childrenAffectedByDirectAdjacentRules : 1; 165 unsigned m_childrenAffectedByDirectAdjacentRules : 1;
163 unsigned m_childrenAffectedByForwardPositionalRules : 1; 166 unsigned m_childrenAffectedByForwardPositionalRules : 1;
164 unsigned m_childrenAffectedByBackwardPositionalRules : 1; 167 unsigned m_childrenAffectedByBackwardPositionalRules : 1;
165 168
169 RegionOversetState m_regionOversetState;
170
166 LayoutSize m_minimumSizeForResizing; 171 LayoutSize m_minimumSizeForResizing;
167 IntSize m_savedLayerScrollOffset; 172 IntSize m_savedLayerScrollOffset;
168 RefPtr<RenderStyle> m_computedStyle; 173 RefPtr<RenderStyle> m_computedStyle;
169 174
170 OwnPtr<DatasetDOMStringMap> m_dataset; 175 OwnPtr<DatasetDOMStringMap> m_dataset;
171 OwnPtr<ClassList> m_classList; 176 OwnPtr<ClassList> m_classList;
172 OwnPtr<ElementShadow> m_shadow; 177 OwnPtr<ElementShadow> m_shadow;
173 OwnPtr<NamedNodeMap> m_attributeMap; 178 OwnPtr<NamedNodeMap> m_attributeMap;
174 OwnPtr<InputMethodContext> m_inputMethodContext; 179 OwnPtr<InputMethodContext> m_inputMethodContext;
175 180
(...skipping 23 matching lines...) Expand all
199 , m_isInTopLayer(false) 204 , m_isInTopLayer(false)
200 , m_hasPendingResources(false) 205 , m_hasPendingResources(false)
201 , m_childrenAffectedByHover(false) 206 , m_childrenAffectedByHover(false)
202 , m_childrenAffectedByActive(false) 207 , m_childrenAffectedByActive(false)
203 , m_childrenAffectedByDrag(false) 208 , m_childrenAffectedByDrag(false)
204 , m_childrenAffectedByFirstChildRules(false) 209 , m_childrenAffectedByFirstChildRules(false)
205 , m_childrenAffectedByLastChildRules(false) 210 , m_childrenAffectedByLastChildRules(false)
206 , m_childrenAffectedByDirectAdjacentRules(false) 211 , m_childrenAffectedByDirectAdjacentRules(false)
207 , m_childrenAffectedByForwardPositionalRules(false) 212 , m_childrenAffectedByForwardPositionalRules(false)
208 , m_childrenAffectedByBackwardPositionalRules(false) 213 , m_childrenAffectedByBackwardPositionalRules(false)
214 , m_regionOversetState(RegionUndefined)
209 , m_minimumSizeForResizing(defaultMinimumSizeForResizing()) 215 , m_minimumSizeForResizing(defaultMinimumSizeForResizing())
210 { 216 {
211 } 217 }
212 218
213 inline ElementRareData::~ElementRareData() 219 inline ElementRareData::~ElementRareData()
214 { 220 {
215 ASSERT(!m_shadow); 221 ASSERT(!m_shadow);
216 ASSERT(!m_generatedBefore); 222 ASSERT(!m_generatedBefore);
217 ASSERT(!m_generatedAfter); 223 ASSERT(!m_generatedAfter);
218 } 224 }
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 setChildrenAffectedByFirstChildRules(false); 280 setChildrenAffectedByFirstChildRules(false);
275 setChildrenAffectedByLastChildRules(false); 281 setChildrenAffectedByLastChildRules(false);
276 setChildrenAffectedByDirectAdjacentRules(false); 282 setChildrenAffectedByDirectAdjacentRules(false);
277 setChildrenAffectedByForwardPositionalRules(false); 283 setChildrenAffectedByForwardPositionalRules(false);
278 setChildrenAffectedByBackwardPositionalRules(false); 284 setChildrenAffectedByBackwardPositionalRules(false);
279 } 285 }
280 286
281 } // namespace 287 } // namespace
282 288
283 #endif // ElementRareData_h 289 #endif // ElementRareData_h
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/ElementRareData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698