| Index: content/renderer/compositor_bindings/web_nine_patch_layer_impl.cc
|
| diff --git a/webkit/renderer/compositor_bindings/web_nine_patch_layer_impl.cc b/content/renderer/compositor_bindings/web_nine_patch_layer_impl.cc
|
| similarity index 70%
|
| rename from webkit/renderer/compositor_bindings/web_nine_patch_layer_impl.cc
|
| rename to content/renderer/compositor_bindings/web_nine_patch_layer_impl.cc
|
| index 6d8f7207393e300d4b341c69f6f1eb46214e0188..b4205a23cf99816be3ff1867f4a9f2f1ac446217 100644
|
| --- a/webkit/renderer/compositor_bindings/web_nine_patch_layer_impl.cc
|
| +++ b/content/renderer/compositor_bindings/web_nine_patch_layer_impl.cc
|
| @@ -2,32 +2,36 @@
|
| // 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_nine_patch_layer_impl.h"
|
| +#include "content/renderer/compositor_bindings/web_nine_patch_layer_impl.h"
|
|
|
| #include "base/command_line.h"
|
| #include "cc/base/switches.h"
|
| #include "cc/layers/nine_patch_layer.h"
|
| #include "cc/layers/picture_image_layer.h"
|
| -#include "webkit/renderer/compositor_bindings/web_layer_impl.h"
|
| -#include "webkit/renderer/compositor_bindings/web_layer_impl_fixed_bounds.h"
|
| +#include "content/renderer/compositor_bindings/web_layer_impl.h"
|
| +#include "content/renderer/compositor_bindings/web_layer_impl_fixed_bounds.h"
|
|
|
| -namespace webkit {
|
| +namespace content {
|
|
|
| WebNinePatchLayerImpl::WebNinePatchLayerImpl() {
|
| layer_.reset(new WebLayerImpl(cc::NinePatchLayer::Create()));
|
| }
|
|
|
| -WebNinePatchLayerImpl::~WebNinePatchLayerImpl() {}
|
| +WebNinePatchLayerImpl::~WebNinePatchLayerImpl() {
|
| +}
|
|
|
| -blink::WebLayer* WebNinePatchLayerImpl::layer() { return layer_.get(); }
|
| +blink::WebLayer* WebNinePatchLayerImpl::layer() {
|
| + return layer_.get();
|
| +}
|
|
|
| void WebNinePatchLayerImpl::setBitmap(SkBitmap bitmap,
|
| const blink::WebRect& aperture) {
|
| setBitmap(bitmap);
|
| setAperture(aperture);
|
| - setBorder(blink::WebRect(aperture.x, aperture.y,
|
| - bitmap.width() - aperture.width,
|
| - bitmap.height() - aperture.height));
|
| + setBorder(blink::WebRect(aperture.x,
|
| + aperture.y,
|
| + bitmap.width() - aperture.width,
|
| + bitmap.height() - aperture.height));
|
| }
|
|
|
| void WebNinePatchLayerImpl::setBitmap(SkBitmap bitmap) {
|
| @@ -54,4 +58,5 @@ void WebNinePatchLayerImpl::setFillCenter(bool fill_center) {
|
| nine_patch->SetFillCenter(fill_center);
|
| }
|
|
|
| -} // namespace webkit
|
| +} // namespace content
|
| +
|
|
|