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

Unified Diff: webkit/compositor_bindings/web_layer_impl_fixed_bounds.cc

Issue 12774006: cc: Chromify Layer and LayerImpl classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: MoreAndroidCompilings Created 7 years, 9 months 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: webkit/compositor_bindings/web_layer_impl_fixed_bounds.cc
diff --git a/webkit/compositor_bindings/web_layer_impl_fixed_bounds.cc b/webkit/compositor_bindings/web_layer_impl_fixed_bounds.cc
index ea51d27eee3a85bd90c65e3bc130230626387591..75e01cc4014cd9bdd11ca497f5b03dd4a9151c18 100644
--- a/webkit/compositor_bindings/web_layer_impl_fixed_bounds.cc
+++ b/webkit/compositor_bindings/web_layer_impl_fixed_bounds.cc
@@ -36,7 +36,7 @@ void WebLayerImplFixedBounds::invalidateRect(const WebFloatRect& rect) {
void WebLayerImplFixedBounds::setAnchorPoint(
const WebFloatPoint& anchor_point) {
if (anchor_point != this->anchorPoint()) {
- layer_->setAnchorPoint(anchor_point);
+ layer_->SetAnchorPoint(anchor_point);
UpdateLayerBoundsAndTransform();
}
}
@@ -113,13 +113,13 @@ void WebLayerImplFixedBounds::UpdateLayerBoundsAndTransform()
// For now fall back to non-fixed bounds for non-zero anchor point.
// TODO(wangxianzhu): Support non-zero anchor point for fixed bounds.
anchorPoint().x || anchorPoint().y) {
- layer_->setBounds(original_bounds_);
- layer_->setTransform(original_transform_);
- layer_->setSublayerTransform(original_sublayer_transform_);
+ layer_->SetBounds(original_bounds_);
+ layer_->SetTransform(original_transform_);
+ layer_->SetSublayerTransform(original_sublayer_transform_);
return;
}
- layer_->setBounds(fixed_bounds_);
+ layer_->SetBounds(fixed_bounds_);
// Apply bounds scale (bounds/fixed_bounds) over original transform.
gfx::Transform transform_with_bounds_scale(original_transform_);
@@ -128,7 +128,7 @@ void WebLayerImplFixedBounds::UpdateLayerBoundsAndTransform()
float bounds_scale_y =
static_cast<float>(original_bounds_.height()) / fixed_bounds_.height();
transform_with_bounds_scale.Scale(bounds_scale_x, bounds_scale_y);
- layer_->setTransform(transform_with_bounds_scale);
+ layer_->SetTransform(transform_with_bounds_scale);
// As we apply extra scale transform on this layer which will propagate to the
// sublayers, here undo the scale on sublayers.
@@ -137,7 +137,7 @@ void WebLayerImplFixedBounds::UpdateLayerBoundsAndTransform()
1.f / bounds_scale_y);
sublayer_transform_with_inverse_bounds_scale.PreconcatTransform(
original_sublayer_transform_);
- layer_->setSublayerTransform(sublayer_transform_with_inverse_bounds_scale);
+ layer_->SetSublayerTransform(sublayer_transform_with_inverse_bounds_scale);
}
} // namespace WebKit
« no previous file with comments | « webkit/compositor_bindings/web_layer_impl.cc ('k') | webkit/compositor_bindings/web_layer_impl_fixed_bounds_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698