| 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
|
|
|