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

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

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 months 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/graphics/SVGImage.cpp ('k') | Source/core/testing/Internals.cpp » ('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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 return destRect; 128 return destRect;
129 } 129 }
130 130
131 LayoutObject* FEImage::referencedRenderer() const 131 LayoutObject* FEImage::referencedRenderer() const
132 { 132 {
133 if (!m_treeScope) 133 if (!m_treeScope)
134 return 0; 134 return 0;
135 Element* hrefElement = SVGURIReference::targetElementFromIRIString(m_href, * m_treeScope); 135 Element* hrefElement = SVGURIReference::targetElementFromIRIString(m_href, * m_treeScope);
136 if (!hrefElement || !hrefElement->isSVGElement()) 136 if (!hrefElement || !hrefElement->isSVGElement())
137 return 0; 137 return 0;
138 return hrefElement->renderer(); 138 return hrefElement->layoutObject();
139 } 139 }
140 140
141 TextStream& FEImage::externalRepresentation(TextStream& ts, int indent) const 141 TextStream& FEImage::externalRepresentation(TextStream& ts, int indent) const
142 { 142 {
143 IntSize imageSize; 143 IntSize imageSize;
144 if (m_image) 144 if (m_image)
145 imageSize = m_image->size(); 145 imageSize = m_image->size();
146 else if (LayoutObject* renderer = referencedRenderer()) 146 else if (LayoutObject* renderer = referencedRenderer())
147 imageSize = enclosingIntRect(getRendererRepaintRect(renderer)).size(); 147 imageSize = enclosingIntRect(getRendererRepaintRect(renderer)).size();
148 writeIndent(ts, indent); 148 writeIndent(ts, indent);
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 m_preserveAspectRatio->transformRect(dstRect, srcRect); 217 m_preserveAspectRatio->transformRect(dstRect, srcRect);
218 218
219 if (!m_image->nativeImageForCurrentFrame()) 219 if (!m_image->nativeImageForCurrentFrame())
220 return adoptRef(SkBitmapSource::Create(SkBitmap())); 220 return adoptRef(SkBitmapSource::Create(SkBitmap()));
221 221
222 RefPtr<SkImageFilter> result = adoptRef(SkBitmapSource::Create(m_image->nati veImageForCurrentFrame()->bitmap(), srcRect, dstRect)); 222 RefPtr<SkImageFilter> result = adoptRef(SkBitmapSource::Create(m_image->nati veImageForCurrentFrame()->bitmap(), srcRect, dstRect));
223 return result.release(); 223 return result.release();
224 } 224 }
225 225
226 } // namespace blink 226 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/svg/graphics/SVGImage.cpp ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698