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 1386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1397 PageSizeType GetPageSizeType() const { | 1397 PageSizeType GetPageSizeType() const { |
1398 return static_cast<PageSizeType>(rare_non_inherited_data_->page_size_type_); | 1398 return static_cast<PageSizeType>(rare_non_inherited_data_->page_size_type_); |
1399 } | 1399 } |
1400 void SetPageSize(const FloatSize& s) { | 1400 void SetPageSize(const FloatSize& s) { |
1401 SET_VAR(rare_non_inherited_data_, page_size_, s); | 1401 SET_VAR(rare_non_inherited_data_, page_size_, s); |
1402 } | 1402 } |
1403 void SetPageSizeType(PageSizeType t) { | 1403 void SetPageSizeType(PageSizeType t) { |
1404 SET_VAR(rare_non_inherited_data_, page_size_type_, t); | 1404 SET_VAR(rare_non_inherited_data_, page_size_type_, t); |
1405 } | 1405 } |
1406 | 1406 |
1407 // sticky subtrees | |
1408 bool SubtreeIsSticky() const { | |
1409 return rare_inherited_data_->subtree_is_sticky_; | |
1410 } | |
1411 void SetSubtreeIsSticky(bool b) { | |
1412 SET_VAR(rare_inherited_data_, subtree_is_sticky_, b); | |
1413 } | |
1414 | |
1415 // Text decoration properties. | 1407 // Text decoration properties. |
1416 // text-decoration-line | 1408 // text-decoration-line |
1417 static TextDecoration InitialTextDecoration() { | 1409 static TextDecoration InitialTextDecoration() { |
1418 return TextDecoration::kNone; | 1410 return TextDecoration::kNone; |
1419 } | 1411 } |
1420 TextDecoration GetTextDecoration() const { | 1412 TextDecoration GetTextDecoration() const { |
1421 return static_cast<TextDecoration>(TextDecorationInternal()); | 1413 return static_cast<TextDecoration>(TextDecorationInternal()); |
1422 } | 1414 } |
1423 void SetTextDecoration(TextDecoration v) { SetTextDecorationInternal(v); } | 1415 void SetTextDecoration(TextDecoration v) { SetTextDecorationInternal(v); } |
1424 | 1416 |
(...skipping 2367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3792 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 3784 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
3793 } | 3785 } |
3794 | 3786 |
3795 inline bool ComputedStyle::HasPseudoElementStyle() const { | 3787 inline bool ComputedStyle::HasPseudoElementStyle() const { |
3796 return PseudoBitsInternal() & kElementPseudoIdMask; | 3788 return PseudoBitsInternal() & kElementPseudoIdMask; |
3797 } | 3789 } |
3798 | 3790 |
3799 } // namespace blink | 3791 } // namespace blink |
3800 | 3792 |
3801 #endif // ComputedStyle_h | 3793 #endif // ComputedStyle_h |
OLD | NEW |