From c059194cf382b17fc5ef02b688b5ac7013f855b3 Mon Sep 17 00:00:00 2001 From: oshima Date: Tue, 12 Jan 2016 11:40:15 -0800 Subject: Add popup layout tests with device scale factor This also contains following fix in layout test to enable these tests. * allow --force-device-scale-factor in LayoutTest * scale popup position when generating result image. * fix the backing size in RenderWidget::SetWindowRectSynchronously * data-suggestion-picker test is temporarily marked as failure as bots generate slightly different images. I'll investigate it in a separate CL. * moved and enabled popup tests in fast/hidpi/static * Added VirtualTestSuite for dsf=2, dsf=1.5 and dsf=2 with zooming option. BUG=567837 Review URL: https://codereview.chromium.org/1571833002 Cr-Commit-Position: refs/heads/master@{#368951} --- content/public/renderer/render_view.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'content/public/renderer') diff --git a/content/public/renderer/render_view.h b/content/public/renderer/render_view.h index baa051f..75e986a 100644 --- a/content/public/renderer/render_view.h +++ b/content/public/renderer/render_view.h @@ -137,6 +137,9 @@ class CONTENT_EXPORT RenderView : public IPC::Sender { virtual gfx::RectF ElementBoundsInWindow(const blink::WebElement& element) = 0; + // Returns the device scale factor for unit tests. + virtual float GetDeviceScaleFactorForTest() const = 0; + protected: ~RenderView() override {} -- cgit v1.1