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

Unified Diff: content/renderer/compositor_bindings/web_layer_impl_fixed_bounds.cc

Issue 317163002: Moving compositor_bindings from webkit to content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changing dependencies due to failing ios bots Created 6 years, 6 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: content/renderer/compositor_bindings/web_layer_impl_fixed_bounds.cc
diff --git a/webkit/renderer/compositor_bindings/web_layer_impl_fixed_bounds.cc b/content/renderer/compositor_bindings/web_layer_impl_fixed_bounds.cc
similarity index 93%
rename from webkit/renderer/compositor_bindings/web_layer_impl_fixed_bounds.cc
rename to content/renderer/compositor_bindings/web_layer_impl_fixed_bounds.cc
index 134ce406cca04f0d7eebf89828b4799e250ddfb2..6f6c65df9eb23ba1f6f0c6201be08594103e5605 100644
--- a/webkit/renderer/compositor_bindings/web_layer_impl_fixed_bounds.cc
+++ b/content/renderer/compositor_bindings/web_layer_impl_fixed_bounds.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "webkit/renderer/compositor_bindings/web_layer_impl_fixed_bounds.h"
+#include "content/renderer/compositor_bindings/web_layer_impl_fixed_bounds.h"
#include "cc/layers/layer.h"
#include "third_party/WebKit/public/platform/WebFloatPoint.h"
@@ -11,7 +11,7 @@
using cc::Layer;
-namespace webkit {
+namespace content {
WebLayerImplFixedBounds::WebLayerImplFixedBounds() {
}
@@ -20,7 +20,6 @@ WebLayerImplFixedBounds::WebLayerImplFixedBounds(scoped_refptr<Layer> layer)
: WebLayerImpl(layer) {
}
-
WebLayerImplFixedBounds::~WebLayerImplFixedBounds() {
}
@@ -40,8 +39,8 @@ void WebLayerImplFixedBounds::setTransformOrigin(
void WebLayerImplFixedBounds::setBounds(const blink::WebSize& bounds) {
if (original_bounds_ != gfx::Size(bounds)) {
- original_bounds_ = bounds;
- UpdateLayerBoundsAndTransform();
+ original_bounds_ = bounds;
+ UpdateLayerBoundsAndTransform();
}
}
@@ -98,4 +97,5 @@ void WebLayerImplFixedBounds::UpdateLayerBoundsAndTransform() {
layer_->SetTransform(transform_with_bounds_scale);
}
-} // namespace webkit
+} // namespace content
+

Powered by Google App Engine
This is Rietveld 408576698