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

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

Issue 2915533002: Generate getters/setters for TapHighlightColor. (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 | « third_party/WebKit/Source/core/style/ComputedStyle.h ('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) 1999 Antti Koivisto (koivisto@kde.org) 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
4 * reserved. 4 * reserved.
5 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. 5 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 2180 matching lines...) Expand 10 before | Expand all | Expand 10 after
2191 static_cast<TextEmphasisMark>(rare_inherited_data_->text_emphasis_mark_); 2191 static_cast<TextEmphasisMark>(rare_inherited_data_->text_emphasis_mark_);
2192 if (mark != TextEmphasisMark::kAuto) 2192 if (mark != TextEmphasisMark::kAuto)
2193 return mark; 2193 return mark;
2194 2194
2195 if (IsHorizontalWritingMode()) 2195 if (IsHorizontalWritingMode())
2196 return TextEmphasisMark::kDot; 2196 return TextEmphasisMark::kDot;
2197 2197
2198 return TextEmphasisMark::kSesame; 2198 return TextEmphasisMark::kSesame;
2199 } 2199 }
2200 2200
2201 Color ComputedStyle::InitialTapHighlightColor() {
2202 return LayoutTheme::TapHighlightColor();
2203 }
2204
2205 const FilterOperations& ComputedStyle::InitialFilter() { 2201 const FilterOperations& ComputedStyle::InitialFilter() {
2206 DEFINE_STATIC_LOCAL(FilterOperationsWrapper, ops, 2202 DEFINE_STATIC_LOCAL(FilterOperationsWrapper, ops,
2207 (FilterOperationsWrapper::Create())); 2203 (FilterOperationsWrapper::Create()));
2208 return ops.Operations(); 2204 return ops.Operations();
2209 } 2205 }
2210 2206
2211 const FilterOperations& ComputedStyle::InitialBackdropFilter() { 2207 const FilterOperations& ComputedStyle::InitialBackdropFilter() {
2212 DEFINE_STATIC_LOCAL(FilterOperationsWrapper, ops, 2208 DEFINE_STATIC_LOCAL(FilterOperationsWrapper, ops,
2213 (FilterOperationsWrapper::Create())); 2209 (FilterOperationsWrapper::Create()));
2214 return ops.Operations(); 2210 return ops.Operations();
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
2338 if (value < 0) 2334 if (value < 0)
2339 fvalue -= 0.5f; 2335 fvalue -= 0.5f;
2340 else 2336 else
2341 fvalue += 0.5f; 2337 fvalue += 0.5f;
2342 } 2338 }
2343 2339
2344 return RoundForImpreciseConversion<int>(fvalue / zoom_factor); 2340 return RoundForImpreciseConversion<int>(fvalue / zoom_factor);
2345 } 2341 }
2346 2342
2347 } // namespace blink 2343 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698