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

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

Issue 2905203002: Make TextIndentLine an enum class. (Closed)
Patch Set: 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 1646 matching lines...) Expand 10 before | Expand all | Expand 10 after
1657 static TextCombine InitialTextCombine() { return kTextCombineNone; } 1657 static TextCombine InitialTextCombine() { return kTextCombineNone; }
1658 TextCombine GetTextCombine() const { 1658 TextCombine GetTextCombine() const {
1659 return static_cast<TextCombine>(rare_inherited_data_->text_combine_); 1659 return static_cast<TextCombine>(rare_inherited_data_->text_combine_);
1660 } 1660 }
1661 void SetTextCombine(TextCombine v) { 1661 void SetTextCombine(TextCombine v) {
1662 SET_VAR(rare_inherited_data_, text_combine_, v); 1662 SET_VAR(rare_inherited_data_, text_combine_, v);
1663 } 1663 }
1664 1664
1665 // text-indent 1665 // text-indent
1666 static Length InitialTextIndent() { return Length(kFixed); } 1666 static Length InitialTextIndent() { return Length(kFixed); }
1667 static TextIndentLine InitialTextIndentLine() { return kTextIndentFirstLine; } 1667 static TextIndentLine InitialTextIndentLine() {
1668 return TextIndentLine::kFirstLine;
1669 }
1668 static TextIndentType InitialTextIndentType() { return kTextIndentNormal; } 1670 static TextIndentType InitialTextIndentType() { return kTextIndentNormal; }
1669 const Length& TextIndent() const { 1671 const Length& TextIndent() const {
1670 return rare_inherited_data_->text_indent_; 1672 return rare_inherited_data_->text_indent_;
1671 } 1673 }
1672 TextIndentLine GetTextIndentLine() const { 1674 TextIndentLine GetTextIndentLine() const {
1673 return static_cast<TextIndentLine>(rare_inherited_data_->text_indent_line_); 1675 return static_cast<TextIndentLine>(rare_inherited_data_->text_indent_line_);
1674 } 1676 }
1675 TextIndentType GetTextIndentType() const { 1677 TextIndentType GetTextIndentType() const {
1676 return static_cast<TextIndentType>(rare_inherited_data_->text_indent_type_); 1678 return static_cast<TextIndentType>(rare_inherited_data_->text_indent_type_);
1677 } 1679 }
1678 void SetTextIndent(const Length& v) { 1680 void SetTextIndent(const Length& v) {
1679 SET_VAR(rare_inherited_data_, text_indent_, v); 1681 SET_VAR(rare_inherited_data_, text_indent_, v);
1680 } 1682 }
1681 void SetTextIndentLine(TextIndentLine v) { 1683 void SetTextIndentLine(TextIndentLine v) {
1682 SET_VAR(rare_inherited_data_, text_indent_line_, v); 1684 SET_VAR(rare_inherited_data_, text_indent_line_, static_cast<unsigned>(v));
1683 } 1685 }
1684 void SetTextIndentType(TextIndentType v) { 1686 void SetTextIndentType(TextIndentType v) {
1685 SET_VAR(rare_inherited_data_, text_indent_type_, v); 1687 SET_VAR(rare_inherited_data_, text_indent_type_, v);
1686 } 1688 }
1687 1689
1688 // text-justify 1690 // text-justify
1689 static TextJustify InitialTextJustify() { return kTextJustifyAuto; } 1691 static TextJustify InitialTextJustify() { return kTextJustifyAuto; }
1690 TextJustify GetTextJustify() const { 1692 TextJustify GetTextJustify() const {
1691 return static_cast<TextJustify>(rare_inherited_data_->text_justify_); 1693 return static_cast<TextJustify>(rare_inherited_data_->text_justify_);
1692 } 1694 }
(...skipping 2052 matching lines...) Expand 10 before | Expand all | Expand 10 after
3745 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); 3747 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId)));
3746 } 3748 }
3747 3749
3748 inline bool ComputedStyle::HasPseudoElementStyle() const { 3750 inline bool ComputedStyle::HasPseudoElementStyle() const {
3749 return PseudoBitsInternal() & kElementPseudoIdMask; 3751 return PseudoBitsInternal() & kElementPseudoIdMask;
3750 } 3752 }
3751 3753
3752 } // namespace blink 3754 } // namespace blink
3753 3755
3754 #endif // ComputedStyle_h 3756 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698