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

Unified Diff: third_party/WebKit/Source/platform/graphics/filters/FEDropShadow.h

Issue 2341923002: Harmonize FilterEffect::mapRect and mapPaintRect (Closed)
Patch Set: Rebase Created 4 years, 3 months 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/filters/FEDropShadow.h
diff --git a/third_party/WebKit/Source/platform/graphics/filters/FEDropShadow.h b/third_party/WebKit/Source/platform/graphics/filters/FEDropShadow.h
index 93eaf375563ba2c7a6dfab97c6d081a1e4c04aad..706f956fd0952a75580aa6146631fda67898d5df 100644
--- a/third_party/WebKit/Source/platform/graphics/filters/FEDropShadow.h
+++ b/third_party/WebKit/Source/platform/graphics/filters/FEDropShadow.h
@@ -30,17 +30,18 @@ class PLATFORM_EXPORT FEDropShadow final : public FilterEffect {
public:
static FEDropShadow* create(Filter*, float, float, float, float, const Color&, float);
- FloatRect mapRect(const FloatRect&, bool forward = true) const final;
-
void setShadowColor(const Color& color) { m_shadowColor = color; }
void setShadowOpacity(float opacity) { m_shadowOpacity = opacity; }
TextStream& externalRepresentation(TextStream&, int indention) const override;
- sk_sp<SkImageFilter> createImageFilter() override;
private:
FEDropShadow(Filter*, float, float, float, float, const Color&, float);
+ FloatRect mapEffect(const FloatRect&) const override;
+
+ sk_sp<SkImageFilter> createImageFilter() override;
+
float m_stdX;
float m_stdY;
float m_dx;

Powered by Google App Engine
This is Rietveld 408576698