| 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 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1528 PageSizeType GetPageSizeType() const { | 1528 PageSizeType GetPageSizeType() const { |
| 1529 return static_cast<PageSizeType>(rare_non_inherited_data_->page_size_type_); | 1529 return static_cast<PageSizeType>(rare_non_inherited_data_->page_size_type_); |
| 1530 } | 1530 } |
| 1531 void SetPageSize(const FloatSize& s) { | 1531 void SetPageSize(const FloatSize& s) { |
| 1532 SET_VAR(rare_non_inherited_data_, page_size_, s); | 1532 SET_VAR(rare_non_inherited_data_, page_size_, s); |
| 1533 } | 1533 } |
| 1534 void SetPageSizeType(PageSizeType t) { | 1534 void SetPageSizeType(PageSizeType t) { |
| 1535 SET_VAR(rare_non_inherited_data_, page_size_type_, t); | 1535 SET_VAR(rare_non_inherited_data_, page_size_type_, t); |
| 1536 } | 1536 } |
| 1537 | 1537 |
| 1538 // sticky subtrees |
| 1539 bool SubtreeIsSticky() const { |
| 1540 return rare_inherited_data_->subtree_is_sticky_; |
| 1541 } |
| 1542 void SetSubtreeIsSticky(bool b) { |
| 1543 SET_VAR(rare_inherited_data_, subtree_is_sticky_, b); |
| 1544 } |
| 1545 |
| 1538 // Text decoration properties. | 1546 // Text decoration properties. |
| 1539 // text-decoration-line | 1547 // text-decoration-line |
| 1540 static TextDecoration InitialTextDecoration() { return kTextDecorationNone; } | 1548 static TextDecoration InitialTextDecoration() { return kTextDecorationNone; } |
| 1541 TextDecoration GetTextDecoration() const { | 1549 TextDecoration GetTextDecoration() const { |
| 1542 return static_cast<TextDecoration>(visual_data_->text_decoration_); | 1550 return static_cast<TextDecoration>(visual_data_->text_decoration_); |
| 1543 } | 1551 } |
| 1544 void SetTextDecoration(TextDecoration v) { | 1552 void SetTextDecoration(TextDecoration v) { |
| 1545 SET_VAR(visual_data_, text_decoration_, v); | 1553 SET_VAR(visual_data_, text_decoration_, v); |
| 1546 } | 1554 } |
| 1547 | 1555 |
| (...skipping 2271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3819 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 3827 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
| 3820 } | 3828 } |
| 3821 | 3829 |
| 3822 inline bool ComputedStyle::HasPseudoElementStyle() const { | 3830 inline bool ComputedStyle::HasPseudoElementStyle() const { |
| 3823 return PseudoBitsInternal() & kElementPseudoIdMask; | 3831 return PseudoBitsInternal() & kElementPseudoIdMask; |
| 3824 } | 3832 } |
| 3825 | 3833 |
| 3826 } // namespace blink | 3834 } // namespace blink |
| 3827 | 3835 |
| 3828 #endif // ComputedStyle_h | 3836 #endif // ComputedStyle_h |
| OLD | NEW |