OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008 Rob Buis <buis@kde.org> | 2 * Copyright (C) 2007, 2008 Rob Buis <buis@kde.org> |
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
5 * Copyright (C) 2009 Google, Inc. All rights reserved. | 5 * Copyright (C) 2009 Google, Inc. All rights reserved. |
6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
7 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 7 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 PaintInfo info(context, LayoutRect::infiniteIntRect(), PaintPhaseForeground, | 226 PaintInfo info(context, LayoutRect::infiniteIntRect(), PaintPhaseForeground, |
227 GlobalPaintNormalPhase, PaintLayerNoFlag); | 227 GlobalPaintNormalPhase, PaintLayerNoFlag); |
228 item->paint(info, IntPoint()); | 228 item->paint(info, IntPoint()); |
229 } | 229 } |
230 | 230 |
231 bool SVGPaintContext::paintForLayoutObject( | 231 bool SVGPaintContext::paintForLayoutObject( |
232 const PaintInfo& paintInfo, | 232 const PaintInfo& paintInfo, |
233 const ComputedStyle& style, | 233 const ComputedStyle& style, |
234 const LayoutObject& layoutObject, | 234 const LayoutObject& layoutObject, |
235 LayoutSVGResourceMode resourceMode, | 235 LayoutSVGResourceMode resourceMode, |
236 SkPaint& paint, | 236 PaintFlags& paint, |
237 const AffineTransform* additionalPaintServerTransform) { | 237 const AffineTransform* additionalPaintServerTransform) { |
238 if (paintInfo.isRenderingClipPathAsMaskImage()) { | 238 if (paintInfo.isRenderingClipPathAsMaskImage()) { |
239 if (resourceMode == ApplyToStrokeMode) | 239 if (resourceMode == ApplyToStrokeMode) |
240 return false; | 240 return false; |
241 paint.setColor(SVGComputedStyle::initialFillPaintColor().rgb()); | 241 paint.setColor(SVGComputedStyle::initialFillPaintColor().rgb()); |
242 paint.setShader(nullptr); | 242 paint.setShader(nullptr); |
243 return true; | 243 return true; |
244 } | 244 } |
245 | 245 |
246 SVGPaintServer paintServer = | 246 SVGPaintServer paintServer = |
(...skipping 22 matching lines...) Expand all Loading... |
269 // though. | 269 // though. |
270 // Additionally, it's not really safe/guaranteed to be correct, as | 270 // Additionally, it's not really safe/guaranteed to be correct, as |
271 // something down the paint pipe may want to farther tweak the color | 271 // something down the paint pipe may want to farther tweak the color |
272 // filter, which could yield incorrect results. (Consider just using | 272 // filter, which could yield incorrect results. (Consider just using |
273 // saveLayer() w/ this color filter explicitly instead.) | 273 // saveLayer() w/ this color filter explicitly instead.) |
274 paint.setColorFilter(sk_ref_sp(paintInfo.context.getColorFilter())); | 274 paint.setColorFilter(sk_ref_sp(paintInfo.context.getColorFilter())); |
275 return true; | 275 return true; |
276 } | 276 } |
277 | 277 |
278 } // namespace blink | 278 } // namespace blink |
OLD | NEW |