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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 // text decoration on this element. | 234 // text decoration on this element. |
235 unsigned m_cursorStyle : 6; // ECursor | 235 unsigned m_cursorStyle : 6; // ECursor |
236 unsigned m_direction : 1; // TextDirection | 236 unsigned m_direction : 1; // TextDirection |
237 unsigned m_whiteSpace : 3; // EWhiteSpace | 237 unsigned m_whiteSpace : 3; // EWhiteSpace |
238 unsigned m_borderCollapse : 1; // EBorderCollapse | 238 unsigned m_borderCollapse : 1; // EBorderCollapse |
239 unsigned m_boxDirection : 1; // EBoxDirection (CSS3 box_direction property, | 239 unsigned m_boxDirection : 1; // EBoxDirection (CSS3 box_direction property, |
240 // flexible box layout module) | 240 // flexible box layout module) |
241 // 32 bits | 241 // 32 bits |
242 | 242 |
243 // non CSS2 inherited | 243 // non CSS2 inherited |
244 unsigned m_rtlOrdering : 1; // Order | 244 unsigned m_rtlOrdering : 1; // EOrder |
245 unsigned m_printColorAdjust : 1; // PrintColorAdjust | 245 unsigned m_printColorAdjust : 1; // PrintColorAdjust |
246 unsigned m_pointerEvents : 4; // EPointerEvents | 246 unsigned m_pointerEvents : 4; // EPointerEvents |
247 unsigned m_insideLink : 2; // EInsideLink | 247 unsigned m_insideLink : 2; // EInsideLink |
248 | 248 |
249 // CSS Text Layout Module Level 3: Vertical writing support | 249 // CSS Text Layout Module Level 3: Vertical writing support |
250 unsigned m_writingMode : 2; // WritingMode | 250 unsigned m_writingMode : 2; // WritingMode |
251 // 42 bits | 251 // 42 bits |
252 } m_inheritedData; | 252 } m_inheritedData; |
253 | 253 |
254 // don't inherit | 254 // don't inherit |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 ComputedStyleBase::setBitDefaults(); | 360 ComputedStyleBase::setBitDefaults(); |
361 m_inheritedData.m_listStyleType = | 361 m_inheritedData.m_listStyleType = |
362 static_cast<unsigned>(initialListStyleType()); | 362 static_cast<unsigned>(initialListStyleType()); |
363 m_inheritedData.m_textAlign = static_cast<unsigned>(initialTextAlign()); | 363 m_inheritedData.m_textAlign = static_cast<unsigned>(initialTextAlign()); |
364 m_inheritedData.m_hasSimpleUnderline = false; | 364 m_inheritedData.m_hasSimpleUnderline = false; |
365 m_inheritedData.m_cursorStyle = static_cast<unsigned>(initialCursor()); | 365 m_inheritedData.m_cursorStyle = static_cast<unsigned>(initialCursor()); |
366 m_inheritedData.m_direction = initialDirection(); | 366 m_inheritedData.m_direction = initialDirection(); |
367 m_inheritedData.m_whiteSpace = static_cast<unsigned>(initialWhiteSpace()); | 367 m_inheritedData.m_whiteSpace = static_cast<unsigned>(initialWhiteSpace()); |
368 m_inheritedData.m_borderCollapse = | 368 m_inheritedData.m_borderCollapse = |
369 static_cast<unsigned>(initialBorderCollapse()); | 369 static_cast<unsigned>(initialBorderCollapse()); |
370 m_inheritedData.m_rtlOrdering = initialRTLOrdering(); | 370 m_inheritedData.m_rtlOrdering = static_cast<unsigned>(initialRTLOrdering()); |
371 m_inheritedData.m_boxDirection = | 371 m_inheritedData.m_boxDirection = |
372 static_cast<unsigned>(initialBoxDirection()); | 372 static_cast<unsigned>(initialBoxDirection()); |
373 m_inheritedData.m_printColorAdjust = | 373 m_inheritedData.m_printColorAdjust = |
374 static_cast<unsigned>(initialPrintColorAdjust()); | 374 static_cast<unsigned>(initialPrintColorAdjust()); |
375 m_inheritedData.m_pointerEvents = initialPointerEvents(); | 375 m_inheritedData.m_pointerEvents = initialPointerEvents(); |
376 m_inheritedData.m_insideLink = NotInsideLink; | 376 m_inheritedData.m_insideLink = NotInsideLink; |
377 m_inheritedData.m_writingMode = initialWritingMode(); | 377 m_inheritedData.m_writingMode = initialWritingMode(); |
378 | 378 |
379 m_nonInheritedData.m_effectiveDisplay = | 379 m_nonInheritedData.m_effectiveDisplay = |
380 m_nonInheritedData.m_originalDisplay = | 380 m_nonInheritedData.m_originalDisplay = |
(...skipping 2015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2396 return PrintColorAdjust::Economy; | 2396 return PrintColorAdjust::Economy; |
2397 } | 2397 } |
2398 PrintColorAdjust getPrintColorAdjust() const { | 2398 PrintColorAdjust getPrintColorAdjust() const { |
2399 return static_cast<PrintColorAdjust>(m_inheritedData.m_printColorAdjust); | 2399 return static_cast<PrintColorAdjust>(m_inheritedData.m_printColorAdjust); |
2400 } | 2400 } |
2401 void setPrintColorAdjust(PrintColorAdjust value) { | 2401 void setPrintColorAdjust(PrintColorAdjust value) { |
2402 m_inheritedData.m_printColorAdjust = static_cast<unsigned>(value); | 2402 m_inheritedData.m_printColorAdjust = static_cast<unsigned>(value); |
2403 } | 2403 } |
2404 | 2404 |
2405 // -webkit-rtl-ordering | 2405 // -webkit-rtl-ordering |
2406 static Order initialRTLOrdering() { return LogicalOrder; } | 2406 static EOrder initialRTLOrdering() { return EOrder::Logical; } |
2407 Order rtlOrdering() const { | 2407 EOrder rtlOrdering() const { |
2408 return static_cast<Order>(m_inheritedData.m_rtlOrdering); | 2408 return static_cast<EOrder>(m_inheritedData.m_rtlOrdering); |
2409 } | 2409 } |
2410 void setRTLOrdering(Order o) { m_inheritedData.m_rtlOrdering = o; } | 2410 void setRTLOrdering(EOrder o) { |
| 2411 m_inheritedData.m_rtlOrdering = static_cast<unsigned>(o); |
| 2412 } |
2411 | 2413 |
2412 // -webkit-ruby-position | 2414 // -webkit-ruby-position |
2413 static RubyPosition initialRubyPosition() { return RubyPositionBefore; } | 2415 static RubyPosition initialRubyPosition() { return RubyPositionBefore; } |
2414 RubyPosition getRubyPosition() const { | 2416 RubyPosition getRubyPosition() const { |
2415 return static_cast<RubyPosition>(m_rareInheritedData->m_rubyPosition); | 2417 return static_cast<RubyPosition>(m_rareInheritedData->m_rubyPosition); |
2416 } | 2418 } |
2417 void setRubyPosition(RubyPosition position) { | 2419 void setRubyPosition(RubyPosition position) { |
2418 SET_VAR(m_rareInheritedData, m_rubyPosition, position); | 2420 SET_VAR(m_rareInheritedData, m_rubyPosition, position); |
2419 } | 2421 } |
2420 | 2422 |
(...skipping 1680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4101 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - 1); | 4103 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - 1); |
4102 } | 4104 } |
4103 | 4105 |
4104 inline bool ComputedStyle::hasPseudoElementStyle() const { | 4106 inline bool ComputedStyle::hasPseudoElementStyle() const { |
4105 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; | 4107 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; |
4106 } | 4108 } |
4107 | 4109 |
4108 } // namespace blink | 4110 } // namespace blink |
4109 | 4111 |
4110 #endif // ComputedStyle_h | 4112 #endif // ComputedStyle_h |
OLD | NEW |