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

Unified Diff: ui/views/view.cc

Issue 12226080: Thread ui transform animations (Closed) Base URL: http://git.chromium.org/chromium/src.git@DefineThreadedLayerAnimationElements
Patch Set: Fix WebContentsViewAuraTest.QuickOverscrollDirectionChange Created 7 years, 10 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: ui/views/view.cc
diff --git a/ui/views/view.cc b/ui/views/view.cc
index 98e3b44b210a9652d9abf9a81f277fa4edd7421d..459d5247fc3a10fce1ac896adc9fad2fc67620a7 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -494,9 +494,8 @@ void View::OnEnabledChanged() {
// Transformations -------------------------------------------------------------
-const gfx::Transform& View::GetTransform() const {
- static const gfx::Transform* no_op = new gfx::Transform;
- return layer() ? layer()->transform() : *no_op;
+gfx::Transform View::GetTransform() const {
+ return layer() ? layer()->transform() : gfx::Transform();
}
void View::SetTransform(const gfx::Transform& transform) {
« content/browser/web_contents/web_contents_view_aura_browsertest.cc ('K') | « ui/views/view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698