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 1457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1468 TextDecorationStyle GetTextDecorationStyle() const { | 1468 TextDecorationStyle GetTextDecorationStyle() const { |
1469 return static_cast<TextDecorationStyle>( | 1469 return static_cast<TextDecorationStyle>( |
1470 rare_non_inherited_data_->text_decoration_style_); | 1470 rare_non_inherited_data_->text_decoration_style_); |
1471 } | 1471 } |
1472 void SetTextDecorationStyle(TextDecorationStyle v) { | 1472 void SetTextDecorationStyle(TextDecorationStyle v) { |
1473 SET_VAR(rare_non_inherited_data_, text_decoration_style_, v); | 1473 SET_VAR(rare_non_inherited_data_, text_decoration_style_, v); |
1474 } | 1474 } |
1475 | 1475 |
1476 // text-underline-position | 1476 // text-underline-position |
1477 static TextUnderlinePosition InitialTextUnderlinePosition() { | 1477 static TextUnderlinePosition InitialTextUnderlinePosition() { |
1478 return kTextUnderlinePositionAuto; | 1478 return TextUnderlinePosition::kAuto; |
1479 } | 1479 } |
1480 TextUnderlinePosition GetTextUnderlinePosition() const { | 1480 TextUnderlinePosition GetTextUnderlinePosition() const { |
1481 return static_cast<TextUnderlinePosition>( | 1481 return static_cast<TextUnderlinePosition>( |
1482 rare_inherited_data_->text_underline_position_); | 1482 rare_inherited_data_->text_underline_position_); |
1483 } | 1483 } |
1484 void SetTextUnderlinePosition(TextUnderlinePosition v) { | 1484 void SetTextUnderlinePosition(TextUnderlinePosition v) { |
1485 SET_VAR(rare_inherited_data_, text_underline_position_, v); | 1485 SET_VAR(rare_inherited_data_, text_underline_position_, |
| 1486 static_cast<unsigned>(v)); |
1486 } | 1487 } |
1487 | 1488 |
1488 // text-decoration-skip | 1489 // text-decoration-skip |
1489 static TextDecorationSkip InitialTextDecorationSkip() { | 1490 static TextDecorationSkip InitialTextDecorationSkip() { |
1490 return TextDecorationSkip::kObjects; | 1491 return TextDecorationSkip::kObjects; |
1491 } | 1492 } |
1492 TextDecorationSkip GetTextDecorationSkip() const { | 1493 TextDecorationSkip GetTextDecorationSkip() const { |
1493 return static_cast<TextDecorationSkip>( | 1494 return static_cast<TextDecorationSkip>( |
1494 rare_inherited_data_->text_decoration_skip_); | 1495 rare_inherited_data_->text_decoration_skip_); |
1495 } | 1496 } |
(...skipping 2187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3683 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 3684 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
3684 } | 3685 } |
3685 | 3686 |
3686 inline bool ComputedStyle::HasPseudoElementStyle() const { | 3687 inline bool ComputedStyle::HasPseudoElementStyle() const { |
3687 return PseudoBitsInternal() & kElementPseudoIdMask; | 3688 return PseudoBitsInternal() & kElementPseudoIdMask; |
3688 } | 3689 } |
3689 | 3690 |
3690 } // namespace blink | 3691 } // namespace blink |
3691 | 3692 |
3692 #endif // ComputedStyle_h | 3693 #endif // ComputedStyle_h |
OLD | NEW |