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

Side by Side Diff: Source/WebCore/rendering/style/RenderStyle.h

Issue 8390051: Merge 98492 - REGRESSION (r94887): Scrolling the HTML spec is more jerky now than it was (regress... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/912/
Patch Set: Created 9 years, 1 month 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/WebCore/dom/Element.cpp ('k') | Source/WebCore/rendering/style/RenderStyle.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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 bool m_unique : 1; 131 bool m_unique : 1;
132 132
133 // Bits for dynamic child matching. 133 // Bits for dynamic child matching.
134 bool m_affectedByEmpty : 1; 134 bool m_affectedByEmpty : 1;
135 bool m_emptyState : 1; 135 bool m_emptyState : 1;
136 136
137 // We optimize for :first-child and :last-child. The other positional child selectors like nth-child or 137 // We optimize for :first-child and :last-child. The other positional child selectors like nth-child or
138 // *-child-of-type, we will just give up and re-evaluate whenever children c hange at all. 138 // *-child-of-type, we will just give up and re-evaluate whenever children c hange at all.
139 bool m_childrenAffectedByFirstChildRules : 1; 139 bool m_childrenAffectedByFirstChildRules : 1;
140 bool m_childrenAffectedByLastChildRules : 1; 140 bool m_childrenAffectedByLastChildRules : 1;
141 bool m_childrenAffectedByDirectAdjacentRules : 1;
141 bool m_childrenAffectedByForwardPositionalRules : 1; 142 bool m_childrenAffectedByForwardPositionalRules : 1;
142 bool m_childrenAffectedByBackwardPositionalRules : 1; 143 bool m_childrenAffectedByBackwardPositionalRules : 1;
143 bool m_firstChildState : 1; 144 bool m_firstChildState : 1;
144 bool m_lastChildState : 1; 145 bool m_lastChildState : 1;
145 bool m_affectedByDirectAdjacentRules : 1;
146 unsigned m_childIndex : 21; // Plenty of bits to cache an index. 146 unsigned m_childIndex : 21; // Plenty of bits to cache an index.
147 147
148 // non-inherited attributes 148 // non-inherited attributes
149 DataRef<StyleBoxData> m_box; 149 DataRef<StyleBoxData> m_box;
150 DataRef<StyleVisualData> visual; 150 DataRef<StyleVisualData> visual;
151 DataRef<StyleBackgroundData> m_background; 151 DataRef<StyleBackgroundData> m_background;
152 DataRef<StyleSurroundData> surround; 152 DataRef<StyleSurroundData> surround;
153 DataRef<StyleRareNonInheritedData> rareNonInheritedData; 153 DataRef<StyleRareNonInheritedData> rareNonInheritedData;
154 154
155 // inherited attributes 155 // inherited attributes
(...skipping 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after
1306 return originalDisplay() == INLINE || originalDisplay() == INLINE_BLOCK 1306 return originalDisplay() == INLINE || originalDisplay() == INLINE_BLOCK
1307 || originalDisplay() == INLINE_BOX || originalDisplay() == INLINE_TA BLE; 1307 || originalDisplay() == INLINE_BOX || originalDisplay() == INLINE_TA BLE;
1308 } 1308 }
1309 1309
1310 void setWritingMode(WritingMode v) { inherited_flags.m_writingMode = v; } 1310 void setWritingMode(WritingMode v) { inherited_flags.m_writingMode = v; }
1311 1311
1312 // To tell if this style matched attribute selectors. This makes it impossib le to share. 1312 // To tell if this style matched attribute selectors. This makes it impossib le to share.
1313 bool affectedByUncommonAttributeSelectors() const { return m_affectedByUncom monAttributeSelectors; } 1313 bool affectedByUncommonAttributeSelectors() const { return m_affectedByUncom monAttributeSelectors; }
1314 void setAffectedByUncommonAttributeSelectors() { m_affectedByUncommonAttribu teSelectors = true; } 1314 void setAffectedByUncommonAttributeSelectors() { m_affectedByUncommonAttribu teSelectors = true; }
1315 1315
1316 bool affectedByDirectAdjacentRules() const { return m_affectedByDirectAdjace ntRules; }
1317 void setAffectedByDirectAdjacentRules() { m_affectedByDirectAdjacentRules = true; }
1318
1319 bool unique() const { return m_unique; } 1316 bool unique() const { return m_unique; }
1320 void setUnique() { m_unique = true; } 1317 void setUnique() { m_unique = true; }
1321 1318
1322 // Methods for indicating the style is affected by dynamic updates (e.g., ch ildren changing, our position changing in our sibling list, etc.) 1319 // Methods for indicating the style is affected by dynamic updates (e.g., ch ildren changing, our position changing in our sibling list, etc.)
1323 bool affectedByEmpty() const { return m_affectedByEmpty; } 1320 bool affectedByEmpty() const { return m_affectedByEmpty; }
1324 bool emptyState() const { return m_emptyState; } 1321 bool emptyState() const { return m_emptyState; }
1325 void setEmptyState(bool b) { m_affectedByEmpty = true; m_unique = true; m_em ptyState = b; } 1322 void setEmptyState(bool b) { m_affectedByEmpty = true; m_unique = true; m_em ptyState = b; }
1326 bool childrenAffectedByPositionalRules() const { return childrenAffectedByFo rwardPositionalRules() || childrenAffectedByBackwardPositionalRules(); } 1323 bool childrenAffectedByPositionalRules() const { return childrenAffectedByFo rwardPositionalRules() || childrenAffectedByBackwardPositionalRules(); }
1327 bool childrenAffectedByFirstChildRules() const { return m_childrenAffectedBy FirstChildRules; } 1324 bool childrenAffectedByFirstChildRules() const { return m_childrenAffectedBy FirstChildRules; }
1328 void setChildrenAffectedByFirstChildRules() { m_childrenAffectedByFirstChild Rules = true; } 1325 void setChildrenAffectedByFirstChildRules() { m_childrenAffectedByFirstChild Rules = true; }
1329 bool childrenAffectedByLastChildRules() const { return m_childrenAffectedByL astChildRules; } 1326 bool childrenAffectedByLastChildRules() const { return m_childrenAffectedByL astChildRules; }
1330 void setChildrenAffectedByLastChildRules() { m_childrenAffectedByLastChildRu les = true; } 1327 void setChildrenAffectedByLastChildRules() { m_childrenAffectedByLastChildRu les = true; }
1328 bool childrenAffectedByDirectAdjacentRules() const { return m_childrenAffect edByDirectAdjacentRules; }
1329 void setChildrenAffectedByDirectAdjacentRules() { m_childrenAffectedByDirect AdjacentRules = true; }
1331 bool childrenAffectedByForwardPositionalRules() const { return m_childrenAff ectedByForwardPositionalRules; } 1330 bool childrenAffectedByForwardPositionalRules() const { return m_childrenAff ectedByForwardPositionalRules; }
1332 void setChildrenAffectedByForwardPositionalRules() { m_childrenAffectedByFor wardPositionalRules = true; } 1331 void setChildrenAffectedByForwardPositionalRules() { m_childrenAffectedByFor wardPositionalRules = true; }
1333 bool childrenAffectedByBackwardPositionalRules() const { return m_childrenAf fectedByBackwardPositionalRules; } 1332 bool childrenAffectedByBackwardPositionalRules() const { return m_childrenAf fectedByBackwardPositionalRules; }
1334 void setChildrenAffectedByBackwardPositionalRules() { m_childrenAffectedByBa ckwardPositionalRules = true; } 1333 void setChildrenAffectedByBackwardPositionalRules() { m_childrenAffectedByBa ckwardPositionalRules = true; }
1335 bool firstChildState() const { return m_firstChildState; } 1334 bool firstChildState() const { return m_firstChildState; }
1336 void setFirstChildState() { m_unique = true; m_firstChildState = true; } 1335 void setFirstChildState() { m_unique = true; m_firstChildState = true; }
1337 bool lastChildState() const { return m_lastChildState; } 1336 bool lastChildState() const { return m_lastChildState; }
1338 void setLastChildState() { m_unique = true; m_lastChildState = true; } 1337 void setLastChildState() { m_unique = true; m_lastChildState = true; }
1339 unsigned childIndex() const { return m_childIndex; } 1338 unsigned childIndex() const { return m_childIndex; }
1340 void setChildIndex(unsigned index) { m_unique = true; m_childIndex = index; } 1339 void setChildIndex(unsigned index) { m_unique = true; m_childIndex = index; }
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
1583 { 1582 {
1584 if (compareEqual(rareInheritedData->textSizeAdjust, b)) 1583 if (compareEqual(rareInheritedData->textSizeAdjust, b))
1585 return false; 1584 return false;
1586 rareInheritedData.access()->textSizeAdjust = b; 1585 rareInheritedData.access()->textSizeAdjust = b;
1587 return true; 1586 return true;
1588 } 1587 }
1589 1588
1590 } // namespace WebCore 1589 } // namespace WebCore
1591 1590
1592 #endif // RenderStyle_h 1591 #endif // RenderStyle_h
OLDNEW
« no previous file with comments | « Source/WebCore/dom/Element.cpp ('k') | Source/WebCore/rendering/style/RenderStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698