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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 bool SVGPaintContext::isIsolationInstalled() const { | 211 bool SVGPaintContext::isIsolationInstalled() const { |
212 if (m_compositingRecorder) | 212 if (m_compositingRecorder) |
213 return true; | 213 return true; |
214 if (m_masker || m_filter) | 214 if (m_masker || m_filter) |
215 return true; | 215 return true; |
216 if (m_clipPathClipper && m_clipPathClipper->usingMask()) | 216 if (m_clipPathClipper && m_clipPathClipper->usingMask()) |
217 return true; | 217 return true; |
218 return false; | 218 return false; |
219 } | 219 } |
220 | 220 |
221 void SVGPaintContext::paintSubtree(GraphicsContext& context, | 221 void SVGPaintContext::paintResourceSubtree(GraphicsContext& context, |
222 const LayoutObject* item) { | 222 const LayoutObject* item) { |
223 DCHECK(item); | 223 DCHECK(item); |
224 DCHECK(!item->needsLayout()); | 224 DCHECK(!item->needsLayout()); |
225 | 225 |
226 PaintInfo info(context, LayoutRect::infiniteIntRect(), PaintPhaseForeground, | 226 PaintInfo info(context, LayoutRect::infiniteIntRect(), PaintPhaseForeground, |
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( |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 flags pipe may want to farther tweak the color | 272 // something down the flags 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 flags.setColorFilter(sk_ref_sp(paintInfo.context.getColorFilter())); | 275 flags.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 |