|
Lines 768-777
void WebViewImpl::renderingStats(WebRenderingStats& stats) const
a/Source/WebKit/chromium/src/WebViewImpl.cpp_sec1
|
| 768 |
m_layerTreeView.renderingStats(stats); |
768 |
m_layerTreeView.renderingStats(stats); |
| 769 |
} |
769 |
} |
| 770 |
|
770 |
|
| 771 |
void WebViewImpl::startPageScaleAnimation(const IntPoint& scroll, bool useAnchor, float newScale, double durationInSeconds) |
771 |
void WebViewImpl::startPageScaleAnimation(const IntPoint& targetPosition, bool useAnchor, float newScale, double durationInSeconds) |
| 772 |
{ |
772 |
{ |
| 773 |
if (!m_layerTreeView.isNull()) |
773 |
if (m_layerTreeView.isNull()) |
| 774 |
m_layerTreeView.startPageScaleAnimation(scroll, useAnchor, newScale, durationInSeconds); |
774 |
return; |
|
|
775 |
|
| 776 |
IntPoint clampedPoint = targetPosition; |
| 777 |
if (!useAnchor) |
| 778 |
clampedPoint = clampOffsetAtScale(targetPosition, newScale); |
| 779 |
|
| 780 |
if (!durationInSeconds && !useAnchor) { |
| 781 |
setPageScaleFactor(newScale, clampedPoint); |
| 782 |
return; |
| 783 |
} |
| 784 |
|
| 785 |
m_layerTreeView.startPageScaleAnimation(targetPosition, useAnchor, newScale, durationInSeconds); |
| 775 |
} |
786 |
} |
| 776 |
#endif |
787 |
#endif |
| 777 |
|
788 |
|