| 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 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 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 | 333 |
| 334 static const size_t ETextDecorationBits = 4; | 334 static const size_t ETextDecorationBits = 4; |
| 335 enum ETextDecoration { | 335 enum ETextDecoration { |
| 336 TDNONE = 0x0 , UNDERLINE = 0x1, OVERLINE = 0x2, LINE_THROUGH= 0x4, BLINK = 0
x8 | 336 TDNONE = 0x0 , UNDERLINE = 0x1, OVERLINE = 0x2, LINE_THROUGH= 0x4, BLINK = 0
x8 |
| 337 }; | 337 }; |
| 338 inline ETextDecoration operator|(ETextDecoration a, ETextDecoration b) { return
ETextDecoration(int(a) | int(b)); } | 338 inline ETextDecoration operator|(ETextDecoration a, ETextDecoration b) { return
ETextDecoration(int(a) | int(b)); } |
| 339 inline ETextDecoration& operator|=(ETextDecoration& a, ETextDecoration b) { retu
rn a = a | b; } | 339 inline ETextDecoration& operator|=(ETextDecoration& a, ETextDecoration b) { retu
rn a = a | b; } |
| 340 | 340 |
| 341 enum TextDecorationStyle { | 341 enum TextDecorationStyle { |
| 342 TextDecorationStyleSolid, | 342 TextDecorationStyleSolid, |
| 343 #if ENABLE(CSS3_TEXT) | |
| 344 TextDecorationStyleDouble, | 343 TextDecorationStyleDouble, |
| 345 TextDecorationStyleDotted, | 344 TextDecorationStyleDotted, |
| 346 TextDecorationStyleDashed, | 345 TextDecorationStyleDashed, |
| 347 TextDecorationStyleWavy | 346 TextDecorationStyleWavy |
| 348 #endif // CSS3_TEXT | |
| 349 }; | 347 }; |
| 350 | 348 |
| 351 #if ENABLE(CSS3_TEXT) | 349 #if ENABLE(CSS3_TEXT) |
| 352 enum TextAlignLast { | 350 enum TextAlignLast { |
| 353 TextAlignLastAuto, TextAlignLastStart, TextAlignLastEnd, TextAlignLastLeft,
TextAlignLastRight, TextAlignLastCenter, TextAlignLastJustify | 351 TextAlignLastAuto, TextAlignLastStart, TextAlignLastEnd, TextAlignLastLeft,
TextAlignLastRight, TextAlignLastCenter, TextAlignLastJustify |
| 354 }; | 352 }; |
| 355 | 353 |
| 356 enum TextUnderlinePosition { | 354 enum TextUnderlinePosition { |
| 357 // FIXME: Implement support for 'under left' and 'under right' values. | 355 // FIXME: Implement support for 'under left' and 'under right' values. |
| 358 TextUnderlinePositionAuto = 0x1, TextUnderlinePositionAlphabetic = 0x2, Text
UnderlinePositionUnder = 0x4 | 356 TextUnderlinePositionAuto = 0x1, TextUnderlinePositionAlphabetic = 0x2, Text
UnderlinePositionUnder = 0x4 |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 // Reasonable maximum to prevent insane font sizes from causing crashes on some
platforms (such as Windows). | 492 // Reasonable maximum to prevent insane font sizes from causing crashes on some
platforms (such as Windows). |
| 495 static const float maximumAllowedFontSize = 1000000.0f; | 493 static const float maximumAllowedFontSize = 1000000.0f; |
| 496 | 494 |
| 497 #if ENABLE(CSS3_TEXT) | 495 #if ENABLE(CSS3_TEXT) |
| 498 enum TextIndentLine { TextIndentFirstLine, TextIndentEachLine }; | 496 enum TextIndentLine { TextIndentFirstLine, TextIndentEachLine }; |
| 499 #endif | 497 #endif |
| 500 | 498 |
| 501 } // namespace WebCore | 499 } // namespace WebCore |
| 502 | 500 |
| 503 #endif // RenderStyleConstants_h | 501 #endif // RenderStyleConstants_h |
| OLD | NEW |