| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Alex Mathews <possessedpenguinbob@gmail.com> | 2 * Copyright (C) 2008 Alex Mathews <possessedpenguinbob@gmail.com> |
| 3 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 3 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
| 4 * Copyright (C) 2013 Google Inc. All rights reserved. | 4 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 #include "platform/graphics/filters/SkiaImageFilterBuilder.h" | 28 #include "platform/graphics/filters/SkiaImageFilterBuilder.h" |
| 29 #include "platform/text/TextStream.h" | 29 #include "platform/text/TextStream.h" |
| 30 | 30 |
| 31 namespace blink { | 31 namespace blink { |
| 32 | 32 |
| 33 FETile::FETile(Filter* filter) | 33 FETile::FETile(Filter* filter) |
| 34 : FilterEffect(filter) | 34 : FilterEffect(filter) |
| 35 { | 35 { |
| 36 } | 36 } |
| 37 | 37 |
| 38 PassRefPtr<FETile> FETile::create(Filter* filter) | 38 PassRefPtrWillBeRawPtr<FETile> FETile::create(Filter* filter) |
| 39 { | 39 { |
| 40 return adoptRef(new FETile(filter)); | 40 return adoptRefWillBeNoop(new FETile(filter)); |
| 41 } | 41 } |
| 42 | 42 |
| 43 FloatRect FETile::mapPaintRect(const FloatRect& rect, bool forward) | 43 FloatRect FETile::mapPaintRect(const FloatRect& rect, bool forward) |
| 44 { | 44 { |
| 45 return forward ? maxEffectRect() : inputEffect(0)->maxEffectRect(); | 45 return forward ? maxEffectRect() : inputEffect(0)->maxEffectRect(); |
| 46 } | 46 } |
| 47 | 47 |
| 48 static FloatRect getRect(FilterEffect* effect) | 48 static FloatRect getRect(FilterEffect* effect) |
| 49 { | 49 { |
| 50 FloatRect result = effect->filter()->filterRegion(); | 50 FloatRect result = effect->filter()->filterRegion(); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 73 writeIndent(ts, indent); | 73 writeIndent(ts, indent); |
| 74 ts << "[feTile"; | 74 ts << "[feTile"; |
| 75 FilterEffect::externalRepresentation(ts); | 75 FilterEffect::externalRepresentation(ts); |
| 76 ts << "]\n"; | 76 ts << "]\n"; |
| 77 inputEffect(0)->externalRepresentation(ts, indent + 1); | 77 inputEffect(0)->externalRepresentation(ts, indent + 1); |
| 78 | 78 |
| 79 return ts; | 79 return ts; |
| 80 } | 80 } |
| 81 | 81 |
| 82 } // namespace blink | 82 } // namespace blink |
| OLD | NEW |