| Index: cc/CCLayerImpl.cpp
|
| diff --git a/cc/CCLayerImpl.cpp b/cc/CCLayerImpl.cpp
|
| index a78453d4883323cc991963c508d6f43a91ac2caa..9fa2139eaf3fe11c1a56de05bce3e1d3331cd90e 100644
|
| --- a/cc/CCLayerImpl.cpp
|
| +++ b/cc/CCLayerImpl.cpp
|
| @@ -209,6 +209,15 @@ CCInputHandlerClient::ScrollStatus CCLayerImpl::tryScroll(const IntPoint& viewpo
|
| return CCInputHandlerClient::ScrollStarted;
|
| }
|
|
|
| +IntRect CCLayerImpl::layerRectToContentRect(const WebKit::WebRect& layerRect)
|
| +{
|
| + float widthScale = static_cast<float>(contentBounds().width()) / bounds().width();
|
| + float heightScale = static_cast<float>(contentBounds().height()) / bounds().height();
|
| + FloatRect contentRect(layerRect.x, layerRect.y, layerRect.width, layerRect.height);
|
| + contentRect.scale(widthScale, heightScale);
|
| + return enclosingIntRect(contentRect);
|
| +}
|
| +
|
| std::string CCLayerImpl::indentString(int indent)
|
| {
|
| std::string str;
|
|
|