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

Unified Diff: ui/views/widget/native_widget_aura.cc

Issue 456943004: Fix SetShape (SetAlphaShape) to allow Null regions (+ tests). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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/widget/native_widget_aura.cc
diff --git a/ui/views/widget/native_widget_aura.cc b/ui/views/widget/native_widget_aura.cc
index e57a4ff0bc0ecb56c12fba415058f0d60a13b85f..2f6c5c3b317c8740edc7e5471dfda9d1ad4235b0 100644
--- a/ui/views/widget/native_widget_aura.cc
+++ b/ui/views/widget/native_widget_aura.cc
@@ -439,7 +439,8 @@ void NativeWidgetAura::StackBelow(gfx::NativeView native_view) {
void NativeWidgetAura::SetShape(gfx::NativeRegion region) {
// No need for this. Just delete and ignore.
- delete region;
+ if (region)
sky 2014/08/11 15:26:37 no need for the if.
garykac 2014/08/11 18:19:09 Done.
+ delete region;
}
void NativeWidgetAura::Close() {

Powered by Google App Engine
This is Rietveld 408576698