Title: [170506] trunk/Source/WebCore
- Revision
- 170506
- Author
- [email protected]
- Date
- 2014-06-26 16:44:31 -0700 (Thu, 26 Jun 2014)
Log Message
[WK1] Use native touch event's timestamp for DOM touch event
https://bugs.webkit.org/show_bug.cgi?id=134326
Patch by Benjamin Poulain <[email protected]> on 2014-06-26
Reviewed by Enrica Casucci.
* platform/ios/PlatformEventFactoryIOS.mm:
(WebCore::PlatformTouchEventBuilder::PlatformTouchEventBuilder):
Use device event timestamp to get more accurate timing information. This also removes
the variance introduced by WebKit when computing velocity/acceleration/etc.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (170505 => 170506)
--- trunk/Source/WebCore/ChangeLog 2014-06-26 23:43:58 UTC (rev 170505)
+++ trunk/Source/WebCore/ChangeLog 2014-06-26 23:44:31 UTC (rev 170506)
@@ -1,3 +1,15 @@
+2014-06-26 Benjamin Poulain <[email protected]>
+
+ [WK1] Use native touch event's timestamp for DOM touch event
+ https://bugs.webkit.org/show_bug.cgi?id=134326
+
+ Reviewed by Enrica Casucci.
+
+ * platform/ios/PlatformEventFactoryIOS.mm:
+ (WebCore::PlatformTouchEventBuilder::PlatformTouchEventBuilder):
+ Use device event timestamp to get more accurate timing information. This also removes
+ the variance introduced by WebKit when computing velocity/acceleration/etc.
+
2014-06-26 Balazs Kelemen <[email protected]>
Memcache migth not be pruned when it should for https pages
Modified: trunk/Source/WebCore/platform/ios/PlatformEventFactoryIOS.mm (170505 => 170506)
--- trunk/Source/WebCore/platform/ios/PlatformEventFactoryIOS.mm 2014-06-26 23:43:58 UTC (rev 170505)
+++ trunk/Source/WebCore/platform/ios/PlatformEventFactoryIOS.mm 2014-06-26 23:44:31 UTC (rev 170506)
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
+ * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2011, 2014 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -228,7 +228,7 @@
{
m_type = touchEventType(event);
m_modifiers = modifiersForEvent(event);
- m_timestamp = currentTime();
+ m_timestamp = event.timestamp;
m_gestureScale = event.gestureScale;
m_gestureRotation = event.gestureRotation;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes