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

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

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 years, 9 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.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/filters/FEDropShadow.cpp b/third_party/WebKit/Source/platform/graphics/filters/FEDropShadow.cpp
index 75ddeb7712bd04c932f7ab2dbfd751e09c239b27..366e4579ed144b2b5f3df3c500c9f60a9fb45962 100644
--- a/third_party/WebKit/Source/platform/graphics/filters/FEDropShadow.cpp
+++ b/third_party/WebKit/Source/platform/graphics/filters/FEDropShadow.cpp
@@ -47,7 +47,7 @@ PassRefPtrWillBeRawPtr<FEDropShadow> FEDropShadow::create(Filter* filter, float
FloatRect FEDropShadow::mapRect(const FloatRect& rect, bool forward)
{
FloatRect result = rect;
- Filter* filter = this->filter();
+ Filter* filter = this->getFilter();
ASSERT(filter);
FloatRect offsetRect = rect;
@@ -68,10 +68,10 @@ FloatRect FEDropShadow::mapRect(const FloatRect& rect, bool forward)
PassRefPtr<SkImageFilter> FEDropShadow::createImageFilter(SkiaImageFilterBuilder& builder)
{
RefPtr<SkImageFilter> input(builder.build(inputEffect(0), operatingColorSpace()));
- float dx = filter()->applyHorizontalScale(m_dx);
- float dy = filter()->applyVerticalScale(m_dy);
- float stdX = filter()->applyHorizontalScale(m_stdX);
- float stdY = filter()->applyVerticalScale(m_stdY);
+ float dx = getFilter()->applyHorizontalScale(m_dx);
+ float dy = getFilter()->applyVerticalScale(m_dy);
+ float stdX = getFilter()->applyHorizontalScale(m_stdX);
+ float stdY = getFilter()->applyVerticalScale(m_stdY);
Color color = adaptColorToOperatingColorSpace(m_shadowColor.combineWithAlpha(m_shadowOpacity));
SkImageFilter::CropRect cropRect = getCropRect();
return adoptRef(SkDropShadowImageFilter::Create(SkFloatToScalar(dx), SkFloatToScalar(dy), SkFloatToScalar(stdX), SkFloatToScalar(stdY), color.rgb(), SkDropShadowImageFilter::kDrawShadowAndForeground_ShadowMode, input.get(), &cropRect));

Powered by Google App Engine
This is Rietveld 408576698