Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 2916523002: Generate enum/getters/setters/mappings for text-combine-upright. (Closed)
Patch Set: shend@ suggestions Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
1662 StyleImage* ListStyleImage() const; 1662 StyleImage* ListStyleImage() const;
1663 void SetListStyleImage(StyleImage*); 1663 void SetListStyleImage(StyleImage*);
1664 1664
1665 // quotes 1665 // quotes
1666 static QuotesData* InitialQuotes() { return 0; } 1666 static QuotesData* InitialQuotes() { return 0; }
1667 QuotesData* Quotes() const { return rare_inherited_data_->quotes_.Get(); } 1667 QuotesData* Quotes() const { return rare_inherited_data_->quotes_.Get(); }
1668 void SetQuotes(RefPtr<QuotesData>); 1668 void SetQuotes(RefPtr<QuotesData>);
1669 1669
1670 bool QuotesDataEquivalent(const ComputedStyle&) const; 1670 bool QuotesDataEquivalent(const ComputedStyle&) const;
1671 1671
1672 // text-combine-upright (aka -webkit-text-combine, -epub-text-combine)
1673 static TextCombine InitialTextCombine() { return TextCombine::kNone; }
1674 TextCombine GetTextCombine() const {
1675 return static_cast<TextCombine>(rare_inherited_data_->text_combine_);
1676 }
1677 void SetTextCombine(TextCombine v) {
1678 SET_VAR(rare_inherited_data_, text_combine_, static_cast<unsigned>(v));
1679 }
1680
1681 // text-justify 1672 // text-justify
1682 static TextJustify InitialTextJustify() { return kTextJustifyAuto; } 1673 static TextJustify InitialTextJustify() { return kTextJustifyAuto; }
1683 TextJustify GetTextJustify() const { 1674 TextJustify GetTextJustify() const {
1684 return static_cast<TextJustify>(rare_inherited_data_->text_justify_); 1675 return static_cast<TextJustify>(rare_inherited_data_->text_justify_);
1685 } 1676 }
1686 void SetTextJustify(TextJustify v) { 1677 void SetTextJustify(TextJustify v) {
1687 SET_VAR(rare_inherited_data_, text_justify_, v); 1678 SET_VAR(rare_inherited_data_, text_justify_, v);
1688 } 1679 }
1689 1680
1690 // text-orientation (aka -webkit-text-orientation, -epub-text-orientation) 1681 // text-orientation (aka -webkit-text-orientation, -epub-text-orientation)
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
2194 } 2185 }
2195 } 2186 }
2196 void SetMaskBoxImage(const NinePieceImage& b) { 2187 void SetMaskBoxImage(const NinePieceImage& b) {
2197 SET_VAR(rare_non_inherited_data_, mask_box_image_, b); 2188 SET_VAR(rare_non_inherited_data_, mask_box_image_, b);
2198 } 2189 }
2199 void SetMaskBoxImageSlicesFill(bool fill) { 2190 void SetMaskBoxImageSlicesFill(bool fill) {
2200 rare_non_inherited_data_.Access()->mask_box_image_.SetFill(fill); 2191 rare_non_inherited_data_.Access()->mask_box_image_.SetFill(fill);
2201 } 2192 }
2202 2193
2203 // Text-combine utility functions. 2194 // Text-combine utility functions.
2204 bool HasTextCombine() const { return GetTextCombine() != TextCombine::kNone; } 2195 bool HasTextCombine() const { return TextCombine() != ETextCombine::kNone; }
2205 2196
2206 // Grid utility functions. 2197 // Grid utility functions.
2207 const Vector<GridTrackSize>& GridAutoRepeatColumns() const { 2198 const Vector<GridTrackSize>& GridAutoRepeatColumns() const {
2208 return rare_non_inherited_data_->grid_->grid_auto_repeat_columns_; 2199 return rare_non_inherited_data_->grid_->grid_auto_repeat_columns_;
2209 } 2200 }
2210 const Vector<GridTrackSize>& GridAutoRepeatRows() const { 2201 const Vector<GridTrackSize>& GridAutoRepeatRows() const {
2211 return rare_non_inherited_data_->grid_->grid_auto_repeat_rows_; 2202 return rare_non_inherited_data_->grid_->grid_auto_repeat_rows_;
2212 } 2203 }
2213 size_t GridAutoRepeatColumnsInsertionPoint() const { 2204 size_t GridAutoRepeatColumnsInsertionPoint() const {
2214 return rare_non_inherited_data_->grid_ 2205 return rare_non_inherited_data_->grid_
(...skipping 1417 matching lines...) Expand 10 before | Expand all | Expand 10 after
3632 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); 3623 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId)));
3633 } 3624 }
3634 3625
3635 inline bool ComputedStyle::HasPseudoElementStyle() const { 3626 inline bool ComputedStyle::HasPseudoElementStyle() const {
3636 return PseudoBitsInternal() & kElementPseudoIdMask; 3627 return PseudoBitsInternal() & kElementPseudoIdMask;
3637 } 3628 }
3638 3629
3639 } // namespace blink 3630 } // namespace blink
3640 3631
3641 #endif // ComputedStyle_h 3632 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698