| 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 20 matching lines...) Expand all Loading... |
| 31 #include "wtf/RefPtr.h" | 31 #include "wtf/RefPtr.h" |
| 32 | 32 |
| 33 namespace WebCore { | 33 namespace WebCore { |
| 34 | 34 |
| 35 class SVGFilter FINAL : public Filter { | 35 class SVGFilter FINAL : public Filter { |
| 36 public: | 36 public: |
| 37 static PassRefPtr<SVGFilter> create(const AffineTransform&, const IntRect&,
const FloatRect&, const FloatRect&, bool); | 37 static PassRefPtr<SVGFilter> create(const AffineTransform&, const IntRect&,
const FloatRect&, const FloatRect&, bool); |
| 38 | 38 |
| 39 virtual float applyHorizontalScale(float value) const OVERRIDE; | 39 virtual float applyHorizontalScale(float value) const OVERRIDE; |
| 40 virtual float applyVerticalScale(float value) const OVERRIDE; | 40 virtual float applyVerticalScale(float value) const OVERRIDE; |
| 41 virtual FloatPoint3D resolve3dPoint(const FloatPoint3D&) const OVERRIDE; |
| 41 | 42 |
| 42 virtual IntRect sourceImageRect() const OVERRIDE { return m_absoluteSourceDr
awingRegion; } | 43 virtual IntRect sourceImageRect() const OVERRIDE { return m_absoluteSourceDr
awingRegion; } |
| 43 FloatRect targetBoundingBox() const { return m_targetBoundingBox; } | 44 FloatRect targetBoundingBox() const { return m_targetBoundingBox; } |
| 44 | 45 |
| 45 private: | 46 private: |
| 46 SVGFilter(const AffineTransform& absoluteTransform, const IntRect& absoluteS
ourceDrawingRegion, const FloatRect& targetBoundingBox, const FloatRect& filterR
egion, bool effectBBoxMode); | 47 SVGFilter(const AffineTransform& absoluteTransform, const IntRect& absoluteS
ourceDrawingRegion, const FloatRect& targetBoundingBox, const FloatRect& filterR
egion, bool effectBBoxMode); |
| 47 | 48 |
| 48 IntRect m_absoluteSourceDrawingRegion; | 49 IntRect m_absoluteSourceDrawingRegion; |
| 49 FloatRect m_targetBoundingBox; | 50 FloatRect m_targetBoundingBox; |
| 50 bool m_effectBBoxMode; | 51 bool m_effectBBoxMode; |
| 51 }; | 52 }; |
| 52 | 53 |
| 53 } // namespace WebCore | 54 } // namespace WebCore |
| 54 | 55 |
| 55 #endif // SVGFilter_h | 56 #endif // SVGFilter_h |
| OLD | NEW |