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

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

Issue 2895143002: Generate getters/setters for line-step-height. (Closed)
Patch Set: Rebase Created 3 years, 7 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 1635 matching lines...) Expand 10 before | Expand all | Expand 10 after
1646 SET_VAR(rare_inherited_data_, overflow_wrap_, static_cast<unsigned>(b)); 1646 SET_VAR(rare_inherited_data_, overflow_wrap_, static_cast<unsigned>(b));
1647 } 1647 }
1648 1648
1649 // quotes 1649 // quotes
1650 static QuotesData* InitialQuotes() { return 0; } 1650 static QuotesData* InitialQuotes() { return 0; }
1651 QuotesData* Quotes() const { return rare_inherited_data_->quotes_.Get(); } 1651 QuotesData* Quotes() const { return rare_inherited_data_->quotes_.Get(); }
1652 void SetQuotes(RefPtr<QuotesData>); 1652 void SetQuotes(RefPtr<QuotesData>);
1653 1653
1654 bool QuotesDataEquivalent(const ComputedStyle&) const; 1654 bool QuotesDataEquivalent(const ComputedStyle&) const;
1655 1655
1656 // line-height-step
1657 static uint8_t InitialLineHeightStep() { return 0; }
1658 uint8_t LineHeightStep() const {
1659 return rare_inherited_data_->line_height_step_;
1660 }
1661 void SetLineHeightStep(uint8_t unit) {
1662 SET_VAR(rare_inherited_data_, line_height_step_, unit);
1663 }
1664
1665 // speak 1656 // speak
1666 static ESpeak InitialSpeak() { return ESpeak::kNormal; } 1657 static ESpeak InitialSpeak() { return ESpeak::kNormal; }
1667 ESpeak Speak() const { 1658 ESpeak Speak() const {
1668 return static_cast<ESpeak>(rare_inherited_data_->speak_); 1659 return static_cast<ESpeak>(rare_inherited_data_->speak_);
1669 } 1660 }
1670 void SetSpeak(ESpeak s) { 1661 void SetSpeak(ESpeak s) {
1671 SET_VAR(rare_inherited_data_, speak_, static_cast<unsigned>(s)); 1662 SET_VAR(rare_inherited_data_, speak_, static_cast<unsigned>(s));
1672 } 1663 }
1673 1664
1674 // tab-size 1665 // tab-size
(...skipping 2103 matching lines...) Expand 10 before | Expand all | Expand 10 after
3778 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); 3769 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId)));
3779 } 3770 }
3780 3771
3781 inline bool ComputedStyle::HasPseudoElementStyle() const { 3772 inline bool ComputedStyle::HasPseudoElementStyle() const {
3782 return PseudoBitsInternal() & kElementPseudoIdMask; 3773 return PseudoBitsInternal() & kElementPseudoIdMask;
3783 } 3774 }
3784 3775
3785 } // namespace blink 3776 } // namespace blink
3786 3777
3787 #endif // ComputedStyle_h 3778 #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