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

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

Issue 2491703004: Replace roundedLayoutPoint with LayoutPoint (Closed)
Patch Set: Created 4 years, 1 month 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/MouseRelatedEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/MouseRelatedEvent.cpp b/third_party/WebKit/Source/core/events/MouseRelatedEvent.cpp
index 30ba23a1eaa78aa5425e45153dafcf60e03fac1b..111fa052ead619cdfb278b41160667ee4aa67287 100644
--- a/third_party/WebKit/Source/core/events/MouseRelatedEvent.cpp
+++ b/third_party/WebKit/Source/core/events/MouseRelatedEvent.cpp
@@ -138,8 +138,8 @@ static float pageZoomFactor(const UIEvent* event) {
void MouseRelatedEvent::computePageLocation() {
float scaleFactor = pageZoomFactor(this);
- setAbsoluteLocation(roundedLayoutPoint(
- FloatPoint(pageX() * scaleFactor, pageY() * scaleFactor)));
+ setAbsoluteLocation(
+ LayoutPoint(FloatPoint(pageX() * scaleFactor, pageY() * scaleFactor)));
}
void MouseRelatedEvent::receivedTarget() {
@@ -187,7 +187,7 @@ void MouseRelatedEvent::computeRelativePosition() {
localPos.move(-layoutBox->borderLeft(), -layoutBox->borderTop());
}
- m_offsetLocation = roundedLayoutPoint(localPos);
+ m_offsetLocation = LayoutPoint(localPos);
float scaleFactor = 1 / pageZoomFactor(this);
if (scaleFactor != 1.0f)
m_offsetLocation.scale(scaleFactor, scaleFactor);

Powered by Google App Engine
This is Rietveld 408576698