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

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

Issue 2913713002: Remove unused text-security 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 1853 matching lines...) Expand 10 before | Expand all | Expand 10 after
1864 SET_VAR(rare_inherited_data_, tap_highlight_color_, c); 1864 SET_VAR(rare_inherited_data_, tap_highlight_color_, c);
1865 } 1865 }
1866 1866
1867 // -webkit-text-fill-color 1867 // -webkit-text-fill-color
1868 void SetTextFillColor(const StyleColor& color) { 1868 void SetTextFillColor(const StyleColor& color) {
1869 SET_VAR(rare_inherited_data_, text_fill_color_, color.Resolve(Color())); 1869 SET_VAR(rare_inherited_data_, text_fill_color_, color.Resolve(Color()));
1870 SET_VAR(rare_inherited_data_, text_fill_color_is_current_color_, 1870 SET_VAR(rare_inherited_data_, text_fill_color_is_current_color_,
1871 color.IsCurrentColor()); 1871 color.IsCurrentColor());
1872 } 1872 }
1873 1873
1874 // -webkit-text-security
1875 static ETextSecurity InitialTextSecurity() { return ETextSecurity::kNone; }
1876 ETextSecurity TextSecurity() const {
1877 return static_cast<ETextSecurity>(rare_inherited_data_->text_security_);
1878 }
1879 void SetTextSecurity(ETextSecurity a_text_security) {
1880 SET_VAR(rare_inherited_data_, text_security_,
1881 static_cast<unsigned>(a_text_security));
1882 }
1883
1884 // -webkit-text-stroke-color 1874 // -webkit-text-stroke-color
1885 void SetTextStrokeColor(const StyleColor& color) { 1875 void SetTextStrokeColor(const StyleColor& color) {
1886 SET_VAR(rare_inherited_data_, text_stroke_color_, color.Resolve(Color())); 1876 SET_VAR(rare_inherited_data_, text_stroke_color_, color.Resolve(Color()));
1887 SET_VAR(rare_inherited_data_, text_stroke_color_is_current_color_, 1877 SET_VAR(rare_inherited_data_, text_stroke_color_is_current_color_,
1888 color.IsCurrentColor()); 1878 color.IsCurrentColor());
1889 } 1879 }
1890 1880
1891 // -webkit-text-stroke-width 1881 // -webkit-text-stroke-width
1892 static float InitialTextStrokeWidth() { return 0; } 1882 static float InitialTextStrokeWidth() { return 0; }
1893 float TextStrokeWidth() const { 1883 float TextStrokeWidth() const {
(...skipping 1885 matching lines...) Expand 10 before | Expand all | Expand 10 after
3779 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); 3769 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId)));
3780 } 3770 }
3781 3771
3782 inline bool ComputedStyle::HasPseudoElementStyle() const { 3772 inline bool ComputedStyle::HasPseudoElementStyle() const {
3783 return PseudoBitsInternal() & kElementPseudoIdMask; 3773 return PseudoBitsInternal() & kElementPseudoIdMask;
3784 } 3774 }
3785 3775
3786 } // namespace blink 3776 } // namespace blink
3787 3777
3788 #endif // ComputedStyle_h 3778 #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