Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 bool isDOMChildOfRegion() const { return m_isDOMChildOfRegion; } | |
|
esprehn
2013/06/28 20:29:36
This should be "isInsideRegion"
| |
| 67 void setIsDOMChildOfRegion(bool value) { m_isDOMChildOfRegion = value; } | |
| 68 | |
| 66 RegionOversetState regionOversetState() const { return m_regionOversetState; } | 69 RegionOversetState regionOversetState() const { return m_regionOversetState; } |
| 67 void setRegionOversetState(RegionOversetState state) { m_regionOversetState = state; } | 70 void setRegionOversetState(RegionOversetState state) { m_regionOversetState = state; } |
| 68 | 71 |
| 69 bool containsFullScreenElement() { return m_containsFullScreenElement; } | 72 bool containsFullScreenElement() { return m_containsFullScreenElement; } |
| 70 void setContainsFullScreenElement(bool value) { m_containsFullScreenElement = value; } | 73 void setContainsFullScreenElement(bool value) { m_containsFullScreenElement = value; } |
| 71 | 74 |
| 72 bool isInTopLayer() const { return m_isInTopLayer; } | 75 bool isInTopLayer() const { return m_isInTopLayer; } |
| 73 void setIsInTopLayer(bool value) { m_isInTopLayer = value; } | 76 void setIsInTopLayer(bool value) { m_isInTopLayer = value; } |
| 74 | 77 |
| 75 bool childrenAffectedByHover() const { return m_childrenAffectedByHover; } | 78 bool childrenAffectedByHover() const { return m_childrenAffectedByHover; } |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 159 unsigned m_childrenAffectedByDrag : 1; | 162 unsigned m_childrenAffectedByDrag : 1; |
| 160 // Bits for dynamic child matching. | 163 // Bits for dynamic child matching. |
| 161 // We optimize for :first-child and :last-child. The other positional child selectors like nth-child or | 164 // We optimize for :first-child and :last-child. The other positional child selectors like nth-child or |
| 162 // *-child-of-type, we will just give up and re-evaluate whenever children c hange at all. | 165 // *-child-of-type, we will just give up and re-evaluate whenever children c hange at all. |
| 163 unsigned m_childrenAffectedByFirstChildRules : 1; | 166 unsigned m_childrenAffectedByFirstChildRules : 1; |
| 164 unsigned m_childrenAffectedByLastChildRules : 1; | 167 unsigned m_childrenAffectedByLastChildRules : 1; |
| 165 unsigned m_childrenAffectedByDirectAdjacentRules : 1; | 168 unsigned m_childrenAffectedByDirectAdjacentRules : 1; |
| 166 unsigned m_childrenAffectedByForwardPositionalRules : 1; | 169 unsigned m_childrenAffectedByForwardPositionalRules : 1; |
| 167 unsigned m_childrenAffectedByBackwardPositionalRules : 1; | 170 unsigned m_childrenAffectedByBackwardPositionalRules : 1; |
| 168 | 171 |
| 172 unsigned m_isDOMChildOfRegion : 1; | |
| 169 RegionOversetState m_regionOversetState; | 173 RegionOversetState m_regionOversetState; |
| 170 | 174 |
| 171 LayoutSize m_minimumSizeForResizing; | 175 LayoutSize m_minimumSizeForResizing; |
| 172 IntSize m_savedLayerScrollOffset; | 176 IntSize m_savedLayerScrollOffset; |
| 173 RefPtr<RenderStyle> m_computedStyle; | 177 RefPtr<RenderStyle> m_computedStyle; |
| 174 | 178 |
| 175 OwnPtr<DatasetDOMStringMap> m_dataset; | 179 OwnPtr<DatasetDOMStringMap> m_dataset; |
| 176 OwnPtr<ClassList> m_classList; | 180 OwnPtr<ClassList> m_classList; |
| 177 OwnPtr<ElementShadow> m_shadow; | 181 OwnPtr<ElementShadow> m_shadow; |
| 178 OwnPtr<NamedNodeMap> m_attributeMap; | 182 OwnPtr<NamedNodeMap> m_attributeMap; |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 204 , m_isInTopLayer(false) | 208 , m_isInTopLayer(false) |
| 205 , m_hasPendingResources(false) | 209 , m_hasPendingResources(false) |
| 206 , m_childrenAffectedByHover(false) | 210 , m_childrenAffectedByHover(false) |
| 207 , m_childrenAffectedByActive(false) | 211 , m_childrenAffectedByActive(false) |
| 208 , m_childrenAffectedByDrag(false) | 212 , m_childrenAffectedByDrag(false) |
| 209 , m_childrenAffectedByFirstChildRules(false) | 213 , m_childrenAffectedByFirstChildRules(false) |
| 210 , m_childrenAffectedByLastChildRules(false) | 214 , m_childrenAffectedByLastChildRules(false) |
| 211 , m_childrenAffectedByDirectAdjacentRules(false) | 215 , m_childrenAffectedByDirectAdjacentRules(false) |
| 212 , m_childrenAffectedByForwardPositionalRules(false) | 216 , m_childrenAffectedByForwardPositionalRules(false) |
| 213 , m_childrenAffectedByBackwardPositionalRules(false) | 217 , m_childrenAffectedByBackwardPositionalRules(false) |
| 218 , m_isDOMChildOfRegion(false) | |
| 214 , m_regionOversetState(RegionUndefined) | 219 , m_regionOversetState(RegionUndefined) |
| 215 , m_minimumSizeForResizing(defaultMinimumSizeForResizing()) | 220 , m_minimumSizeForResizing(defaultMinimumSizeForResizing()) |
| 216 { | 221 { |
| 217 } | 222 } |
| 218 | 223 |
| 219 inline ElementRareData::~ElementRareData() | 224 inline ElementRareData::~ElementRareData() |
| 220 { | 225 { |
| 221 ASSERT(!m_shadow); | 226 ASSERT(!m_shadow); |
| 222 ASSERT(!m_generatedBefore); | 227 ASSERT(!m_generatedBefore); |
| 223 ASSERT(!m_generatedAfter); | 228 ASSERT(!m_generatedAfter); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 280 setChildrenAffectedByFirstChildRules(false); | 285 setChildrenAffectedByFirstChildRules(false); |
| 281 setChildrenAffectedByLastChildRules(false); | 286 setChildrenAffectedByLastChildRules(false); |
| 282 setChildrenAffectedByDirectAdjacentRules(false); | 287 setChildrenAffectedByDirectAdjacentRules(false); |
| 283 setChildrenAffectedByForwardPositionalRules(false); | 288 setChildrenAffectedByForwardPositionalRules(false); |
| 284 setChildrenAffectedByBackwardPositionalRules(false); | 289 setChildrenAffectedByBackwardPositionalRules(false); |
| 285 } | 290 } |
| 286 | 291 |
| 287 } // namespace | 292 } // namespace |
| 288 | 293 |
| 289 #endif // ElementRareData_h | 294 #endif // ElementRareData_h |
| OLD | NEW |