Index: cc/layer_impl.cc |
diff --git a/cc/layer_impl.cc b/cc/layer_impl.cc |
index 10bd1e260f63ae325a98e7bbd3d70fb81547c100..0d88870514a52e5eb3d5e93f65d581832972267b 100644 |
--- a/cc/layer_impl.cc |
+++ b/cc/layer_impl.cc |
@@ -214,7 +214,7 @@ InputHandlerClient::ScrollStatus LayerImpl::tryScroll(const gfx::PointF& screenS |
if (!nonFastScrollableRegion().IsEmpty()) { |
bool clipped = false; |
gfx::PointF hitTestPointInContentSpace = MathUtil::projectPoint(screenSpaceTransform().inverse(), screenSpacePoint, clipped); |
- gfx::PointF hitTestPointInLayerSpace = hitTestPointInContentSpace.Scale(1 / contentsScaleX(), 1 / contentsScaleY()); |
+ gfx::PointF hitTestPointInLayerSpace = gfx::ScalePoint(hitTestPointInContentSpace, 1 / contentsScaleX(), 1 / contentsScaleY()); |
sky
2012/11/09 16:54:53
Dare I ask, how come the code in cc isn't followin
danakj
2012/11/09 17:04:25
We've fixed some of the style guide rules, but not
|
if (!clipped && nonFastScrollableRegion().Contains(gfx::ToRoundedPoint(hitTestPointInLayerSpace))) { |
TRACE_EVENT0("cc", "LayerImpl::tryScroll: Failed nonFastScrollableRegion"); |
return InputHandlerClient::ScrollOnMainThread; |