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

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

Issue 1929493002: Remove unnecessary uses of GarbageCollectedFinalized<>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add two leftover classes needing same treatment Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 , m_contextTransform(nullptr) 42 , m_contextTransform(nullptr)
43 { 43 {
44 } 44 }
45 45
46 SVGMatrixTearOff::SVGMatrixTearOff(SVGTransformTearOff* transform) 46 SVGMatrixTearOff::SVGMatrixTearOff(SVGTransformTearOff* transform)
47 : m_contextTransform(transform) 47 : m_contextTransform(transform)
48 { 48 {
49 ASSERT(transform); 49 ASSERT(transform);
50 } 50 }
51 51
52 SVGMatrixTearOff::~SVGMatrixTearOff()
53 {
54 }
55
56 DEFINE_TRACE(SVGMatrixTearOff) 52 DEFINE_TRACE(SVGMatrixTearOff)
57 { 53 {
58 visitor->trace(m_contextTransform); 54 visitor->trace(m_contextTransform);
59 } 55 }
60 56
61 const AffineTransform& SVGMatrixTearOff::value() const 57 const AffineTransform& SVGMatrixTearOff::value() const
62 { 58 {
63 return m_contextTransform ? m_contextTransform->target()->matrix() : m_stati cValue; 59 return m_contextTransform ? m_contextTransform->target()->matrix() : m_stati cValue;
64 } 60 }
65 61
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 { 169 {
174 if (!x || !y) 170 if (!x || !y)
175 exceptionState.throwDOMException(InvalidAccessError, "Arguments cannot b e zero."); 171 exceptionState.throwDOMException(InvalidAccessError, "Arguments cannot b e zero.");
176 172
177 AffineTransform copy = value(); 173 AffineTransform copy = value();
178 copy.rotateFromVector(x, y); 174 copy.rotateFromVector(x, y);
179 return create(copy); 175 return create(copy);
180 } 176 }
181 177
182 } // namespace blink 178 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698