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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
4 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) 5 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
7 * All rights reserved. 7 * All rights reserved.
8 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 8 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
9 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 9 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
10 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 10 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
(...skipping 20 matching lines...) Expand all
31 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 31 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
32 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 32 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
33 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 33 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
34 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 34 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 35 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 36 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 37 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 38 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39 */ 39 */
40 40
41 #include <memory>
41 #include "core/CSSPropertyNames.h" 42 #include "core/CSSPropertyNames.h"
42 #include "core/CSSValueKeywords.h" 43 #include "core/CSSValueKeywords.h"
43 #include "core/StyleBuilderFunctions.h" 44 #include "core/StyleBuilderFunctions.h"
44 #include "core/StylePropertyShorthand.h" 45 #include "core/StylePropertyShorthand.h"
45 #include "core/animation/css/CSSAnimations.h" 46 #include "core/animation/css/CSSAnimations.h"
46 #include "core/css/CSSCounterValue.h" 47 #include "core/css/CSSCounterValue.h"
47 #include "core/css/CSSCursorImageValue.h" 48 #include "core/css/CSSCursorImageValue.h"
48 #include "core/css/CSSCustomPropertyDeclaration.h" 49 #include "core/css/CSSCustomPropertyDeclaration.h"
49 #include "core/css/CSSFunctionValue.h" 50 #include "core/css/CSSFunctionValue.h"
50 #include "core/css/CSSGridTemplateAreasValue.h" 51 #include "core/css/CSSGridTemplateAreasValue.h"
(...skipping 21 matching lines...) Expand all
72 #include "core/style/QuotesData.h" 73 #include "core/style/QuotesData.h"
73 #include "core/style/SVGComputedStyle.h" 74 #include "core/style/SVGComputedStyle.h"
74 #include "core/style/StyleGeneratedImage.h" 75 #include "core/style/StyleGeneratedImage.h"
75 #include "core/style/StyleInheritedVariables.h" 76 #include "core/style/StyleInheritedVariables.h"
76 #include "core/style/StyleNonInheritedVariables.h" 77 #include "core/style/StyleNonInheritedVariables.h"
77 #include "platform/fonts/FontDescription.h" 78 #include "platform/fonts/FontDescription.h"
78 #include "wtf/MathExtras.h" 79 #include "wtf/MathExtras.h"
79 #include "wtf/PtrUtil.h" 80 #include "wtf/PtrUtil.h"
80 #include "wtf/StdLibExtras.h" 81 #include "wtf/StdLibExtras.h"
81 #include "wtf/Vector.h" 82 #include "wtf/Vector.h"
82 #include <memory>
83 83
84 namespace blink { 84 namespace blink {
85 85
86 namespace { 86 namespace {
87 87
88 static inline bool isValidVisitedLinkProperty(CSSPropertyID id) { 88 static inline bool isValidVisitedLinkProperty(CSSPropertyID id) {
89 switch (id) { 89 switch (id) {
90 case CSSPropertyBackgroundColor: 90 case CSSPropertyBackgroundColor:
91 case CSSPropertyBorderLeftColor: 91 case CSSPropertyBorderLeftColor:
92 case CSSPropertyBorderRightColor: 92 case CSSPropertyBorderRightColor:
(...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after
1029 state.style()->setCaretColor( 1029 state.style()->setCaretColor(
1030 StyleBuilderConverter::convertStyleAutoColor(state, value)); 1030 StyleBuilderConverter::convertStyleAutoColor(state, value));
1031 } 1031 }
1032 if (state.applyPropertyToVisitedLinkStyle()) { 1032 if (state.applyPropertyToVisitedLinkStyle()) {
1033 state.style()->setVisitedLinkCaretColor( 1033 state.style()->setVisitedLinkCaretColor(
1034 StyleBuilderConverter::convertStyleAutoColor(state, value, true)); 1034 StyleBuilderConverter::convertStyleAutoColor(state, value, true));
1035 } 1035 }
1036 } 1036 }
1037 1037
1038 } // namespace blink 1038 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698