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

Unified Diff: third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp

Issue 2326633002: Adds filter support for offscreen canvas (Closed)
Patch Set: Working version of filters on offscreen canvas 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/core/css/CSSToLengthConversionData.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp b/third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp
index 8fe2a1719d832f8444a609060f6399f2eb11e9c6..82569f766be5b628068d446ad39e1cdebd4ad704 100644
--- a/third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp
+++ b/third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp
@@ -72,6 +72,12 @@ CSSToLengthConversionData::ViewportSize::ViewportSize(const LayoutViewItem& layo
{
}
+CSSToLengthConversionData::CSSToLengthConversionData(const ComputedStyle* style, float zoom)
+ : m_style(style)
+ , m_zoom(clampTo<float>(zoom, std::numeric_limits<float>::denorm_min()))
+{
+}
+
CSSToLengthConversionData::CSSToLengthConversionData(const ComputedStyle* style, const FontSizes& fontSizes, const ViewportSize& viewportSize, float zoom)
: m_style(style)
, m_fontSizes(fontSizes)

Powered by Google App Engine
This is Rietveld 408576698