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.
michael@0 | 1 | |
michael@0 | 2 | /* |
michael@0 | 3 | * Copyright 2006 The Android Open Source Project |
michael@0 | 4 | * |
michael@0 | 5 | * Use of this source code is governed by a BSD-style license that can be |
michael@0 | 6 | * found in the LICENSE file. |
michael@0 | 7 | */ |
michael@0 | 8 | |
michael@0 | 9 | |
michael@0 | 10 | #include "SkSVGGroup.h" |
michael@0 | 11 | #include "SkSVGParser.h" |
michael@0 | 12 | |
michael@0 | 13 | SkSVGGroup::SkSVGGroup() { |
michael@0 | 14 | fIsNotDef = false; |
michael@0 | 15 | } |
michael@0 | 16 | |
michael@0 | 17 | SkSVGElement* SkSVGGroup::getGradient() { |
michael@0 | 18 | for (SkSVGElement** ptr = fChildren.begin(); ptr < fChildren.end(); ptr++) { |
michael@0 | 19 | SkSVGElement* result = (*ptr)->getGradient(); |
michael@0 | 20 | if (result != NULL) |
michael@0 | 21 | return result; |
michael@0 | 22 | } |
michael@0 | 23 | return NULL; |
michael@0 | 24 | } |
michael@0 | 25 | |
michael@0 | 26 | bool SkSVGGroup::isDef() { |
michael@0 | 27 | return fParent ? fParent->isDef() : false; |
michael@0 | 28 | } |
michael@0 | 29 | |
michael@0 | 30 | bool SkSVGGroup::isFlushable() { |
michael@0 | 31 | return false; |
michael@0 | 32 | } |
michael@0 | 33 | |
michael@0 | 34 | bool SkSVGGroup::isGroup() { |
michael@0 | 35 | return true; |
michael@0 | 36 | } |
michael@0 | 37 | |
michael@0 | 38 | bool SkSVGGroup::isNotDef() { |
michael@0 | 39 | return fParent ? fParent->isNotDef() : false; |
michael@0 | 40 | } |
michael@0 | 41 | |
michael@0 | 42 | void SkSVGGroup::translate(SkSVGParser& parser, bool defState) { |
michael@0 | 43 | for (SkSVGElement** ptr = fChildren.begin(); ptr < fChildren.end(); ptr++) |
michael@0 | 44 | parser.translate(*ptr, defState); |
michael@0 | 45 | } |