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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/filters/Filter.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) 2013 Adobe Systems Incorporated. All rights reserved. 2 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved.
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above 9 * 1. Redistributions of source code must retain the above
10 * copyright notice, this list of conditions and the following 10 * copyright notice, this list of conditions and the following
(...skipping 26 matching lines...) Expand all
37 37
38 Filter::Filter(const FloatRect& referenceBox, const FloatRect& filterRegion, flo at scale, UnitScaling unitScaling) 38 Filter::Filter(const FloatRect& referenceBox, const FloatRect& filterRegion, flo at scale, UnitScaling unitScaling)
39 : m_referenceBox(referenceBox) 39 : m_referenceBox(referenceBox)
40 , m_filterRegion(filterRegion) 40 , m_filterRegion(filterRegion)
41 , m_scale(scale) 41 , m_scale(scale)
42 , m_unitScaling(unitScaling) 42 , m_unitScaling(unitScaling)
43 , m_sourceGraphic(SourceGraphic::create(this)) 43 , m_sourceGraphic(SourceGraphic::create(this))
44 { 44 {
45 } 45 }
46 46
47 Filter::~Filter()
48 {
49 }
50
51 Filter* Filter::create(const FloatRect& referenceBox, const FloatRect& filterReg ion, float scale, UnitScaling unitScaling) 47 Filter* Filter::create(const FloatRect& referenceBox, const FloatRect& filterReg ion, float scale, UnitScaling unitScaling)
52 { 48 {
53 return new Filter(referenceBox, filterRegion, scale, unitScaling); 49 return new Filter(referenceBox, filterRegion, scale, unitScaling);
54 } 50 }
55 51
56 Filter* Filter::create(float scale) 52 Filter* Filter::create(float scale)
57 { 53 {
58 return new Filter(FloatRect(), FloatRect(), scale, UserSpace); 54 return new Filter(FloatRect(), FloatRect(), scale, UserSpace);
59 } 55 }
60 56
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 point.y() * referenceBox().height() + referenceBox().y(), 96 point.y() * referenceBox().height() + referenceBox().y(),
101 point.z() * sqrtf(referenceBox().size().diagonalLengthSquared() / 2)); 97 point.z() * sqrtf(referenceBox().size().diagonalLengthSquared() / 2));
102 } 98 }
103 99
104 void Filter::setLastEffect(FilterEffect* effect) 100 void Filter::setLastEffect(FilterEffect* effect)
105 { 101 {
106 m_lastEffect = effect; 102 m_lastEffect = effect;
107 } 103 }
108 104
109 } // namespace blink 105 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/filters/Filter.h ('k') | third_party/WebKit/Source/platform/mhtml/MHTMLArchive.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698