Index: ash/frame/caption_buttons/frame_caption_button.cc |
diff --git a/ash/frame/caption_buttons/frame_caption_button.cc b/ash/frame/caption_buttons/frame_caption_button.cc |
index df41fb45b5574758ae040b72a19ada6455160e01..c8d71c39c13a8cb2391dc231fe2fee0ece2096fb 100644 |
--- a/ash/frame/caption_buttons/frame_caption_button.cc |
+++ b/ash/frame/caption_buttons/frame_caption_button.cc |
@@ -5,11 +5,9 @@ |
#include "ash/frame/caption_buttons/frame_caption_button.h" |
#include "ui/base/resource/resource_bundle.h" |
-#include "ui/compositor/layer.h" |
#include "ui/gfx/animation/slide_animation.h" |
#include "ui/gfx/animation/throb_animation.h" |
#include "ui/gfx/canvas.h" |
-#include "ui/views/widget/widget.h" |
namespace ash { |
@@ -39,10 +37,6 @@ FrameCaptionButton::FrameCaptionButton(views::ButtonListener* listener, |
swap_images_animation_(new gfx::SlideAnimation(this)) { |
swap_images_animation_->Reset(1); |
- SetPaintToLayer(true); |
- SetFillsBoundsOpaquely(false); |
- set_layer_owner_delegate(this); |
- |
// Do not flip the gfx::Canvas passed to the OnPaint() method. The snap left |
// and snap right button icons should not be flipped. The other icons are |
// horizontally symmetrical. |
@@ -180,9 +174,4 @@ void FrameCaptionButton::PaintCentered(gfx::Canvas* canvas, |
paint); |
} |
-void FrameCaptionButton::OnLayerRecreated(ui::Layer* old_layer, |
- ui::Layer* new_layer) { |
- GetWidget()->UpdateRootLayers(); |
-} |
- |
} // namespace ash |