| 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 12 matching lines...) Expand all Loading... |
| 23 */ | 23 */ |
| 24 | 24 |
| 25 #include "core/paint/SVGPaintContext.h" | 25 #include "core/paint/SVGPaintContext.h" |
| 26 | 26 |
| 27 #include "core/layout/svg/LayoutSVGResourceFilter.h" | 27 #include "core/layout/svg/LayoutSVGResourceFilter.h" |
| 28 #include "core/layout/svg/LayoutSVGResourceMasker.h" | 28 #include "core/layout/svg/LayoutSVGResourceMasker.h" |
| 29 #include "core/layout/svg/SVGLayoutSupport.h" | 29 #include "core/layout/svg/SVGLayoutSupport.h" |
| 30 #include "core/layout/svg/SVGResources.h" | 30 #include "core/layout/svg/SVGResources.h" |
| 31 #include "core/layout/svg/SVGResourcesCache.h" | 31 #include "core/layout/svg/SVGResourcesCache.h" |
| 32 #include "core/paint/SVGMaskPainter.h" | 32 #include "core/paint/SVGMaskPainter.h" |
| 33 #include "wtf/PtrUtil.h" | 33 #include "platform/wtf/PtrUtil.h" |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 | 36 |
| 37 SVGPaintContext::~SVGPaintContext() { | 37 SVGPaintContext::~SVGPaintContext() { |
| 38 if (filter_) { | 38 if (filter_) { |
| 39 DCHECK(SVGResourcesCache::CachedResourcesForLayoutObject(&object_)); | 39 DCHECK(SVGResourcesCache::CachedResourcesForLayoutObject(&object_)); |
| 40 DCHECK( | 40 DCHECK( |
| 41 SVGResourcesCache::CachedResourcesForLayoutObject(&object_)->Filter() == | 41 SVGResourcesCache::CachedResourcesForLayoutObject(&object_)->Filter() == |
| 42 filter_); | 42 filter_); |
| 43 DCHECK(filter_recording_context_); | 43 DCHECK(filter_recording_context_); |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 // though. | 275 // though. |
| 276 // Additionally, it's not really safe/guaranteed to be correct, as | 276 // Additionally, it's not really safe/guaranteed to be correct, as |
| 277 // something down the flags pipe may want to farther tweak the color | 277 // something down the flags pipe may want to farther tweak the color |
| 278 // filter, which could yield incorrect results. (Consider just using | 278 // filter, which could yield incorrect results. (Consider just using |
| 279 // saveLayer() w/ this color filter explicitly instead.) | 279 // saveLayer() w/ this color filter explicitly instead.) |
| 280 flags.setColorFilter(sk_ref_sp(paint_info.context.GetColorFilter())); | 280 flags.setColorFilter(sk_ref_sp(paint_info.context.GetColorFilter())); |
| 281 return true; | 281 return true; |
| 282 } | 282 } |
| 283 | 283 |
| 284 } // namespace blink | 284 } // namespace blink |
| OLD | NEW |