Chromium Code Reviews| 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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 356 TextDecorationNone = 0x0, | 356 TextDecorationNone = 0x0, |
| 357 TextDecorationUnderline = 0x1, | 357 TextDecorationUnderline = 0x1, |
| 358 TextDecorationOverline = 0x2, | 358 TextDecorationOverline = 0x2, |
| 359 TextDecorationLineThrough = 0x4, | 359 TextDecorationLineThrough = 0x4, |
| 360 TextDecorationBlink = 0x8 | 360 TextDecorationBlink = 0x8 |
| 361 }; | 361 }; |
| 362 inline TextDecoration operator| (TextDecoration a, TextDecoration b) { return Te xtDecoration(int(a) | int(b)); } | 362 inline TextDecoration operator| (TextDecoration a, TextDecoration b) { return Te xtDecoration(int(a) | int(b)); } |
| 363 inline TextDecoration& operator|= (TextDecoration& a, TextDecoration b) { return a = a | b; } | 363 inline TextDecoration& operator|= (TextDecoration& a, TextDecoration b) { return a = a | b; } |
| 364 | 364 |
| 365 enum TextDecorationStyle { | 365 enum TextDecorationStyle { |
| 366 TextDecorationStyleNone, | |
|
andersr
2014/03/19 13:18:12
Are you sure you need this?
The decoration style
h.joshi
2014/03/19 13:59:54
Yes as per CSS doc "none" is not a defined value,
andersr
2014/03/19 14:39:44
The correct value in that case is TextDecorationSt
| |
| 366 TextDecorationStyleSolid, | 367 TextDecorationStyleSolid, |
| 367 TextDecorationStyleDouble, | 368 TextDecorationStyleDouble, |
| 368 TextDecorationStyleDotted, | 369 TextDecorationStyleDotted, |
| 369 TextDecorationStyleDashed, | 370 TextDecorationStyleDashed, |
| 370 TextDecorationStyleWavy | 371 TextDecorationStyleWavy |
| 371 }; | 372 }; |
| 372 | 373 |
| 373 enum TextAlignLast { | 374 enum TextAlignLast { |
| 374 TextAlignLastAuto, TextAlignLastStart, TextAlignLastEnd, TextAlignLastLeft, TextAlignLastRight, TextAlignLastCenter, TextAlignLastJustify | 375 TextAlignLastAuto, TextAlignLastStart, TextAlignLastEnd, TextAlignLastLeft, TextAlignLastRight, TextAlignLastCenter, TextAlignLastJustify |
| 375 }; | 376 }; |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 553 // Reasonable maximum to prevent insane font sizes from causing crashes on some platforms (such as Windows). | 554 // Reasonable maximum to prevent insane font sizes from causing crashes on some platforms (such as Windows). |
| 554 static const float maximumAllowedFontSize = 1000000.0f; | 555 static const float maximumAllowedFontSize = 1000000.0f; |
| 555 | 556 |
| 556 enum TextIndentLine { TextIndentFirstLine, TextIndentEachLine }; | 557 enum TextIndentLine { TextIndentFirstLine, TextIndentEachLine }; |
| 557 | 558 |
| 558 enum LayoutBox { BoxMissing = 0, MarginBox, BorderBox, PaddingBox, ContentBox }; | 559 enum LayoutBox { BoxMissing = 0, MarginBox, BorderBox, PaddingBox, ContentBox }; |
| 559 | 560 |
| 560 } // namespace WebCore | 561 } // namespace WebCore |
| 561 | 562 |
| 562 #endif // RenderStyleConstants_h | 563 #endif // RenderStyleConstants_h |
| OLD | NEW |