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) | |
352 enum TextAlignLast { | 349 enum TextAlignLast { |
353 TextAlignLastAuto, TextAlignLastStart, TextAlignLastEnd, TextAlignLastLeft,
TextAlignLastRight, TextAlignLastCenter, TextAlignLastJustify | 350 TextAlignLastAuto, TextAlignLastStart, TextAlignLastEnd, TextAlignLastLeft,
TextAlignLastRight, TextAlignLastCenter, TextAlignLastJustify |
354 }; | 351 }; |
355 | 352 |
356 enum TextUnderlinePosition { | 353 enum TextUnderlinePosition { |
357 // FIXME: Implement support for 'under left' and 'under right' values. | 354 // FIXME: Implement support for 'under left' and 'under right' values. |
358 TextUnderlinePositionAuto = 0x1, TextUnderlinePositionAlphabetic = 0x2, Text
UnderlinePositionUnder = 0x4 | 355 TextUnderlinePositionAuto = 0x1, TextUnderlinePositionAlphabetic = 0x2, Text
UnderlinePositionUnder = 0x4 |
359 }; | 356 }; |
360 #endif // CSS3_TEXT | |
361 | 357 |
362 enum EPageBreak { | 358 enum EPageBreak { |
363 PBAUTO, PBALWAYS, PBAVOID | 359 PBAUTO, PBALWAYS, PBAVOID |
364 }; | 360 }; |
365 | 361 |
366 enum EEmptyCell { | 362 enum EEmptyCell { |
367 SHOW, HIDE | 363 SHOW, HIDE |
368 }; | 364 }; |
369 | 365 |
370 enum ECaptionSide { | 366 enum ECaptionSide { |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 | 483 |
488 enum RubyPosition { RubyPositionBefore, RubyPositionAfter }; | 484 enum RubyPosition { RubyPositionBefore, RubyPositionAfter }; |
489 | 485 |
490 enum GridAutoFlow { AutoFlowNone, AutoFlowColumn, AutoFlowRow }; | 486 enum GridAutoFlow { AutoFlowNone, AutoFlowColumn, AutoFlowRow }; |
491 | 487 |
492 enum DraggableRegionMode { DraggableRegionNone, DraggableRegionDrag, DraggableRe
gionNoDrag }; | 488 enum DraggableRegionMode { DraggableRegionNone, DraggableRegionDrag, DraggableRe
gionNoDrag }; |
493 | 489 |
494 // Reasonable maximum to prevent insane font sizes from causing crashes on some
platforms (such as Windows). | 490 // Reasonable maximum to prevent insane font sizes from causing crashes on some
platforms (such as Windows). |
495 static const float maximumAllowedFontSize = 1000000.0f; | 491 static const float maximumAllowedFontSize = 1000000.0f; |
496 | 492 |
497 #if ENABLE(CSS3_TEXT) | |
498 enum TextIndentLine { TextIndentFirstLine, TextIndentEachLine }; | 493 enum TextIndentLine { TextIndentFirstLine, TextIndentEachLine }; |
499 #endif | |
500 | 494 |
501 } // namespace WebCore | 495 } // namespace WebCore |
502 | 496 |
503 #endif // RenderStyleConstants_h | 497 #endif // RenderStyleConstants_h |
OLD | NEW |