| 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 | 313 |
| 314 void setBitDefaults() { | 314 void setBitDefaults() { |
| 315 ComputedStyleBase::setBitDefaults(); | 315 ComputedStyleBase::setBitDefaults(); |
| 316 m_inheritedData.m_listStyleType = | 316 m_inheritedData.m_listStyleType = |
| 317 static_cast<unsigned>(initialListStyleType()); | 317 static_cast<unsigned>(initialListStyleType()); |
| 318 m_inheritedData.m_hasSimpleUnderline = false; | 318 m_inheritedData.m_hasSimpleUnderline = false; |
| 319 m_inheritedData.m_cursorStyle = static_cast<unsigned>(initialCursor()); | 319 m_inheritedData.m_cursorStyle = static_cast<unsigned>(initialCursor()); |
| 320 m_inheritedData.m_direction = static_cast<unsigned>(initialDirection()); | 320 m_inheritedData.m_direction = static_cast<unsigned>(initialDirection()); |
| 321 m_inheritedData.m_rtlOrdering = static_cast<unsigned>(initialRTLOrdering()); | 321 m_inheritedData.m_rtlOrdering = static_cast<unsigned>(initialRTLOrdering()); |
| 322 m_inheritedData.m_insideLink = NotInsideLink; | 322 m_inheritedData.m_insideLink = NotInsideLink; |
| 323 m_inheritedData.m_writingMode = initialWritingMode(); | 323 m_inheritedData.m_writingMode = static_cast<unsigned>(initialWritingMode()); |
| 324 | 324 |
| 325 m_nonInheritedData.m_effectiveDisplay = | 325 m_nonInheritedData.m_effectiveDisplay = |
| 326 m_nonInheritedData.m_originalDisplay = | 326 m_nonInheritedData.m_originalDisplay = |
| 327 static_cast<unsigned>(initialDisplay()); | 327 static_cast<unsigned>(initialDisplay()); |
| 328 m_nonInheritedData.m_overflowAnchor = | 328 m_nonInheritedData.m_overflowAnchor = |
| 329 static_cast<unsigned>(initialOverflowAnchor()); | 329 static_cast<unsigned>(initialOverflowAnchor()); |
| 330 m_nonInheritedData.m_overflowX = static_cast<unsigned>(initialOverflowX()); | 330 m_nonInheritedData.m_overflowX = static_cast<unsigned>(initialOverflowX()); |
| 331 m_nonInheritedData.m_overflowY = static_cast<unsigned>(initialOverflowY()); | 331 m_nonInheritedData.m_overflowY = static_cast<unsigned>(initialOverflowY()); |
| 332 m_nonInheritedData.m_verticalAlign = | 332 m_nonInheritedData.m_verticalAlign = |
| 333 static_cast<unsigned>(initialVerticalAlign()); | 333 static_cast<unsigned>(initialVerticalAlign()); |
| (...skipping 1877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2211 } | 2211 } |
| 2212 | 2212 |
| 2213 // -webkit-line-break | 2213 // -webkit-line-break |
| 2214 static LineBreak initialLineBreak() { return LineBreakAuto; } | 2214 static LineBreak initialLineBreak() { return LineBreakAuto; } |
| 2215 LineBreak getLineBreak() const { | 2215 LineBreak getLineBreak() const { |
| 2216 return static_cast<LineBreak>(m_rareInheritedData->lineBreak); | 2216 return static_cast<LineBreak>(m_rareInheritedData->lineBreak); |
| 2217 } | 2217 } |
| 2218 void setLineBreak(LineBreak b) { SET_VAR(m_rareInheritedData, lineBreak, b); } | 2218 void setLineBreak(LineBreak b) { SET_VAR(m_rareInheritedData, lineBreak, b); } |
| 2219 | 2219 |
| 2220 // writing-mode (aka -webkit-writing-mode, -epub-writing-mode) | 2220 // writing-mode (aka -webkit-writing-mode, -epub-writing-mode) |
| 2221 static WritingMode initialWritingMode() { return TopToBottomWritingMode; } | 2221 static WritingMode initialWritingMode() { return WritingMode::HorizontalTb; } |
| 2222 WritingMode getWritingMode() const { | 2222 WritingMode getWritingMode() const { |
| 2223 return static_cast<WritingMode>(m_inheritedData.m_writingMode); | 2223 return static_cast<WritingMode>(m_inheritedData.m_writingMode); |
| 2224 } | 2224 } |
| 2225 void setWritingMode(WritingMode v) { m_inheritedData.m_writingMode = v; } | 2225 void setWritingMode(WritingMode v) { |
| 2226 m_inheritedData.m_writingMode = static_cast<unsigned>(v); |
| 2227 } |
| 2226 | 2228 |
| 2227 // Text emphasis properties. | 2229 // Text emphasis properties. |
| 2228 static TextEmphasisFill initialTextEmphasisFill() { | 2230 static TextEmphasisFill initialTextEmphasisFill() { |
| 2229 return TextEmphasisFillFilled; | 2231 return TextEmphasisFillFilled; |
| 2230 } | 2232 } |
| 2231 static TextEmphasisMark initialTextEmphasisMark() { | 2233 static TextEmphasisMark initialTextEmphasisMark() { |
| 2232 return TextEmphasisMarkNone; | 2234 return TextEmphasisMarkNone; |
| 2233 } | 2235 } |
| 2234 static const AtomicString& initialTextEmphasisCustomMark() { | 2236 static const AtomicString& initialTextEmphasisCustomMark() { |
| 2235 return nullAtom; | 2237 return nullAtom; |
| (...skipping 1756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3992 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - 1); | 3994 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - 1); |
| 3993 } | 3995 } |
| 3994 | 3996 |
| 3995 inline bool ComputedStyle::hasPseudoElementStyle() const { | 3997 inline bool ComputedStyle::hasPseudoElementStyle() const { |
| 3996 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; | 3998 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; |
| 3997 } | 3999 } |
| 3998 | 4000 |
| 3999 } // namespace blink | 4001 } // namespace blink |
| 4000 | 4002 |
| 4001 #endif // ComputedStyle_h | 4003 #endif // ComputedStyle_h |
| OLD | NEW |