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

Unified Diff: third_party/WebKit/Source/modules/csspaint/PaintRenderingContext2DTest.cpp

Issue 2104103003: Fix zoom in CSS paint worklets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/modules/csspaint/PaintRenderingContext2DTest.cpp
diff --git a/third_party/WebKit/Source/modules/csspaint/PaintRenderingContext2DTest.cpp b/third_party/WebKit/Source/modules/csspaint/PaintRenderingContext2DTest.cpp
index c13e19c534863f6ae8ae3cf67946aaf3c45c0d00..0e1b56cec2e7c51e5d88dda01ddeff7a11adaa9c 100644
--- a/third_party/WebKit/Source/modules/csspaint/PaintRenderingContext2DTest.cpp
+++ b/third_party/WebKit/Source/modules/csspaint/PaintRenderingContext2DTest.cpp
@@ -12,6 +12,7 @@ namespace {
static const int s_width = 50;
static const int s_height = 75;
+static const float s_zoom = 1.0;
class PaintRenderingContext2DTest : public ::testing::Test {
protected:
@@ -22,7 +23,7 @@ protected:
void PaintRenderingContext2DTest::SetUp()
{
- m_ctx = PaintRenderingContext2D::create(ImageBuffer::create(IntSize(s_width, s_height)));
+ m_ctx = PaintRenderingContext2D::create(ImageBuffer::create(IntSize(s_width, s_height)), s_zoom);
}
void trySettingStrokeStyle(PaintRenderingContext2D* ctx, const String& expected, const String& value)

Powered by Google App Engine
This is Rietveld 408576698