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

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

Issue 2915543002: Generate enum/getters/setters/mappings for text-align-last. (Closed)
Patch Set: Rebase 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 1649 matching lines...) Expand 10 before | Expand all | Expand 10 after
1660 StyleImage* ListStyleImage() const; 1660 StyleImage* ListStyleImage() const;
1661 void SetListStyleImage(StyleImage*); 1661 void SetListStyleImage(StyleImage*);
1662 1662
1663 // quotes 1663 // quotes
1664 static QuotesData* InitialQuotes() { return 0; } 1664 static QuotesData* InitialQuotes() { return 0; }
1665 QuotesData* Quotes() const { return rare_inherited_data_->quotes_.Get(); } 1665 QuotesData* Quotes() const { return rare_inherited_data_->quotes_.Get(); }
1666 void SetQuotes(RefPtr<QuotesData>); 1666 void SetQuotes(RefPtr<QuotesData>);
1667 1667
1668 bool QuotesDataEquivalent(const ComputedStyle&) const; 1668 bool QuotesDataEquivalent(const ComputedStyle&) const;
1669 1669
1670 // text-align-last
1671 static TextAlignLast InitialTextAlignLast() { return TextAlignLast::kAuto; }
1672 TextAlignLast GetTextAlignLast() const {
1673 return static_cast<TextAlignLast>(rare_inherited_data_->text_align_last_);
1674 }
1675 void SetTextAlignLast(TextAlignLast v) {
1676 SET_VAR(rare_inherited_data_, text_align_last_, static_cast<unsigned>(v));
1677 }
1678
1679 // text-combine-upright (aka -webkit-text-combine, -epub-text-combine) 1670 // text-combine-upright (aka -webkit-text-combine, -epub-text-combine)
1680 static TextCombine InitialTextCombine() { return kTextCombineNone; } 1671 static TextCombine InitialTextCombine() { return kTextCombineNone; }
1681 TextCombine GetTextCombine() const { 1672 TextCombine GetTextCombine() const {
1682 return static_cast<TextCombine>(rare_inherited_data_->text_combine_); 1673 return static_cast<TextCombine>(rare_inherited_data_->text_combine_);
1683 } 1674 }
1684 void SetTextCombine(TextCombine v) { 1675 void SetTextCombine(TextCombine v) {
1685 SET_VAR(rare_inherited_data_, text_combine_, v); 1676 SET_VAR(rare_inherited_data_, text_combine_, v);
1686 } 1677 }
1687 1678
1688 // text-indent 1679 // text-indent
(...skipping 2039 matching lines...) Expand 10 before | Expand all | Expand 10 after
3728 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); 3719 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId)));
3729 } 3720 }
3730 3721
3731 inline bool ComputedStyle::HasPseudoElementStyle() const { 3722 inline bool ComputedStyle::HasPseudoElementStyle() const {
3732 return PseudoBitsInternal() & kElementPseudoIdMask; 3723 return PseudoBitsInternal() & kElementPseudoIdMask;
3733 } 3724 }
3734 3725
3735 } // namespace blink 3726 } // namespace blink
3736 3727
3737 #endif // ComputedStyle_h 3728 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698