Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: Source/core/rendering/style/RenderStyleConstants.h

Issue 40733004: Replace compile flag with runtime check for text-underline-position (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Julien's review #2 (rebased) Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 }; 370 };
371 371
372 enum TextAlignLast { 372 enum TextAlignLast {
373 TextAlignLastAuto, TextAlignLastStart, TextAlignLastEnd, TextAlignLastLeft, TextAlignLastRight, TextAlignLastCenter, TextAlignLastJustify 373 TextAlignLastAuto, TextAlignLastStart, TextAlignLastEnd, TextAlignLastLeft, TextAlignLastRight, TextAlignLastCenter, TextAlignLastJustify
374 }; 374 };
375 375
376 enum TextJustify { 376 enum TextJustify {
377 TextJustifyAuto, TextJustifyNone, TextJustifyInterWord, TextJustifyDistribut e 377 TextJustifyAuto, TextJustifyNone, TextJustifyInterWord, TextJustifyDistribut e
378 }; 378 };
379 379
380 #if ENABLE(CSS3_TEXT)
381 enum TextUnderlinePosition { 380 enum TextUnderlinePosition {
382 // FIXME: Implement support for 'under left' and 'under right' values. 381 // FIXME: Implement support for 'under left' and 'under right' values.
383 TextUnderlinePositionAuto = 0x1, TextUnderlinePositionAlphabetic = 0x2, Text UnderlinePositionUnder = 0x4 382 TextUnderlinePositionAuto = 0x1, TextUnderlinePositionAlphabetic = 0x2, Text UnderlinePositionUnder = 0x4
384 }; 383 };
385 #endif // CSS3_TEXT
386 384
387 enum EPageBreak { 385 enum EPageBreak {
388 PBAUTO, PBALWAYS, PBAVOID 386 PBAUTO, PBALWAYS, PBAVOID
389 }; 387 };
390 388
391 enum EEmptyCell { 389 enum EEmptyCell {
392 SHOW, HIDE 390 SHOW, HIDE
393 }; 391 };
394 392
395 enum ECaptionSide { 393 enum ECaptionSide {
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 enum TouchActionDelay { TouchActionDelayNone, TouchActionDelayScript }; 520 enum TouchActionDelay { TouchActionDelayNone, TouchActionDelayScript };
523 521
524 // Reasonable maximum to prevent insane font sizes from causing crashes on some platforms (such as Windows). 522 // Reasonable maximum to prevent insane font sizes from causing crashes on some platforms (such as Windows).
525 static const float maximumAllowedFontSize = 1000000.0f; 523 static const float maximumAllowedFontSize = 1000000.0f;
526 524
527 enum TextIndentLine { TextIndentFirstLine, TextIndentEachLine }; 525 enum TextIndentLine { TextIndentFirstLine, TextIndentEachLine };
528 526
529 } // namespace WebCore 527 } // namespace WebCore
530 528
531 #endif // RenderStyleConstants_h 529 #endif // RenderStyleConstants_h
OLDNEW
« no previous file with comments | « Source/core/rendering/style/RenderStyle.h ('k') | Source/core/rendering/style/StyleRareInheritedData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698