[SCM] WebKit Debian packaging branch, webkit-1.1, updated. upstream/1.1.22-985-g3c00f00
eric at webkit.org
eric at webkit.org
Wed Mar 17 18:14:36 UTC 2010
The following commit has been merged in the webkit-1.1 branch:
commit beb79f26bb20b17a673eb16bd0387ded9568c757
Author: eric at webkit.org <eric at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Thu Mar 4 03:31:14 2010 +0000
2010-03-03 Chad Faragher <wyck at chromium.org>
Reviewed by Darin Adler.
Changed the double-click framework code to pass adjusted page
coordinates for zoomed pages. Added a new test to expose
mistreatment of mouse click coordinates during a double-click.
https://bugs.webkit.org/show_bug.cgi?id=35690
* fast/events/zoom-dblclick-expected.txt: Added.
* fast/events/zoom-dblclick.html: Added.
2010-03-03 Chad Faragher <wyck at chromium.org>
Reviewed by Darin Adler.
Changed the double-click framework code to pass adjusted page
coordinates for zoomed pages. Added a new test to expose
mistreatment of mouse click coordinates during a double-click.
https://bugs.webkit.org/show_bug.cgi?id=35690
Test: fast/events/zoom-dblclick.html
* dom/Node.cpp:
(WebCore::Node::dispatchMouseEvent):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55499 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index 153552e..2da5ab7 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,16 @@
+2010-03-03 Chad Faragher <wyck at chromium.org>
+
+ Reviewed by Darin Adler.
+
+ Changed the double-click framework code to pass adjusted page
+ coordinates for zoomed pages. Added a new test to expose
+ mistreatment of mouse click coordinates during a double-click.
+
+ https://bugs.webkit.org/show_bug.cgi?id=35690
+
+ * fast/events/zoom-dblclick-expected.txt: Added.
+ * fast/events/zoom-dblclick.html: Added.
+
2010-03-03 Dumitru Daniliuc <dumi at chromium.org>
Reviewed by Dimitri Glazkov.
diff --git a/LayoutTests/fast/events/zoom-dblclick-expected.txt b/LayoutTests/fast/events/zoom-dblclick-expected.txt
new file mode 100644
index 0000000..2de6e6f
--- /dev/null
+++ b/LayoutTests/fast/events/zoom-dblclick-expected.txt
@@ -0,0 +1,11 @@
+
+
+Zoomed
+PASS event.clientX is 167
+PASS event.clientY is 83
+PASS event.pageX is 167
+PASS event.pageY is 83
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/fast/events/zoom-dblclick.html b/LayoutTests/fast/events/zoom-dblclick.html
new file mode 100644
index 0000000..5db3a9d
--- /dev/null
+++ b/LayoutTests/fast/events/zoom-dblclick.html
@@ -0,0 +1,78 @@
+<!-- based on clientXY-in-zoom-and-scroll.html -->
+<link rel="stylesheet" href="../js/resources/js-test-style.css">
+<script src="../js/resources/js-test-pre.js"></script>
+<script>
+ function clickHandler(e)
+ {
+ // do something
+ event = e;
+ var elem = document.getElementById('gizmo');
+ elem.textContent = "client(" + e.clientX + "," + e.clientY + ") page(" + e.pageX + "," + e.pageY + ")";
+ }
+</script>
+<br/>
+<div id="console"></div>
+<div id="testArea">
+ <div id="gizmo" style="position: absolute; left: 0px; top: 0px; overflow-x: hidden; overflow-y: hidden; width: 100%; height: 100%; text-align: middle;" onDblClick="clickHandler(event)">Double-click on this page.</div>
+</div>
+
+<script>
+ var event;
+
+ function sendDblClick()
+ {
+ if (window.eventSender) {
+ eventSender.leapForward(1000); // drain dblclick timer
+ eventSender.mouseMoveTo(200, 100); // x and y different for safety
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+ }
+ }
+ function zoomPageIn()
+ {
+ if (window.eventSender) {
+ eventSender.zoomPageIn();
+ }
+ }
+
+ function zoomPageOut()
+ {
+ if (window.eventSender) {
+ eventSender.zoomPageOut();
+ }
+ }
+
+ if (window.layoutTestController) {
+ layoutTestController.dumpAsText();
+ layoutTestController.waitUntilDone();
+ }
+
+ // Zoomed.
+ function zoomed(e)
+ {
+ event = e;
+ debug("\nZoomed");
+ shouldBe("event.clientX", "167");
+ shouldBe("event.clientY", "83");
+ shouldBe("event.pageX", "167");
+ shouldBe("event.pageY", "83");
+ }
+ window.addEventListener("dblclick", zoomed, false);
+ zoomPageIn();
+ sendDblClick();
+ zoomPageOut();
+ window.removeEventListener("dblclick", zoomed, false);
+
+ if (window.layoutTestController) {
+ var area = document.getElementById('testArea');
+ area.parentNode.removeChild(area);
+
+ layoutTestController.notifyDone();
+ }
+
+ successfullyParsed = true;
+</script>
+<script src="../js/resources/js-test-post.js"></script>
+
diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 69af816..0205d29 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,17 @@
+2010-03-03 Chad Faragher <wyck at chromium.org>
+
+ Reviewed by Darin Adler.
+ Changed the double-click framework code to pass adjusted page
+ coordinates for zoomed pages. Added a new test to expose
+ mistreatment of mouse click coordinates during a double-click.
+
+ https://bugs.webkit.org/show_bug.cgi?id=35690
+
+ Test: fast/events/zoom-dblclick.html
+
+ * dom/Node.cpp:
+ (WebCore::Node::dispatchMouseEvent):
+
2010-03-03 David Levin <levin at chromium.org>
No review, rolling out r55474.
diff --git a/WebCore/dom/Node.cpp b/WebCore/dom/Node.cpp
index 59cdddc..db34bbe 100644
--- a/WebCore/dom/Node.cpp
+++ b/WebCore/dom/Node.cpp
@@ -2865,7 +2865,7 @@ bool Node::dispatchMouseEvent(const AtomicString& eventType, int button, int det
if (eventType == eventNames().clickEvent && detail == 2) {
RefPtr<Event> doubleClickEvent = MouseEvent::create(eventNames().dblclickEvent,
true, cancelable, document()->defaultView(),
- detail, screenX, screenY, pageX, pageY,
+ detail, screenX, screenY, adjustedPageX, adjustedPageY,
ctrlKey, altKey, shiftKey, metaKey, button,
relatedTarget, 0, isSimulated);
doubleClickEvent->setUnderlyingEvent(underlyingEvent.get());
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list