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

Unified Diff: third_party/WebKit/Source/core/events/PointerEventFactory.cpp

Issue 2024243002: Set default width/height of pointer events to 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/core/events/PointerEventFactory.cpp
diff --git a/third_party/WebKit/Source/core/events/PointerEventFactory.cpp b/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
index 3a28a5324c0bfc5bf4c49f8944dc4c481e31eb59..06cb56535a6c7cae6908a3ff51e5bf955582f554 100644
--- a/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
+++ b/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
@@ -129,10 +129,6 @@ PointerEvent* PointerEventFactory::create(
pointerEventInit.setPressure(getPointerEventPressure(
mouseEvent.pointerProperties().force, pointerEventInit.buttons()));
- // Set width/height to 1 because it matches Edge (and supported by the spec).
- pointerEventInit.setWidth(1);
- pointerEventInit.setHeight(1);
-
UIEventWithKeyState::setFromPlatformModifiers(pointerEventInit, mouseEvent.getModifiers());
// Make sure chorded buttons fire pointermove instead of pointerup/down.

Powered by Google App Engine
This is Rietveld 408576698