OLD | NEW |
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 20 matching lines...) Expand all Loading... |
31 namespace blink { | 31 namespace blink { |
32 | 32 |
33 FEFlood::FEFlood(Filter* filter, const Color& floodColor, float floodOpacity) | 33 FEFlood::FEFlood(Filter* filter, const Color& floodColor, float floodOpacity) |
34 : FilterEffect(filter) | 34 : FilterEffect(filter) |
35 , m_floodColor(floodColor) | 35 , m_floodColor(floodColor) |
36 , m_floodOpacity(floodOpacity) | 36 , m_floodOpacity(floodOpacity) |
37 { | 37 { |
38 FilterEffect::setOperatingColorSpace(ColorSpaceDeviceRGB); | 38 FilterEffect::setOperatingColorSpace(ColorSpaceDeviceRGB); |
39 } | 39 } |
40 | 40 |
41 RawPtr<FEFlood> FEFlood::create(Filter* filter, const Color& floodColor, float f
loodOpacity) | 41 FEFlood* FEFlood::create(Filter* filter, const Color& floodColor, float floodOpa
city) |
42 { | 42 { |
43 return new FEFlood(filter, floodColor, floodOpacity); | 43 return new FEFlood(filter, floodColor, floodOpacity); |
44 } | 44 } |
45 | 45 |
46 Color FEFlood::floodColor() const | 46 Color FEFlood::floodColor() const |
47 { | 47 { |
48 return m_floodColor; | 48 return m_floodColor; |
49 } | 49 } |
50 | 50 |
51 bool FEFlood::setFloodColor(const Color& color) | 51 bool FEFlood::setFloodColor(const Color& color) |
(...skipping 30 matching lines...) Expand all Loading... |
82 { | 82 { |
83 writeIndent(ts, indent); | 83 writeIndent(ts, indent); |
84 ts << "[feFlood"; | 84 ts << "[feFlood"; |
85 FilterEffect::externalRepresentation(ts); | 85 FilterEffect::externalRepresentation(ts); |
86 ts << " flood-color=\"" << floodColor().nameForLayoutTreeAsText() << "\" " | 86 ts << " flood-color=\"" << floodColor().nameForLayoutTreeAsText() << "\" " |
87 << "flood-opacity=\"" << floodOpacity() << "\"]\n"; | 87 << "flood-opacity=\"" << floodOpacity() << "\"]\n"; |
88 return ts; | 88 return ts; |
89 } | 89 } |
90 | 90 |
91 } // namespace blink | 91 } // namespace blink |
OLD | NEW |