| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
| 3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 SourceGraphic::SourceGraphic(Filter* filter) | 30 SourceGraphic::SourceGraphic(Filter* filter) |
| 31 : FilterEffect(filter) | 31 : FilterEffect(filter) |
| 32 { | 32 { |
| 33 setOperatingColorSpace(ColorSpaceDeviceRGB); | 33 setOperatingColorSpace(ColorSpaceDeviceRGB); |
| 34 } | 34 } |
| 35 | 35 |
| 36 SourceGraphic::~SourceGraphic() | 36 SourceGraphic::~SourceGraphic() |
| 37 { | 37 { |
| 38 } | 38 } |
| 39 | 39 |
| 40 RawPtr<SourceGraphic> SourceGraphic::create(Filter* filter) | 40 SourceGraphic* SourceGraphic::create(Filter* filter) |
| 41 { | 41 { |
| 42 return new SourceGraphic(filter); | 42 return new SourceGraphic(filter); |
| 43 } | 43 } |
| 44 | 44 |
| 45 FloatRect SourceGraphic::determineAbsolutePaintRect(const FloatRect& requestedRe
ct) | 45 FloatRect SourceGraphic::determineAbsolutePaintRect(const FloatRect& requestedRe
ct) |
| 46 { | 46 { |
| 47 FloatRect srcRect = intersection(m_sourceRect, requestedRect); | 47 FloatRect srcRect = intersection(m_sourceRect, requestedRect); |
| 48 addAbsolutePaintRect(srcRect); | 48 addAbsolutePaintRect(srcRect); |
| 49 return srcRect; | 49 return srcRect; |
| 50 } | 50 } |
| (...skipping 17 matching lines...) Expand all Loading... |
| 68 } | 68 } |
| 69 | 69 |
| 70 TextStream& SourceGraphic::externalRepresentation(TextStream& ts, int indent) co
nst | 70 TextStream& SourceGraphic::externalRepresentation(TextStream& ts, int indent) co
nst |
| 71 { | 71 { |
| 72 writeIndent(ts, indent); | 72 writeIndent(ts, indent); |
| 73 ts << "[SourceGraphic]\n"; | 73 ts << "[SourceGraphic]\n"; |
| 74 return ts; | 74 return ts; |
| 75 } | 75 } |
| 76 | 76 |
| 77 } // namespace blink | 77 } // namespace blink |
| OLD | NEW |