| 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 1651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1662 void SetListStyleImage(StyleImage*); | 1662 void SetListStyleImage(StyleImage*); |
| 1663 | 1663 |
| 1664 // quotes | 1664 // quotes |
| 1665 static QuotesData* InitialQuotes() { return 0; } | 1665 static QuotesData* InitialQuotes() { return 0; } |
| 1666 QuotesData* Quotes() const { return rare_inherited_data_->quotes_.Get(); } | 1666 QuotesData* Quotes() const { return rare_inherited_data_->quotes_.Get(); } |
| 1667 void SetQuotes(RefPtr<QuotesData>); | 1667 void SetQuotes(RefPtr<QuotesData>); |
| 1668 | 1668 |
| 1669 bool QuotesDataEquivalent(const ComputedStyle&) const; | 1669 bool QuotesDataEquivalent(const ComputedStyle&) const; |
| 1670 | 1670 |
| 1671 // text-combine-upright (aka -webkit-text-combine, -epub-text-combine) | 1671 // text-combine-upright (aka -webkit-text-combine, -epub-text-combine) |
| 1672 static TextCombine InitialTextCombine() { return kTextCombineNone; } | 1672 static TextCombine InitialTextCombine() { return TextCombine::kNone; } |
| 1673 TextCombine GetTextCombine() const { | 1673 TextCombine GetTextCombine() const { |
| 1674 return static_cast<TextCombine>(rare_inherited_data_->text_combine_); | 1674 return static_cast<TextCombine>(rare_inherited_data_->text_combine_); |
| 1675 } | 1675 } |
| 1676 void SetTextCombine(TextCombine v) { | 1676 void SetTextCombine(TextCombine v) { |
| 1677 SET_VAR(rare_inherited_data_, text_combine_, v); | 1677 SET_VAR(rare_inherited_data_, text_combine_, static_cast<unsigned>(v)); |
| 1678 } | 1678 } |
| 1679 | 1679 |
| 1680 // text-justify | 1680 // text-justify |
| 1681 static TextJustify InitialTextJustify() { return kTextJustifyAuto; } | 1681 static TextJustify InitialTextJustify() { return kTextJustifyAuto; } |
| 1682 TextJustify GetTextJustify() const { | 1682 TextJustify GetTextJustify() const { |
| 1683 return static_cast<TextJustify>(rare_inherited_data_->text_justify_); | 1683 return static_cast<TextJustify>(rare_inherited_data_->text_justify_); |
| 1684 } | 1684 } |
| 1685 void SetTextJustify(TextJustify v) { | 1685 void SetTextJustify(TextJustify v) { |
| 1686 SET_VAR(rare_inherited_data_, text_justify_, v); | 1686 SET_VAR(rare_inherited_data_, text_justify_, v); |
| 1687 } | 1687 } |
| (...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2245 } | 2245 } |
| 2246 } | 2246 } |
| 2247 void SetMaskBoxImage(const NinePieceImage& b) { | 2247 void SetMaskBoxImage(const NinePieceImage& b) { |
| 2248 SET_VAR(rare_non_inherited_data_, mask_box_image_, b); | 2248 SET_VAR(rare_non_inherited_data_, mask_box_image_, b); |
| 2249 } | 2249 } |
| 2250 void SetMaskBoxImageSlicesFill(bool fill) { | 2250 void SetMaskBoxImageSlicesFill(bool fill) { |
| 2251 rare_non_inherited_data_.Access()->mask_box_image_.SetFill(fill); | 2251 rare_non_inherited_data_.Access()->mask_box_image_.SetFill(fill); |
| 2252 } | 2252 } |
| 2253 | 2253 |
| 2254 // Text-combine utility functions. | 2254 // Text-combine utility functions. |
| 2255 bool HasTextCombine() const { return GetTextCombine() != kTextCombineNone; } | 2255 bool HasTextCombine() const { return GetTextCombine() != TextCombine::kNone; } |
| 2256 | 2256 |
| 2257 // Grid utility functions. | 2257 // Grid utility functions. |
| 2258 const Vector<GridTrackSize>& GridAutoRepeatColumns() const { | 2258 const Vector<GridTrackSize>& GridAutoRepeatColumns() const { |
| 2259 return rare_non_inherited_data_->grid_->grid_auto_repeat_columns_; | 2259 return rare_non_inherited_data_->grid_->grid_auto_repeat_columns_; |
| 2260 } | 2260 } |
| 2261 const Vector<GridTrackSize>& GridAutoRepeatRows() const { | 2261 const Vector<GridTrackSize>& GridAutoRepeatRows() const { |
| 2262 return rare_non_inherited_data_->grid_->grid_auto_repeat_rows_; | 2262 return rare_non_inherited_data_->grid_->grid_auto_repeat_rows_; |
| 2263 } | 2263 } |
| 2264 size_t GridAutoRepeatColumnsInsertionPoint() const { | 2264 size_t GridAutoRepeatColumnsInsertionPoint() const { |
| 2265 return rare_non_inherited_data_->grid_ | 2265 return rare_non_inherited_data_->grid_ |
| (...skipping 1417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3683 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 3683 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
| 3684 } | 3684 } |
| 3685 | 3685 |
| 3686 inline bool ComputedStyle::HasPseudoElementStyle() const { | 3686 inline bool ComputedStyle::HasPseudoElementStyle() const { |
| 3687 return PseudoBitsInternal() & kElementPseudoIdMask; | 3687 return PseudoBitsInternal() & kElementPseudoIdMask; |
| 3688 } | 3688 } |
| 3689 | 3689 |
| 3690 } // namespace blink | 3690 } // namespace blink |
| 3691 | 3691 |
| 3692 #endif // ComputedStyle_h | 3692 #endif // ComputedStyle_h |
| OLD | NEW |