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

Side by Side Diff: Source/platform/graphics/filters/FEFlood.cpp

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 years, 1 month 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 | Annotate | Revision Log
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) 2013 Google Inc. All rights reserved. 6 * Copyright (C) 2013 Google Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 21 matching lines...) Expand all
32 namespace blink { 32 namespace blink {
33 33
34 FEFlood::FEFlood(Filter* filter, const Color& floodColor, float floodOpacity) 34 FEFlood::FEFlood(Filter* filter, const Color& floodColor, float floodOpacity)
35 : FilterEffect(filter) 35 : FilterEffect(filter)
36 , m_floodColor(floodColor) 36 , m_floodColor(floodColor)
37 , m_floodOpacity(floodOpacity) 37 , m_floodOpacity(floodOpacity)
38 { 38 {
39 FilterEffect::setOperatingColorSpace(ColorSpaceDeviceRGB); 39 FilterEffect::setOperatingColorSpace(ColorSpaceDeviceRGB);
40 } 40 }
41 41
42 PassRefPtr<FEFlood> FEFlood::create(Filter* filter, const Color& floodColor, flo at floodOpacity) 42 PassRefPtrWillBeRawPtr<FEFlood> FEFlood::create(Filter* filter, const Color& flo odColor, float floodOpacity)
43 { 43 {
44 return adoptRef(new FEFlood(filter, floodColor, floodOpacity)); 44 return adoptRefWillBeNoop(new FEFlood(filter, floodColor, floodOpacity));
45 } 45 }
46 46
47 Color FEFlood::floodColor() const 47 Color FEFlood::floodColor() const
48 { 48 {
49 return m_floodColor; 49 return m_floodColor;
50 } 50 }
51 51
52 bool FEFlood::setFloodColor(const Color& color) 52 bool FEFlood::setFloodColor(const Color& color)
53 { 53 {
54 if (m_floodColor == color) 54 if (m_floodColor == color)
(...skipping 28 matching lines...) Expand all
83 { 83 {
84 writeIndent(ts, indent); 84 writeIndent(ts, indent);
85 ts << "[feFlood"; 85 ts << "[feFlood";
86 FilterEffect::externalRepresentation(ts); 86 FilterEffect::externalRepresentation(ts);
87 ts << " flood-color=\"" << floodColor().nameForRenderTreeAsText() << "\" " 87 ts << " flood-color=\"" << floodColor().nameForRenderTreeAsText() << "\" "
88 << "flood-opacity=\"" << floodOpacity() << "\"]\n"; 88 << "flood-opacity=\"" << floodOpacity() << "\"]\n";
89 return ts; 89 return ts;
90 } 90 }
91 91
92 } // namespace blink 92 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/graphics/filters/FEFlood.h ('k') | Source/platform/graphics/filters/FEGaussianBlur.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698