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

Side by Side Diff: Source/core/svg/SVGLengthContext.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/SVGImageElement.cpp ('k') | Source/core/svg/SVGLineElement.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 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2007 Apple Inc. All rights reserved.
5 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 return 0; 187 return 0;
188 } 188 }
189 189
190 static inline LayoutStyle* layoutStyleForLengthResolving(const SVGElement* conte xt) 190 static inline LayoutStyle* layoutStyleForLengthResolving(const SVGElement* conte xt)
191 { 191 {
192 if (!context) 192 if (!context)
193 return 0; 193 return 0;
194 194
195 const ContainerNode* currentContext = context; 195 const ContainerNode* currentContext = context;
196 do { 196 do {
197 if (currentContext->renderer()) 197 if (currentContext->layoutObject())
198 return currentContext->renderer()->style(); 198 return currentContext->layoutObject()->style();
199 currentContext = currentContext->parentNode(); 199 currentContext = currentContext->parentNode();
200 } while (currentContext); 200 } while (currentContext);
201 201
202 // There must be at least a LayoutSVGRoot renderer, carrying a style. 202 // There must be at least a LayoutSVGRoot renderer, carrying a style.
203 ASSERT_NOT_REACHED(); 203 ASSERT_NOT_REACHED();
204 return 0; 204 return 0;
205 } 205 }
206 206
207 float SVGLengthContext::convertValueFromUserUnitsToEMS(float value) const 207 float SVGLengthContext::convertValueFromUserUnitsToEMS(float value) const
208 { 208 {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 269
270 const SVGSVGElement& svg = toSVGSVGElement(*viewportElement); 270 const SVGSVGElement& svg = toSVGSVGElement(*viewportElement);
271 viewportSize = svg.currentViewBoxRect().size(); 271 viewportSize = svg.currentViewBoxRect().size();
272 if (viewportSize.isEmpty()) 272 if (viewportSize.isEmpty())
273 viewportSize = svg.currentViewportSize(); 273 viewportSize = svg.currentViewportSize();
274 274
275 return true; 275 return true;
276 } 276 }
277 277
278 } 278 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGImageElement.cpp ('k') | Source/core/svg/SVGLineElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698