| 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 GlobalPaintNormalPhase, | 227 GlobalPaintNormalPhase, |
| 228 PaintLayerPaintingRenderingResourceSubtree); | 228 PaintLayerPaintingRenderingResourceSubtree); |
| 229 item->paint(info, IntPoint()); | 229 item->paint(info, IntPoint()); |
| 230 } | 230 } |
| 231 | 231 |
| 232 bool SVGPaintContext::paintForLayoutObject( | 232 bool SVGPaintContext::paintForLayoutObject( |
| 233 const PaintInfo& paintInfo, | 233 const PaintInfo& paintInfo, |
| 234 const ComputedStyle& style, | 234 const ComputedStyle& style, |
| 235 const LayoutObject& layoutObject, | 235 const LayoutObject& layoutObject, |
| 236 LayoutSVGResourceMode resourceMode, | 236 LayoutSVGResourceMode resourceMode, |
| 237 SkPaint& paint, | 237 PaintFlags& paint, |
| 238 const AffineTransform* additionalPaintServerTransform) { | 238 const AffineTransform* additionalPaintServerTransform) { |
| 239 if (paintInfo.isRenderingClipPathAsMaskImage()) { | 239 if (paintInfo.isRenderingClipPathAsMaskImage()) { |
| 240 if (resourceMode == ApplyToStrokeMode) | 240 if (resourceMode == ApplyToStrokeMode) |
| 241 return false; | 241 return false; |
| 242 paint.setColor(SVGComputedStyle::initialFillPaintColor().rgb()); | 242 paint.setColor(SVGComputedStyle::initialFillPaintColor().rgb()); |
| 243 paint.setShader(nullptr); | 243 paint.setShader(nullptr); |
| 244 return true; | 244 return true; |
| 245 } | 245 } |
| 246 | 246 |
| 247 SVGPaintServer paintServer = | 247 SVGPaintServer paintServer = |
| (...skipping 22 matching lines...) Expand all Loading... |
| 270 // though. | 270 // though. |
| 271 // Additionally, it's not really safe/guaranteed to be correct, as | 271 // Additionally, it's not really safe/guaranteed to be correct, as |
| 272 // something down the paint pipe may want to farther tweak the color | 272 // something down the paint pipe may want to farther tweak the color |
| 273 // filter, which could yield incorrect results. (Consider just using | 273 // filter, which could yield incorrect results. (Consider just using |
| 274 // saveLayer() w/ this color filter explicitly instead.) | 274 // saveLayer() w/ this color filter explicitly instead.) |
| 275 paint.setColorFilter(sk_ref_sp(paintInfo.context.getColorFilter())); | 275 paint.setColorFilter(sk_ref_sp(paintInfo.context.getColorFilter())); |
| 276 return true; | 276 return true; |
| 277 } | 277 } |
| 278 | 278 |
| 279 } // namespace blink | 279 } // namespace blink |
| OLD | NEW |