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

Side by Side Diff: Source/core/svg/graphics/filters/SVGFEImage.cpp

Issue 54803002: Centralize TextStream functions to remove RenderTreeAsText dependency of the filters (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « Source/core/rendering/svg/SVGRenderTreeAsText.cpp ('k') | Source/platform/text/TextStream.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2010 Dirk Schulze <krit@webkit.org> 5 * Copyright (C) 2010 Dirk Schulze <krit@webkit.org>
6 * Copyright (C) 2013 Google Inc. All rights reserved. 6 * Copyright (C) 2013 Google Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 11 matching lines...) Expand all
22 */ 22 */
23 23
24 #include "config.h" 24 #include "config.h"
25 25
26 #include "core/svg/graphics/filters/SVGFEImage.h" 26 #include "core/svg/graphics/filters/SVGFEImage.h"
27 27
28 #include "SkBitmapSource.h" 28 #include "SkBitmapSource.h"
29 #include "core/platform/graphics/GraphicsContext.h" 29 #include "core/platform/graphics/GraphicsContext.h"
30 #include "core/platform/graphics/filters/Filter.h" 30 #include "core/platform/graphics/filters/Filter.h"
31 #include "core/rendering/RenderObject.h" 31 #include "core/rendering/RenderObject.h"
32 #include "core/rendering/RenderTreeAsText.h"
33 #include "core/rendering/svg/SVGRenderingContext.h" 32 #include "core/rendering/svg/SVGRenderingContext.h"
34 #include "core/svg/SVGElement.h" 33 #include "core/svg/SVGElement.h"
35 #include "core/svg/SVGPreserveAspectRatio.h" 34 #include "core/svg/SVGPreserveAspectRatio.h"
36 #include "core/svg/SVGURIReference.h" 35 #include "core/svg/SVGURIReference.h"
37 #include "platform/text/TextStream.h" 36 #include "platform/text/TextStream.h"
38 #include "platform/transforms/AffineTransform.h" 37 #include "platform/transforms/AffineTransform.h"
39 38
40 namespace WebCore { 39 namespace WebCore {
41 40
42 FEImage::FEImage(Filter* filter, PassRefPtr<Image> image, const SVGPreserveAspec tRatio& preserveAspectRatio) 41 FEImage::FEImage(Filter* filter, PassRefPtr<Image> image, const SVGPreserveAspec tRatio& preserveAspectRatio)
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 if (!m_image) 161 if (!m_image)
163 return 0; 162 return 0;
164 163
165 if (!m_image->nativeImageForCurrentFrame()) 164 if (!m_image->nativeImageForCurrentFrame())
166 return 0; 165 return 0;
167 166
168 return adoptRef(new SkBitmapSource(m_image->nativeImageForCurrentFrame()->bi tmap())); 167 return adoptRef(new SkBitmapSource(m_image->nativeImageForCurrentFrame()->bi tmap()));
169 } 168 }
170 169
171 } // namespace WebCore 170 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/SVGRenderTreeAsText.cpp ('k') | Source/platform/text/TextStream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698