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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/filters/FEMorphology.cpp

Issue 1860903002: Update Source/platform/ to assume Oilpan only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: back out ScrollAnimatorMac() accidental change Created 4 years, 8 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) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * Copyright (C) 2013 Google Inc. All rights reserved. 7 * Copyright (C) 2013 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 21 matching lines...) Expand all
32 namespace blink { 32 namespace blink {
33 33
34 FEMorphology::FEMorphology(Filter* filter, MorphologyOperatorType type, float ra diusX, float radiusY) 34 FEMorphology::FEMorphology(Filter* filter, MorphologyOperatorType type, float ra diusX, float radiusY)
35 : FilterEffect(filter) 35 : FilterEffect(filter)
36 , m_type(type) 36 , m_type(type)
37 , m_radiusX(std::max(0.0f, radiusX)) 37 , m_radiusX(std::max(0.0f, radiusX))
38 , m_radiusY(std::max(0.0f, radiusY)) 38 , m_radiusY(std::max(0.0f, radiusY))
39 { 39 {
40 } 40 }
41 41
42 RawPtr<FEMorphology> FEMorphology::create(Filter* filter, MorphologyOperatorType type, float radiusX, float radiusY) 42 FEMorphology* FEMorphology::create(Filter* filter, MorphologyOperatorType type, float radiusX, float radiusY)
43 { 43 {
44 return new FEMorphology(filter, type, radiusX, radiusY); 44 return new FEMorphology(filter, type, radiusX, radiusY);
45 } 45 }
46 46
47 MorphologyOperatorType FEMorphology::morphologyOperator() const 47 MorphologyOperatorType FEMorphology::morphologyOperator() const
48 { 48 {
49 return m_type; 49 return m_type;
50 } 50 }
51 51
52 bool FEMorphology::setMorphologyOperator(MorphologyOperatorType type) 52 bool FEMorphology::setMorphologyOperator(MorphologyOperatorType type)
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 writeIndent(ts, indent); 125 writeIndent(ts, indent);
126 ts << "[feMorphology"; 126 ts << "[feMorphology";
127 FilterEffect::externalRepresentation(ts); 127 FilterEffect::externalRepresentation(ts);
128 ts << " operator=\"" << morphologyOperator() << "\" " 128 ts << " operator=\"" << morphologyOperator() << "\" "
129 << "radius=\"" << radiusX() << ", " << radiusY() << "\"]\n"; 129 << "radius=\"" << radiusX() << ", " << radiusY() << "\"]\n";
130 inputEffect(0)->externalRepresentation(ts, indent + 1); 130 inputEffect(0)->externalRepresentation(ts, indent + 1);
131 return ts; 131 return ts;
132 } 132 }
133 133
134 } // namespace blink 134 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698