| 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 1428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1439 return static_cast<PageSizeType>(rare_non_inherited_data_->page_size_type_); | 1439 return static_cast<PageSizeType>(rare_non_inherited_data_->page_size_type_); |
| 1440 } | 1440 } |
| 1441 void SetPageSize(const FloatSize& s) { | 1441 void SetPageSize(const FloatSize& s) { |
| 1442 SET_VAR(rare_non_inherited_data_, page_size_, s); | 1442 SET_VAR(rare_non_inherited_data_, page_size_, s); |
| 1443 } | 1443 } |
| 1444 void SetPageSizeType(PageSizeType t) { | 1444 void SetPageSizeType(PageSizeType t) { |
| 1445 SET_VAR(rare_non_inherited_data_, page_size_type_, t); | 1445 SET_VAR(rare_non_inherited_data_, page_size_type_, t); |
| 1446 } | 1446 } |
| 1447 | 1447 |
| 1448 // Text decoration properties. | 1448 // Text decoration properties. |
| 1449 // text-decoration-line | |
| 1450 static TextDecoration InitialTextDecoration() { | |
| 1451 return TextDecoration::kNone; | |
| 1452 } | |
| 1453 TextDecoration GetTextDecoration() const { | |
| 1454 return static_cast<TextDecoration>(TextDecorationInternal()); | |
| 1455 } | |
| 1456 void SetTextDecoration(TextDecoration v) { SetTextDecorationInternal(v); } | |
| 1457 | |
| 1458 // text-decoration-color | 1449 // text-decoration-color |
| 1459 void SetTextDecorationColor(const StyleColor& c) { | 1450 void SetTextDecorationColor(const StyleColor& c) { |
| 1460 SET_VAR(rare_non_inherited_data_, text_decoration_color_, c); | 1451 SET_VAR(rare_non_inherited_data_, text_decoration_color_, c); |
| 1461 } | 1452 } |
| 1462 | 1453 |
| 1463 // text-decoration-style | 1454 // text-decoration-style |
| 1464 static TextDecorationStyle InitialTextDecorationStyle() { | 1455 static TextDecorationStyle InitialTextDecorationStyle() { |
| 1465 return kTextDecorationStyleSolid; | 1456 return kTextDecorationStyleSolid; |
| 1466 } | 1457 } |
| 1467 TextDecorationStyle GetTextDecorationStyle() const { | 1458 TextDecorationStyle GetTextDecorationStyle() const { |
| (...skipping 2311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3779 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 3770 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
| 3780 } | 3771 } |
| 3781 | 3772 |
| 3782 inline bool ComputedStyle::HasPseudoElementStyle() const { | 3773 inline bool ComputedStyle::HasPseudoElementStyle() const { |
| 3783 return PseudoBitsInternal() & kElementPseudoIdMask; | 3774 return PseudoBitsInternal() & kElementPseudoIdMask; |
| 3784 } | 3775 } |
| 3785 | 3776 |
| 3786 } // namespace blink | 3777 } // namespace blink |
| 3787 | 3778 |
| 3788 #endif // ComputedStyle_h | 3779 #endif // ComputedStyle_h |
| OLD | NEW |