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

Unified Diff: webkit/compositor_bindings/web_layer_impl_fixed_bounds.cc

Issue 12496013: Move compositor bindings implementations out of WebKit::, fix style (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 036b7e0055f151c5e42253c83e9d64aa4b53859d..b4ef0e214f932ebb8a393c4a57c7912e67107212 100644
--- a/webkit/compositor_bindings/web_layer_impl_fixed_bounds.cc
+++ b/webkit/compositor_bindings/web_layer_impl_fixed_bounds.cc
@@ -11,7 +11,7 @@
using cc::Layer;
-namespace WebKit {
+namespace webkit {
WebLayerImplFixedBounds::WebLayerImplFixedBounds() {
}
@@ -24,28 +24,28 @@ WebLayerImplFixedBounds::WebLayerImplFixedBounds(scoped_refptr<Layer> layer)
WebLayerImplFixedBounds::~WebLayerImplFixedBounds() {
}
-void WebLayerImplFixedBounds::invalidateRect(const WebFloatRect& rect) {
+void WebLayerImplFixedBounds::invalidateRect(const WebKit::WebFloatRect& rect) {
// Partial invalidations seldom occur for such layers.
// Simply invalidate the whole layer to avoid transformation of coordinates.
invalidate();
}
void WebLayerImplFixedBounds::setAnchorPoint(
- const WebFloatPoint& anchor_point) {
+ const WebKit::WebFloatPoint& anchor_point) {
if (anchor_point != this->anchorPoint()) {
layer_->SetAnchorPoint(anchor_point);
UpdateLayerBoundsAndTransform();
}
}
-void WebLayerImplFixedBounds::setBounds(const WebSize& bounds) {
+void WebLayerImplFixedBounds::setBounds(const WebKit::WebSize& bounds) {
if (original_bounds_ != gfx::Size(bounds)) {
original_bounds_ = bounds;
UpdateLayerBoundsAndTransform();
}
}
-WebSize WebLayerImplFixedBounds::bounds() const {
+WebKit::WebSize WebLayerImplFixedBounds::bounds() const {
return original_bounds_;
}
@@ -92,8 +92,7 @@ void WebLayerImplFixedBounds::SetTransformInternal(
}
}
-void WebLayerImplFixedBounds::UpdateLayerBoundsAndTransform()
-{
+void WebLayerImplFixedBounds::UpdateLayerBoundsAndTransform() {
if (fixed_bounds_.IsEmpty() || original_bounds_.IsEmpty() ||
fixed_bounds_ == original_bounds_ ||
// For now fall back to non-fixed bounds for non-zero anchor point.
@@ -126,4 +125,4 @@ void WebLayerImplFixedBounds::UpdateLayerBoundsAndTransform()
layer_->SetSublayerTransform(sublayer_transform_with_inverse_bounds_scale);
}
-} // namespace WebKit
+} // namespace WebKit

Powered by Google App Engine
This is Rietveld 408576698