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

Unified Diff: third_party/WebKit/Source/devtools/front_end/devtools.js

Issue 1737733002: [DevTools] Handle emulated device scale factor and original device scale factor properly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: third_party/WebKit/Source/devtools/front_end/devtools.js
diff --git a/third_party/WebKit/Source/devtools/front_end/devtools.js b/third_party/WebKit/Source/devtools/front_end/devtools.js
index 9cb6bf2ea736795ec797f12d140f1dca0b6183a4..9da83256889a48f117346f0f0adecedb18bad1f6 100644
--- a/third_party/WebKit/Source/devtools/front_end/devtools.js
+++ b/third_party/WebKit/Source/devtools/front_end/devtools.js
@@ -400,13 +400,7 @@ InspectorFrontendHostImpl.prototype = {
*/
setInspectedPageBounds: function(bounds)
{
- var converted = {
- x: Math.round(DevToolsHost.convertLengthForEmbedder(bounds.x)),
- y: Math.round(DevToolsHost.convertLengthForEmbedder(bounds.y)),
- width: Math.round(DevToolsHost.convertLengthForEmbedder(bounds.width)),
- height: Math.round(DevToolsHost.convertLengthForEmbedder(bounds.height))
- };
- DevToolsAPI.sendMessageToEmbedder("setInspectedPageBounds", [converted], null);
+ DevToolsAPI.sendMessageToEmbedder("setInspectedPageBounds", [bounds], null);
},
/**
« no previous file with comments | « third_party/WebKit/Source/core/inspector/DevToolsHost.idl ('k') | third_party/WebKit/Source/devtools/front_end/externs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698