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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePaintServer.cpp

Issue 2633633003: Changed EInsideLink to an enum class with an unsigned type. (Closed)
Patch Set: Rebase. Created 3 years, 11 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) 2006 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> 4 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org>
5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2010. 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 break; 89 break;
90 case SVG_PAINTTYPE_RGBCOLOR: 90 case SVG_PAINTTYPE_RGBCOLOR:
91 case SVG_PAINTTYPE_URI_RGBCOLOR: 91 case SVG_PAINTTYPE_URI_RGBCOLOR:
92 color = 92 color =
93 applyToFill ? svgStyle.fillPaintColor() : svgStyle.strokePaintColor(); 93 applyToFill ? svgStyle.fillPaintColor() : svgStyle.strokePaintColor();
94 hasColor = true; 94 hasColor = true;
95 default: 95 default:
96 break; 96 break;
97 } 97 }
98 98
99 if (style.insideLink() == InsideVisitedLink) { 99 if (style.insideLink() == EInsideLink::kInsideVisitedLink) {
100 // FIXME: This code doesn't support the uri component of the visited link 100 // FIXME: This code doesn't support the uri component of the visited link
101 // paint, https://bugs.webkit.org/show_bug.cgi?id=70006 101 // paint, https://bugs.webkit.org/show_bug.cgi?id=70006
102 SVGPaintType visitedPaintType = applyToFill 102 SVGPaintType visitedPaintType = applyToFill
103 ? svgStyle.visitedLinkFillPaintType() 103 ? svgStyle.visitedLinkFillPaintType()
104 : svgStyle.visitedLinkStrokePaintType(); 104 : svgStyle.visitedLinkStrokePaintType();
105 105
106 // For SVG_PAINTTYPE_CURRENTCOLOR, 'color' already contains the 106 // For SVG_PAINTTYPE_CURRENTCOLOR, 'color' already contains the
107 // 'visitedColor'. 107 // 'visitedColor'.
108 if (visitedPaintType < SVG_PAINTTYPE_URI_NONE && 108 if (visitedPaintType < SVG_PAINTTYPE_URI_NONE &&
109 visitedPaintType != SVG_PAINTTYPE_CURRENTCOLOR) { 109 visitedPaintType != SVG_PAINTTYPE_CURRENTCOLOR) {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 LayoutSVGResourcePaintServer::~LayoutSVGResourcePaintServer() {} 182 LayoutSVGResourcePaintServer::~LayoutSVGResourcePaintServer() {}
183 183
184 SVGPaintDescription LayoutSVGResourcePaintServer::requestPaintDescription( 184 SVGPaintDescription LayoutSVGResourcePaintServer::requestPaintDescription(
185 const LayoutObject& layoutObject, 185 const LayoutObject& layoutObject,
186 const ComputedStyle& style, 186 const ComputedStyle& style,
187 LayoutSVGResourceMode resourceMode) { 187 LayoutSVGResourceMode resourceMode) {
188 return requestPaint(layoutObject, style, resourceMode); 188 return requestPaint(layoutObject, style, resourceMode);
189 } 189 }
190 190
191 } // namespace blink 191 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/VisitedLinkState.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698