diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-07-16 11:45:35 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-07-17 08:59:23 +0000 |
commit | 552906b0f222c5d5dd11b9fd73829d510980461a (patch) | |
tree | 3a11e6ed0538a81dd83b20cf3a4783e297f26d91 /chromium/base/win/scoped_hdc.h | |
parent | 1b05827804eaf047779b597718c03e7d38344261 (diff) | |
download | qtwebengine-chromium-552906b0f222c5d5dd11b9fd73829d510980461a.tar.gz |
BASELINE: Update Chromium to 83.0.4103.122
Change-Id: Ie3a82f5bb0076eec2a7c6a6162326b4301ee291e
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/base/win/scoped_hdc.h')
-rw-r--r-- | chromium/base/win/scoped_hdc.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/chromium/base/win/scoped_hdc.h b/chromium/base/win/scoped_hdc.h index 890e34a82c5..4532d91bb2d 100644 --- a/chromium/base/win/scoped_hdc.h +++ b/chromium/base/win/scoped_hdc.h @@ -19,9 +19,7 @@ namespace win { // GetDC. class ScopedGetDC { public: - explicit ScopedGetDC(HWND hwnd) - : hwnd_(hwnd), - hdc_(GetDC(hwnd)) { + explicit ScopedGetDC(HWND hwnd) : hwnd_(hwnd), hdc_(GetDC(hwnd)) { if (hwnd_) { DCHECK(IsWindow(hwnd_)); DCHECK(hdc_); @@ -54,17 +52,11 @@ class CreateDCTraits { public: typedef HDC Handle; - static bool CloseHandle(HDC handle) { - return ::DeleteDC(handle) != FALSE; - } + static bool CloseHandle(HDC handle) { return ::DeleteDC(handle) != FALSE; } - static bool IsHandleValid(HDC handle) { - return handle != NULL; - } + static bool IsHandleValid(HDC handle) { return handle != NULL; } - static HDC NullHandle() { - return NULL; - } + static HDC NullHandle() { return NULL; } private: DISALLOW_IMPLICIT_CONSTRUCTORS(CreateDCTraits); |