Title: [278328] trunk/Source/WebCore
Revision
278328
Author
[email protected]
Date
2021-06-01 14:04:36 -0700 (Tue, 01 Jun 2021)

Log Message

[Win] Remove unused GraphicsContext::hdc()
https://bugs.webkit.org/show_bug.cgi?id=226309

Reviewed by Anders Carlsson.

* platform/graphics/GraphicsContext.h:
* platform/graphics/win/GraphicsContextWin.cpp:
(WebCore::GraphicsContext::hdc const): Deleted.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (278327 => 278328)


--- trunk/Source/WebCore/ChangeLog	2021-06-01 21:04:18 UTC (rev 278327)
+++ trunk/Source/WebCore/ChangeLog	2021-06-01 21:04:36 UTC (rev 278328)
@@ -1,3 +1,14 @@
+2021-06-01  Fujii Hironori  <[email protected]>
+
+        [Win] Remove unused GraphicsContext::hdc()
+        https://bugs.webkit.org/show_bug.cgi?id=226309
+
+        Reviewed by Anders Carlsson.
+
+        * platform/graphics/GraphicsContext.h:
+        * platform/graphics/win/GraphicsContextWin.cpp:
+        (WebCore::GraphicsContext::hdc const): Deleted.
+
 2021-06-01  Cameron McCormack  <[email protected]>
 
         Remove duplicate "behavior for fixed" entry from scrolling state tree logging

Modified: trunk/Source/WebCore/platform/graphics/GraphicsContext.h (278327 => 278328)


--- trunk/Source/WebCore/platform/graphics/GraphicsContext.h	2021-06-01 21:04:18 UTC (rev 278327)
+++ trunk/Source/WebCore/platform/graphics/GraphicsContext.h	2021-06-01 21:04:36 UTC (rev 278328)
@@ -533,7 +533,6 @@
 #if OS(WINDOWS)
     HDC getWindowsContext(const IntRect&, bool supportAlphaBlend); // The passed in rect is used to create a bitmap for compositing inside transparency layers.
     void releaseWindowsContext(HDC, const IntRect&, bool supportAlphaBlend); // The passed in HDC should be the one handed back by getWindowsContext.
-    HDC hdc() const;
 
     // FIXME: This should not exist; we need a different place to
     // put code shared between Windows CG and Windows Cairo backends.

Modified: trunk/Source/WebCore/platform/graphics/win/GraphicsContextWin.cpp (278327 => 278328)


--- trunk/Source/WebCore/platform/graphics/win/GraphicsContextWin.cpp	2021-06-01 21:04:18 UTC (rev 278327)
+++ trunk/Source/WebCore/platform/graphics/win/GraphicsContextWin.cpp	2021-06-01 21:04:36 UTC (rev 278328)
@@ -104,14 +104,6 @@
     return deprecatedPrivateContext()->m_hdc;
 }
 
-HDC GraphicsContext::hdc() const
-{
-    if (!deprecatedPrivateContext())
-        return nullptr;
-
-    return deprecatedPrivateContext()->m_hdc;
-}
-
 #if PLATFORM(WIN) && !USE(DIRECT2D)
 void GraphicsContextPlatformPrivate::save()
 {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to