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

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

Issue 2911383002: Generate enum/getters/setters/mappings for line-break. (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 1687 matching lines...) Expand 10 before | Expand all | Expand 10 after
1698 1698
1699 // text-shadow 1699 // text-shadow
1700 static ShadowList* InitialTextShadow() { return 0; } 1700 static ShadowList* InitialTextShadow() { return 0; }
1701 ShadowList* TextShadow() const { 1701 ShadowList* TextShadow() const {
1702 return rare_inherited_data_->text_shadow_.Get(); 1702 return rare_inherited_data_->text_shadow_.Get();
1703 } 1703 }
1704 void SetTextShadow(RefPtr<ShadowList>); 1704 void SetTextShadow(RefPtr<ShadowList>);
1705 1705
1706 bool TextShadowDataEquivalent(const ComputedStyle&) const; 1706 bool TextShadowDataEquivalent(const ComputedStyle&) const;
1707 1707
1708 // -webkit-line-break
1709 static LineBreak InitialLineBreak() { return LineBreak::kAuto; }
1710 LineBreak GetLineBreak() const {
1711 return static_cast<LineBreak>(rare_inherited_data_->line_break_);
1712 }
1713 void SetLineBreak(LineBreak b) {
1714 SET_VAR(rare_inherited_data_, line_break_, static_cast<unsigned>(b));
1715 }
1716
1717 // Text emphasis properties. 1708 // Text emphasis properties.
1718 static TextEmphasisFill InitialTextEmphasisFill() { 1709 static TextEmphasisFill InitialTextEmphasisFill() {
1719 return TextEmphasisFill::kFilled; 1710 return TextEmphasisFill::kFilled;
1720 } 1711 }
1721 static TextEmphasisMark InitialTextEmphasisMark() { 1712 static TextEmphasisMark InitialTextEmphasisMark() {
1722 return TextEmphasisMark::kNone; 1713 return TextEmphasisMark::kNone;
1723 } 1714 }
1724 static const AtomicString& InitialTextEmphasisCustomMark() { 1715 static const AtomicString& InitialTextEmphasisCustomMark() {
1725 return g_null_atom; 1716 return g_null_atom;
1726 } 1717 }
(...skipping 1956 matching lines...) Expand 10 before | Expand all | Expand 10 after
3683 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); 3674 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId)));
3684 } 3675 }
3685 3676
3686 inline bool ComputedStyle::HasPseudoElementStyle() const { 3677 inline bool ComputedStyle::HasPseudoElementStyle() const {
3687 return PseudoBitsInternal() & kElementPseudoIdMask; 3678 return PseudoBitsInternal() & kElementPseudoIdMask;
3688 } 3679 }
3689 3680
3690 } // namespace blink 3681 } // namespace blink
3691 3682
3692 #endif // ComputedStyle_h 3683 #endif // ComputedStyle_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSProperties.json5 ('k') | third_party/WebKit/Source/core/style/ComputedStyleConstants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698