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

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

Issue 2868783005: Make ETextSecurity an enum class. (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
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 1984 matching lines...) Expand 10 before | Expand all | Expand 10 after
1995 SET_VAR(rare_inherited_data_, tap_highlight_color_, c); 1995 SET_VAR(rare_inherited_data_, tap_highlight_color_, c);
1996 } 1996 }
1997 1997
1998 // -webkit-text-fill-color 1998 // -webkit-text-fill-color
1999 void SetTextFillColor(const StyleColor& c) { 1999 void SetTextFillColor(const StyleColor& c) {
2000 SET_VAR_WITH_SETTER(rare_inherited_data_, TextFillColor, SetTextFillColor, 2000 SET_VAR_WITH_SETTER(rare_inherited_data_, TextFillColor, SetTextFillColor,
2001 c); 2001 c);
2002 } 2002 }
2003 2003
2004 // -webkit-text-security 2004 // -webkit-text-security
2005 static ETextSecurity InitialTextSecurity() { return TSNONE; } 2005 static ETextSecurity InitialTextSecurity() { return ETextSecurity::kNone; }
2006 ETextSecurity TextSecurity() const { 2006 ETextSecurity TextSecurity() const {
2007 return static_cast<ETextSecurity>(rare_inherited_data_->text_security_); 2007 return static_cast<ETextSecurity>(rare_inherited_data_->text_security_);
2008 } 2008 }
2009 void SetTextSecurity(ETextSecurity a_text_security) { 2009 void SetTextSecurity(ETextSecurity a_text_security) {
2010 SET_VAR(rare_inherited_data_, text_security_, a_text_security); 2010 SET_VAR(rare_inherited_data_, text_security_,
2011 static_cast<unsigned>(a_text_security));
2011 } 2012 }
2012 2013
2013 // -webkit-text-stroke-color 2014 // -webkit-text-stroke-color
2014 void SetTextStrokeColor(const StyleColor& c) { 2015 void SetTextStrokeColor(const StyleColor& c) {
2015 SET_VAR_WITH_SETTER(rare_inherited_data_, TextStrokeColor, 2016 SET_VAR_WITH_SETTER(rare_inherited_data_, TextStrokeColor,
2016 SetTextStrokeColor, c); 2017 SetTextStrokeColor, c);
2017 } 2018 }
2018 2019
2019 // -webkit-text-stroke-width 2020 // -webkit-text-stroke-width
2020 static float InitialTextStrokeWidth() { return 0; } 2021 static float InitialTextStrokeWidth() { return 0; }
(...skipping 1798 matching lines...) Expand 10 before | Expand all | Expand 10 after
3819 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); 3820 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId)));
3820 } 3821 }
3821 3822
3822 inline bool ComputedStyle::HasPseudoElementStyle() const { 3823 inline bool ComputedStyle::HasPseudoElementStyle() const {
3823 return PseudoBitsInternal() & kElementPseudoIdMask; 3824 return PseudoBitsInternal() & kElementPseudoIdMask;
3824 } 3825 }
3825 3826
3826 } // namespace blink 3827 } // namespace blink
3827 3828
3828 #endif // ComputedStyle_h 3829 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698