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

Unified Diff: cc/layer.cc

Issue 11366089: cc: Remove all remaining use of WebCore Rect/Point/Size types from the compositor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove gyp entries for stubs Created 8 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
« no previous file with comments | « cc/layer.h ('k') | cc/layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer.cc
diff --git a/cc/layer.cc b/cc/layer.cc
index 1377dec1a7f0ece61ffd07a17ad23135ea48c34e..b11c5e687140f8afc7b2e048d6f36c0479ee6dcc 100644
--- a/cc/layer.cc
+++ b/cc/layer.cc
@@ -408,21 +408,21 @@ bool Layer::transformIsAnimating() const
return m_layerAnimationController->isAnimatingProperty(ActiveAnimation::Transform);
}
-void Layer::setScrollPosition(const IntPoint& scrollPosition)
+void Layer::setScrollOffset(gfx::Vector2d scrollOffset)
{
- if (m_scrollPosition == scrollPosition)
+ if (m_scrollOffset == scrollOffset)
return;
- m_scrollPosition = scrollPosition;
+ m_scrollOffset = scrollOffset;
if (m_layerScrollClient)
m_layerScrollClient->didScroll();
setNeedsCommit();
}
-void Layer::setMaxScrollPosition(const IntSize& maxScrollPosition)
+void Layer::setMaxScrollOffset(gfx::Vector2d maxScrollOffset)
{
- if (m_maxScrollPosition == maxScrollPosition)
+ if (m_maxScrollOffset == maxScrollOffset)
return;
- m_maxScrollPosition = maxScrollPosition;
+ m_maxScrollOffset = maxScrollOffset;
setNeedsCommit();
}
@@ -587,8 +587,8 @@ void Layer::pushPropertiesTo(LayerImpl* layer)
layer->setFixedToContainerLayer(m_fixedToContainerLayer);
layer->setPreserves3D(preserves3D());
layer->setUseParentBackfaceVisibility(m_useParentBackfaceVisibility);
- layer->setScrollPosition(m_scrollPosition);
- layer->setMaxScrollPosition(m_maxScrollPosition);
+ layer->setScrollOffset(m_scrollOffset);
+ layer->setMaxScrollOffset(m_maxScrollOffset);
layer->setSublayerTransform(m_sublayerTransform);
if (!transformIsAnimating())
layer->setTransform(m_transform);
@@ -600,7 +600,7 @@ void Layer::pushPropertiesTo(LayerImpl* layer)
layer->setUpdateRect(m_updateRect);
layer->setScrollDelta(layer->scrollDelta() - layer->sentScrollDelta());
- layer->setSentScrollDelta(IntSize());
+ layer->setSentScrollDelta(gfx::Vector2d());
layer->setStackingOrderChanged(m_stackingOrderChanged);
« no previous file with comments | « cc/layer.h ('k') | cc/layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698