| OLD | NEW |
| 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, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 unsigned _floating : 2; // EFloat | 234 unsigned _floating : 2; // EFloat |
| 235 unsigned _table_layout : 1; // ETableLayout | 235 unsigned _table_layout : 1; // ETableLayout |
| 236 | 236 |
| 237 unsigned _unicodeBidi : 3; // EUnicodeBidi | 237 unsigned _unicodeBidi : 3; // EUnicodeBidi |
| 238 // 31 bits | 238 // 31 bits |
| 239 unsigned _page_break_before : 2; // EPageBreak | 239 unsigned _page_break_before : 2; // EPageBreak |
| 240 unsigned _page_break_after : 2; // EPageBreak | 240 unsigned _page_break_after : 2; // EPageBreak |
| 241 unsigned _page_break_inside : 2; // EPageBreak | 241 unsigned _page_break_inside : 2; // EPageBreak |
| 242 | 242 |
| 243 unsigned _styleType : 6; // PseudoId | 243 unsigned _styleType : 6; // PseudoId |
| 244 unsigned _pseudoBits : 7; | 244 unsigned _pseudoBits : 8; |
| 245 unsigned explicitInheritance : 1; // Explicitly inherits a non-inherited
property | 245 unsigned explicitInheritance : 1; // Explicitly inherits a non-inherited
property |
| 246 unsigned unique : 1; // Style can not be shared. | 246 unsigned unique : 1; // Style can not be shared. |
| 247 unsigned emptyState : 1; | 247 unsigned emptyState : 1; |
| 248 unsigned firstChildState : 1; | 248 unsigned firstChildState : 1; |
| 249 unsigned lastChildState : 1; | 249 unsigned lastChildState : 1; |
| 250 | 250 |
| 251 bool affectedByHover() const { return _affectedByHover; } | 251 bool affectedByHover() const { return _affectedByHover; } |
| 252 void setAffectedByHover(bool value) { _affectedByHover = value; } | 252 void setAffectedByHover(bool value) { _affectedByHover = value; } |
| 253 bool affectedByActive() const { return _affectedByActive; } | 253 bool affectedByActive() const { return _affectedByActive; } |
| 254 void setAffectedByActive(bool value) { _affectedByActive = value; } | 254 void setAffectedByActive(bool value) { _affectedByActive = value; } |
| 255 bool affectedByDrag() const { return _affectedByDrag; } | 255 bool affectedByDrag() const { return _affectedByDrag; } |
| 256 void setAffectedByDrag(bool value) { _affectedByDrag = value; } | 256 void setAffectedByDrag(bool value) { _affectedByDrag = value; } |
| 257 bool isLink() const { return _isLink; } | 257 bool isLink() const { return _isLink; } |
| 258 void setIsLink(bool value) { _isLink = value; } | 258 void setIsLink(bool value) { _isLink = value; } |
| 259 private: | 259 private: |
| 260 unsigned _affectedByHover : 1; | 260 unsigned _affectedByHover : 1; |
| 261 unsigned _affectedByActive : 1; | 261 unsigned _affectedByActive : 1; |
| 262 unsigned _affectedByDrag : 1; | 262 unsigned _affectedByDrag : 1; |
| 263 unsigned _isLink : 1; | 263 unsigned _isLink : 1; |
| 264 // If you add more style bits here, you will also need to update RenderS
tyle::copyNonInheritedFrom() | 264 // If you add more style bits here, you will also need to update RenderS
tyle::copyNonInheritedFrom() |
| 265 // 59 bits | 265 // 60 bits |
| 266 } noninherited_flags; | 266 } noninherited_flags; |
| 267 | 267 |
| 268 // !END SYNC! | 268 // !END SYNC! |
| 269 | 269 |
| 270 protected: | 270 protected: |
| 271 void setBitDefaults() | 271 void setBitDefaults() |
| 272 { | 272 { |
| 273 inherited_flags._empty_cells = initialEmptyCells(); | 273 inherited_flags._empty_cells = initialEmptyCells(); |
| 274 inherited_flags._caption_side = initialCaptionSide(); | 274 inherited_flags._caption_side = initialCaptionSide(); |
| 275 inherited_flags._list_style_type = initialListStyleType(); | 275 inherited_flags._list_style_type = initialListStyleType(); |
| (...skipping 1478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1754 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation)) | 1754 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation)) |
| 1755 return false; | 1755 return false; |
| 1756 | 1756 |
| 1757 rareInheritedData.access()->m_textOrientation = textOrientation; | 1757 rareInheritedData.access()->m_textOrientation = textOrientation; |
| 1758 return true; | 1758 return true; |
| 1759 } | 1759 } |
| 1760 | 1760 |
| 1761 } // namespace WebCore | 1761 } // namespace WebCore |
| 1762 | 1762 |
| 1763 #endif // RenderStyle_h | 1763 #endif // RenderStyle_h |
| OLD | NEW |