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

Unified Diff: chrome/browser/ui/views/panels/panel_frame_view.cc

Issue 673623002: Fix regions generation on windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CreateHRGNFromSkPath can return empty region now. Created 6 years, 2 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
« no previous file with comments | « no previous file | ui/gfx/gfx_tests.gyp » ('j') | ui/gfx/path_win_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/panels/panel_frame_view.cc
diff --git a/chrome/browser/ui/views/panels/panel_frame_view.cc b/chrome/browser/ui/views/panels/panel_frame_view.cc
index aca6c2d6be4ba61e4d28e7d0418c88a55ad717c9..0e0eb133df35424d51ba3def587359faf9048885 100644
--- a/chrome/browser/ui/views/panels/panel_frame_view.cc
+++ b/chrome/browser/ui/views/panels/panel_frame_view.cc
@@ -355,7 +355,10 @@ void PanelFrameView::SetWindowCornerStyle(panel::CornerStyle corner_style) {
gfx::Path window_mask;
GetWindowMask(size(), &window_mask);
- base::win::ScopedRegion new_region(gfx::CreateHRGNFromSkPath(window_mask));
+ base::win::ScopedRegion new_region(
+ !window_mask.isEmpty() ?
+ gfx::CreateHRGNFromSkPath(window_mask) :
+ NULL);
Wez 2014/10/27 20:28:39 base::win::ScopedRegion new_region; if (!window_ma
alex-ac 2014/10/28 10:38:35 Done.
if (current_region_result == ERROR ||
!::EqualRgn(current_region, new_region)) {
Wez 2014/10/27 20:28:39 Does EqualRgn actually return true for (NULL, NULL
alex-ac 2014/10/28 10:38:35 EqualRgn will return ERROR if one of handles is in
« no previous file with comments | « no previous file | ui/gfx/gfx_tests.gyp » ('j') | ui/gfx/path_win_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698