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

Unified Diff: Source/platform/graphics/filters/FilterEffect.h

Issue 150973004: Fixes the rendering of a SVG filter (e.g. feFlood) by testing against total (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added rebaseline test. Created 6 years, 10 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: Source/platform/graphics/filters/FilterEffect.h
diff --git a/Source/platform/graphics/filters/FilterEffect.h b/Source/platform/graphics/filters/FilterEffect.h
index 8e4c351797b89e23242f9b4739f65183519eb87e..52bc247e79f155a185cd6184605e1547678ba8b5 100644
--- a/Source/platform/graphics/filters/FilterEffect.h
+++ b/Source/platform/graphics/filters/FilterEffect.h
@@ -37,8 +37,6 @@
#include "wtf/Uint8ClampedArray.h"
#include "wtf/Vector.h"
-static const float kMaxFilterSize = 5000.0f;
-
namespace WebCore {
class Filter;
@@ -69,6 +67,10 @@ class PLATFORM_EXPORT FilterEffect : public RefCounted<FilterEffect> {
public:
virtual ~FilterEffect();
+ static bool isFilterSizeValid(const IntRect&);
+ static bool isFilterSizeValid(const FloatRect&);
+ static float maxFilterArea();
+
void clearResult();
void clearResultsRecursive();
@@ -179,7 +181,6 @@ public:
protected:
FilterEffect(Filter*);
-
ImageBuffer* createImageBufferResult();
Uint8ClampedArray* createUnmultipliedImageResult();
Uint8ClampedArray* createPremultipliedImageResult();
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourceFilter.cpp ('k') | Source/platform/graphics/filters/FilterEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698