Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
1 /*
2 * Copyright 2012 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
8 #ifndef SkPaintDefaults_DEFINED
9 #define SkPaintDefaults_DEFINED
11 #include "SkPaint.h"
13 /**
14 * Any of these can be specified by the build system (or SkUserConfig.h)
15 * to change the default values for a SkPaint. This file should not be
16 * edited directly.
17 */
19 #ifndef SkPaintDefaults_Flags
20 #define SkPaintDefaults_Flags 0
21 #endif
23 #ifndef SkPaintDefaults_TextSize
24 #define SkPaintDefaults_TextSize SkIntToScalar(12)
25 #endif
27 #ifndef SkPaintDefaults_Hinting
28 #define SkPaintDefaults_Hinting SkPaint::kNormal_Hinting
29 #endif
31 #ifndef SkPaintDefaults_MiterLimit
32 #define SkPaintDefaults_MiterLimit SkIntToScalar(4)
33 #endif
35 #endif