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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.cpp

Issue 2856863005: Rename SVGPreserveAspectRatio::GetCTM to ComputeTransform (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.h ('k') | no next file » | 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, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2008 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) 2010 Dirk Schulze <krit@webkit.org> 4 * Copyright (C) 2010 Dirk Schulze <krit@webkit.org>
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 break; 280 break;
281 default: 281 default:
282 break; 282 break;
283 } 283 }
284 } 284 }
285 break; 285 break;
286 } 286 }
287 } 287 }
288 } 288 }
289 289
290 AffineTransform SVGPreserveAspectRatio::GetCTM(float logical_x, 290 AffineTransform SVGPreserveAspectRatio::ComputeTransform(
291 float logical_y, 291 float logical_x,
292 float logical_width, 292 float logical_y,
293 float logical_height, 293 float logical_width,
294 float physical_width, 294 float logical_height,
295 float physical_height) const { 295 float physical_width,
296 float physical_height) const {
296 DCHECK(logical_width); 297 DCHECK(logical_width);
297 DCHECK(logical_height); 298 DCHECK(logical_height);
298 DCHECK(physical_width); 299 DCHECK(physical_width);
299 DCHECK(physical_height); 300 DCHECK(physical_height);
300 301
301 AffineTransform transform; 302 AffineTransform transform;
302 if (align_ == kSvgPreserveaspectratioUnknown) 303 if (align_ == kSvgPreserveaspectratioUnknown)
303 return transform; 304 return transform;
304 305
305 double extended_logical_x = logical_x; 306 double extended_logical_x = logical_x;
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 meet_or_slice_ = preserve_aspect_ratio_to_use->meet_or_slice_; 459 meet_or_slice_ = preserve_aspect_ratio_to_use->meet_or_slice_;
459 } 460 }
460 461
461 float SVGPreserveAspectRatio::CalculateDistance(SVGPropertyBase* to_value, 462 float SVGPreserveAspectRatio::CalculateDistance(SVGPropertyBase* to_value,
462 SVGElement* context_element) { 463 SVGElement* context_element) {
463 // No paced animations for SVGPreserveAspectRatio. 464 // No paced animations for SVGPreserveAspectRatio.
464 return -1; 465 return -1;
465 } 466 }
466 467
467 } // namespace blink 468 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698