Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
index e466d9180ad45cf57fd228d26ab115c7c0dfe33b..cdf260d7c291cc047d9c844cc0d681a67b80d9f4 100644 |
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
@@ -1724,6 +1724,8 @@ void WebLocalFrameImpl::setCanHaveScrollbars(bool canHaveScrollbars) |
void WebLocalFrameImpl::setInputEventsTransformForEmulation(const IntSize& offset, float contentScaleFactor) |
{ |
+ if (m_inputEventsOffsetForEmulation == offset && m_inputEventsScaleFactorForEmulation == contentScaleFactor) |
+ return; |
m_inputEventsOffsetForEmulation = offset; |
m_inputEventsScaleFactorForEmulation = contentScaleFactor; |
if (frame()->view()) |