Chromium Code Reviews| Index: webkit/renderer/compositor_bindings/web_layer_impl_fixed_bounds.cc |
| diff --git a/webkit/renderer/compositor_bindings/web_layer_impl_fixed_bounds.cc b/webkit/renderer/compositor_bindings/web_layer_impl_fixed_bounds.cc |
| index ec6d743cda26e19b75f57804c9bc8d283d4fc161..53ec45ea4e8a165bbd21f3ed1180736baa2f826c 100644 |
| --- a/webkit/renderer/compositor_bindings/web_layer_impl_fixed_bounds.cc |
| +++ b/webkit/renderer/compositor_bindings/web_layer_impl_fixed_bounds.cc |
| @@ -30,10 +30,10 @@ void WebLayerImplFixedBounds::invalidateRect(const blink::WebFloatRect& rect) { |
| invalidate(); |
| } |
| -void WebLayerImplFixedBounds::setAnchorPoint( |
| - const blink::WebFloatPoint& anchor_point) { |
| - if (anchor_point != this->anchorPoint()) { |
| - layer_->SetAnchorPoint(anchor_point); |
| +void WebLayerImplFixedBounds::setTransformOrigin( |
| + const blink::WebFloatPoint3D& transform_origin) { |
| + if (transform_origin != this->transformOrigin()) { |
| + layer_->SetTransformOrigin(transform_origin); |
| UpdateLayerBoundsAndTransform(); |
| } |
| } |
| @@ -75,11 +75,13 @@ void WebLayerImplFixedBounds::SetTransformInternal( |
| } |
| void WebLayerImplFixedBounds::UpdateLayerBoundsAndTransform() { |
| + LOG(ERROR) << "WebLayerImplFixedBounds::UpdateLayerBoundsAndTransform"; |
|
enne (OOO)
2014/06/03 22:25:52
ಠ_ಠ
|
| if (fixed_bounds_.IsEmpty() || original_bounds_.IsEmpty() || |
| fixed_bounds_ == original_bounds_ || |
| - // For now fall back to non-fixed bounds for non-zero anchor point. |
| + // For now fall back to non-fixed bounds for non-zero transform origin. |
| // TODO(wangxianzhu): Support non-zero anchor point for fixed bounds. |
| - anchorPoint().x || anchorPoint().y) { |
| + transformOrigin().x || |
| + transformOrigin().y) { |
| layer_->SetBounds(original_bounds_); |
| layer_->SetTransform(original_transform_); |
| return; |