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

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

Issue 1527993002: Tidy up SVGParserUtilities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Extra math for Android. Created 5 years 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
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 10 matching lines...) Expand all
21 21
22 #include "config.h" 22 #include "config.h"
23 #include "core/svg/SVGPreserveAspectRatio.h" 23 #include "core/svg/SVGPreserveAspectRatio.h"
24 24
25 #include "bindings/core/v8/ExceptionState.h" 25 #include "bindings/core/v8/ExceptionState.h"
26 #include "bindings/core/v8/ExceptionStatePlaceholder.h" 26 #include "bindings/core/v8/ExceptionStatePlaceholder.h"
27 #include "core/dom/ExceptionCode.h" 27 #include "core/dom/ExceptionCode.h"
28 #include "core/svg/SVGAnimationElement.h" 28 #include "core/svg/SVGAnimationElement.h"
29 #include "core/svg/SVGParserUtilities.h" 29 #include "core/svg/SVGParserUtilities.h"
30 #include "platform/geometry/FloatRect.h" 30 #include "platform/geometry/FloatRect.h"
31 #include "platform/text/ParserUtilities.h"
31 #include "platform/transforms/AffineTransform.h" 32 #include "platform/transforms/AffineTransform.h"
32 #include "wtf/text/WTFString.h" 33 #include "wtf/text/WTFString.h"
33 34
34 namespace blink { 35 namespace blink {
35 36
36 SVGPreserveAspectRatio::SVGPreserveAspectRatio() 37 SVGPreserveAspectRatio::SVGPreserveAspectRatio()
37 { 38 {
38 setDefault(); 39 setDefault();
39 } 40 }
40 41
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 m_meetOrSlice = preserveAspectRatioToUse->m_meetOrSlice; 399 m_meetOrSlice = preserveAspectRatioToUse->m_meetOrSlice;
399 } 400 }
400 401
401 float SVGPreserveAspectRatio::calculateDistance(PassRefPtrWillBeRawPtr<SVGProper tyBase> toValue, SVGElement* contextElement) 402 float SVGPreserveAspectRatio::calculateDistance(PassRefPtrWillBeRawPtr<SVGProper tyBase> toValue, SVGElement* contextElement)
402 { 403 {
403 // No paced animations for SVGPreserveAspectRatio. 404 // No paced animations for SVGPreserveAspectRatio.
404 return -1; 405 return -1;
405 } 406 }
406 407
407 } 408 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGParserUtilities.cpp ('k') | third_party/WebKit/Source/core/svg/SVGTransformList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698