| 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 | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
| 6 * rights reserved. | 6 * rights reserved. |
| 7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 unsigned m_cursorStyle : 6; // ECursor | 241 unsigned m_cursorStyle : 6; // ECursor |
| 242 unsigned m_direction : 1; // TextDirection | 242 unsigned m_direction : 1; // TextDirection |
| 243 unsigned m_whiteSpace : 3; // EWhiteSpace | 243 unsigned m_whiteSpace : 3; // EWhiteSpace |
| 244 unsigned m_borderCollapse : 1; // EBorderCollapse | 244 unsigned m_borderCollapse : 1; // EBorderCollapse |
| 245 unsigned m_boxDirection : 1; // EBoxDirection (CSS3 box_direction property, | 245 unsigned m_boxDirection : 1; // EBoxDirection (CSS3 box_direction property, |
| 246 // flexible box layout module) | 246 // flexible box layout module) |
| 247 // 32 bits | 247 // 32 bits |
| 248 | 248 |
| 249 // non CSS2 inherited | 249 // non CSS2 inherited |
| 250 unsigned m_rtlOrdering : 1; // Order | 250 unsigned m_rtlOrdering : 1; // Order |
| 251 unsigned m_printColorAdjust : PrintColorAdjustBits; | 251 unsigned m_printColorAdjust : 1; // PrintColorAdjust |
| 252 unsigned m_pointerEvents : 4; // EPointerEvents | 252 unsigned m_pointerEvents : 4; // EPointerEvents |
| 253 unsigned m_insideLink : 2; // EInsideLink | 253 unsigned m_insideLink : 2; // EInsideLink |
| 254 | 254 |
| 255 // CSS Text Layout Module Level 3: Vertical writing support | 255 // CSS Text Layout Module Level 3: Vertical writing support |
| 256 unsigned m_writingMode : 2; // WritingMode | 256 unsigned m_writingMode : 2; // WritingMode |
| 257 // 42 bits | 257 // 42 bits |
| 258 } m_inheritedData; | 258 } m_inheritedData; |
| 259 | 259 |
| 260 // don't inherit | 260 // don't inherit |
| 261 struct NonInheritedData { | 261 struct NonInheritedData { |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 static_cast<unsigned>(initialListStylePosition()); | 370 static_cast<unsigned>(initialListStylePosition()); |
| 371 m_inheritedData.m_textAlign = static_cast<unsigned>(initialTextAlign()); | 371 m_inheritedData.m_textAlign = static_cast<unsigned>(initialTextAlign()); |
| 372 m_inheritedData.m_textTransform = initialTextTransform(); | 372 m_inheritedData.m_textTransform = initialTextTransform(); |
| 373 m_inheritedData.m_hasSimpleUnderline = false; | 373 m_inheritedData.m_hasSimpleUnderline = false; |
| 374 m_inheritedData.m_cursorStyle = static_cast<unsigned>(initialCursor()); | 374 m_inheritedData.m_cursorStyle = static_cast<unsigned>(initialCursor()); |
| 375 m_inheritedData.m_direction = initialDirection(); | 375 m_inheritedData.m_direction = initialDirection(); |
| 376 m_inheritedData.m_whiteSpace = initialWhiteSpace(); | 376 m_inheritedData.m_whiteSpace = initialWhiteSpace(); |
| 377 m_inheritedData.m_borderCollapse = initialBorderCollapse(); | 377 m_inheritedData.m_borderCollapse = initialBorderCollapse(); |
| 378 m_inheritedData.m_rtlOrdering = initialRTLOrdering(); | 378 m_inheritedData.m_rtlOrdering = initialRTLOrdering(); |
| 379 m_inheritedData.m_boxDirection = initialBoxDirection(); | 379 m_inheritedData.m_boxDirection = initialBoxDirection(); |
| 380 m_inheritedData.m_printColorAdjust = initialPrintColorAdjust(); | 380 m_inheritedData.m_printColorAdjust = |
| 381 static_cast<unsigned>(initialPrintColorAdjust()); |
| 381 m_inheritedData.m_pointerEvents = initialPointerEvents(); | 382 m_inheritedData.m_pointerEvents = initialPointerEvents(); |
| 382 m_inheritedData.m_insideLink = NotInsideLink; | 383 m_inheritedData.m_insideLink = NotInsideLink; |
| 383 m_inheritedData.m_writingMode = initialWritingMode(); | 384 m_inheritedData.m_writingMode = initialWritingMode(); |
| 384 | 385 |
| 385 m_nonInheritedData.m_effectiveDisplay = | 386 m_nonInheritedData.m_effectiveDisplay = |
| 386 m_nonInheritedData.m_originalDisplay = | 387 m_nonInheritedData.m_originalDisplay = |
| 387 static_cast<unsigned>(initialDisplay()); | 388 static_cast<unsigned>(initialDisplay()); |
| 388 m_nonInheritedData.m_overflowAnchor = initialOverflowAnchor(); | 389 m_nonInheritedData.m_overflowAnchor = initialOverflowAnchor(); |
| 389 m_nonInheritedData.m_overflowX = initialOverflowX(); | 390 m_nonInheritedData.m_overflowX = initialOverflowX(); |
| 390 m_nonInheritedData.m_overflowY = initialOverflowY(); | 391 m_nonInheritedData.m_overflowY = initialOverflowY(); |
| (...skipping 2022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2413 static LineClampValue initialLineClamp() { return LineClampValue(); } | 2414 static LineClampValue initialLineClamp() { return LineClampValue(); } |
| 2414 const LineClampValue& lineClamp() const { | 2415 const LineClampValue& lineClamp() const { |
| 2415 return m_rareNonInheritedData->lineClamp; | 2416 return m_rareNonInheritedData->lineClamp; |
| 2416 } | 2417 } |
| 2417 void setLineClamp(LineClampValue c) { | 2418 void setLineClamp(LineClampValue c) { |
| 2418 SET_VAR(m_rareNonInheritedData, lineClamp, c); | 2419 SET_VAR(m_rareNonInheritedData, lineClamp, c); |
| 2419 } | 2420 } |
| 2420 | 2421 |
| 2421 // -webkit-print-color-adjust | 2422 // -webkit-print-color-adjust |
| 2422 static PrintColorAdjust initialPrintColorAdjust() { | 2423 static PrintColorAdjust initialPrintColorAdjust() { |
| 2423 return PrintColorAdjustEconomy; | 2424 return PrintColorAdjust::Economy; |
| 2424 } | 2425 } |
| 2425 PrintColorAdjust getPrintColorAdjust() const { | 2426 PrintColorAdjust getPrintColorAdjust() const { |
| 2426 return static_cast<PrintColorAdjust>(m_inheritedData.m_printColorAdjust); | 2427 return static_cast<PrintColorAdjust>(m_inheritedData.m_printColorAdjust); |
| 2427 } | 2428 } |
| 2428 void setPrintColorAdjust(PrintColorAdjust value) { | 2429 void setPrintColorAdjust(PrintColorAdjust value) { |
| 2429 m_inheritedData.m_printColorAdjust = value; | 2430 m_inheritedData.m_printColorAdjust = static_cast<unsigned>(value); |
| 2430 } | 2431 } |
| 2431 | 2432 |
| 2432 // -webkit-rtl-ordering | 2433 // -webkit-rtl-ordering |
| 2433 static Order initialRTLOrdering() { return LogicalOrder; } | 2434 static Order initialRTLOrdering() { return LogicalOrder; } |
| 2434 Order rtlOrdering() const { | 2435 Order rtlOrdering() const { |
| 2435 return static_cast<Order>(m_inheritedData.m_rtlOrdering); | 2436 return static_cast<Order>(m_inheritedData.m_rtlOrdering); |
| 2436 } | 2437 } |
| 2437 void setRTLOrdering(Order o) { m_inheritedData.m_rtlOrdering = o; } | 2438 void setRTLOrdering(Order o) { m_inheritedData.m_rtlOrdering = o; } |
| 2438 | 2439 |
| 2439 // -webkit-ruby-position | 2440 // -webkit-ruby-position |
| (...skipping 1671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4111 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - 1); | 4112 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - 1); |
| 4112 } | 4113 } |
| 4113 | 4114 |
| 4114 inline bool ComputedStyle::hasPseudoElementStyle() const { | 4115 inline bool ComputedStyle::hasPseudoElementStyle() const { |
| 4115 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; | 4116 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; |
| 4116 } | 4117 } |
| 4117 | 4118 |
| 4118 } // namespace blink | 4119 } // namespace blink |
| 4119 | 4120 |
| 4120 #endif // ComputedStyle_h | 4121 #endif // ComputedStyle_h |
| OLD | NEW |