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

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

Issue 2909233002: Generate getters/setters for TextSizeAdjust. (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
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSProperties.json5 ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1722 matching lines...) Expand 10 before | Expand all | Expand 10 after
1733 1733
1734 // text-shadow 1734 // text-shadow
1735 static ShadowList* InitialTextShadow() { return 0; } 1735 static ShadowList* InitialTextShadow() { return 0; }
1736 ShadowList* TextShadow() const { 1736 ShadowList* TextShadow() const {
1737 return rare_inherited_data_->text_shadow_.Get(); 1737 return rare_inherited_data_->text_shadow_.Get();
1738 } 1738 }
1739 void SetTextShadow(RefPtr<ShadowList>); 1739 void SetTextShadow(RefPtr<ShadowList>);
1740 1740
1741 bool TextShadowDataEquivalent(const ComputedStyle&) const; 1741 bool TextShadowDataEquivalent(const ComputedStyle&) const;
1742 1742
1743 // text-size-adjust (aka -webkit-text-size-adjust)
1744 static TextSizeAdjust InitialTextSizeAdjust() {
1745 return TextSizeAdjust::AdjustAuto();
1746 }
1747 TextSizeAdjust GetTextSizeAdjust() const {
1748 return rare_inherited_data_->text_size_adjust_;
1749 }
1750 void SetTextSizeAdjust(TextSizeAdjust size_adjust) {
1751 SET_VAR(rare_inherited_data_, text_size_adjust_, size_adjust);
1752 }
1753
1754 // -webkit-line-break 1743 // -webkit-line-break
1755 static LineBreak InitialLineBreak() { return LineBreak::kAuto; } 1744 static LineBreak InitialLineBreak() { return LineBreak::kAuto; }
1756 LineBreak GetLineBreak() const { 1745 LineBreak GetLineBreak() const {
1757 return static_cast<LineBreak>(rare_inherited_data_->line_break_); 1746 return static_cast<LineBreak>(rare_inherited_data_->line_break_);
1758 } 1747 }
1759 void SetLineBreak(LineBreak b) { 1748 void SetLineBreak(LineBreak b) {
1760 SET_VAR(rare_inherited_data_, line_break_, static_cast<unsigned>(b)); 1749 SET_VAR(rare_inherited_data_, line_break_, static_cast<unsigned>(b));
1761 } 1750 }
1762 1751
1763 // Text emphasis properties. 1752 // Text emphasis properties.
(...skipping 1964 matching lines...) Expand 10 before | Expand all | Expand 10 after
3728 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); 3717 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId)));
3729 } 3718 }
3730 3719
3731 inline bool ComputedStyle::HasPseudoElementStyle() const { 3720 inline bool ComputedStyle::HasPseudoElementStyle() const {
3732 return PseudoBitsInternal() & kElementPseudoIdMask; 3721 return PseudoBitsInternal() & kElementPseudoIdMask;
3733 } 3722 }
3734 3723
3735 } // namespace blink 3724 } // namespace blink
3736 3725
3737 #endif // ComputedStyle_h 3726 #endif // ComputedStyle_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSProperties.json5 ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698