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

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

Issue 2910113003: Remove unused word-break getters/setters. (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
« no previous file with comments | « no previous file | 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 1749 matching lines...) Expand 10 before | Expand all | Expand 10 after
1760 static TextSizeAdjust InitialTextSizeAdjust() { 1760 static TextSizeAdjust InitialTextSizeAdjust() {
1761 return TextSizeAdjust::AdjustAuto(); 1761 return TextSizeAdjust::AdjustAuto();
1762 } 1762 }
1763 TextSizeAdjust GetTextSizeAdjust() const { 1763 TextSizeAdjust GetTextSizeAdjust() const {
1764 return rare_inherited_data_->text_size_adjust_; 1764 return rare_inherited_data_->text_size_adjust_;
1765 } 1765 }
1766 void SetTextSizeAdjust(TextSizeAdjust size_adjust) { 1766 void SetTextSizeAdjust(TextSizeAdjust size_adjust) {
1767 SET_VAR(rare_inherited_data_, text_size_adjust_, size_adjust); 1767 SET_VAR(rare_inherited_data_, text_size_adjust_, size_adjust);
1768 } 1768 }
1769 1769
1770 // word-break inherited (aka -epub-word-break)
1771 static EWordBreak InitialWordBreak() { return EWordBreak::kNormal; }
1772 EWordBreak WordBreak() const {
1773 return static_cast<EWordBreak>(rare_inherited_data_->word_break_);
1774 }
1775 void SetWordBreak(EWordBreak b) {
1776 SET_VAR(rare_inherited_data_, word_break_, static_cast<unsigned>(b));
1777 }
1778
1779 // -webkit-line-break 1770 // -webkit-line-break
1780 static LineBreak InitialLineBreak() { return LineBreak::kAuto; } 1771 static LineBreak InitialLineBreak() { return LineBreak::kAuto; }
1781 LineBreak GetLineBreak() const { 1772 LineBreak GetLineBreak() const {
1782 return static_cast<LineBreak>(rare_inherited_data_->line_break_); 1773 return static_cast<LineBreak>(rare_inherited_data_->line_break_);
1783 } 1774 }
1784 void SetLineBreak(LineBreak b) { 1775 void SetLineBreak(LineBreak b) {
1785 SET_VAR(rare_inherited_data_, line_break_, static_cast<unsigned>(b)); 1776 SET_VAR(rare_inherited_data_, line_break_, static_cast<unsigned>(b));
1786 } 1777 }
1787 1778
1788 // Text emphasis properties. 1779 // Text emphasis properties.
(...skipping 1990 matching lines...) Expand 10 before | Expand all | Expand 10 after
3779 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); 3770 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId)));
3780 } 3771 }
3781 3772
3782 inline bool ComputedStyle::HasPseudoElementStyle() const { 3773 inline bool ComputedStyle::HasPseudoElementStyle() const {
3783 return PseudoBitsInternal() & kElementPseudoIdMask; 3774 return PseudoBitsInternal() & kElementPseudoIdMask;
3784 } 3775 }
3785 3776
3786 } // namespace blink 3777 } // namespace blink
3787 3778
3788 #endif // ComputedStyle_h 3779 #endif // ComputedStyle_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698