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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/layers-test.js

Issue 2393763002: [DevTools] Cleanup DOMExtension.js. (Closed)
Patch Set: review comments Created 4 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/components/DOMPresentationUtils.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/inspector/layers-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/layers-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/layers-test.js
index 8792490dce3a25ab8fab2c7b94d02eb8c9b8c132..11bdda6e4eb17dfa6dc68ddca8e74627909ea3ab 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/layers-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/layers-test.js
@@ -105,13 +105,12 @@ function initialize_LayerTreeTests()
InspectorTest.dispatchMouseEvent = function(eventType, button, element, offsetX, offsetY)
{
var totalOffset = element.totalOffset();
- var scrollOffset = element.scrollOffset();
var eventArguments = {
bubbles: true,
cancelable: true,
view: window,
- screenX: totalOffset.left - scrollOffset.left + offsetX,
- screenY: totalOffset.top - scrollOffset.top + offsetY,
+ screenX: totalOffset.left - element.scrollLeft + offsetX,
+ screenY: totalOffset.top - element.scrollTop + offsetY,
clientX: totalOffset.left + offsetX,
clientY: totalOffset.top + offsetY,
button: button
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/components/DOMPresentationUtils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698