<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[286917] trunk/Source</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/286917">286917</a></dd>
<dt>Author</dt> <dd>don.olmstead@sony.com</dd>
<dt>Date</dt> <dd>2021-12-11 12:48:55 -0800 (Sat, 11 Dec 2021)</dd>
</dl>

<h3>Log Message</h3>
<pre>Add a std::nullptr_t constructor for RefPtr
https://bugs.webkit.org/show_bug.cgi?id=234192

Reviewed by Yusuke Suzuki.

Source/WebCore:

Remove uses of `0` when creating an empty RefPtr.

* accessibility/AccessibilityObject.cpp:
(WebCore::Accessibility::findMatchingObjects):
* platform/graphics/cairo/CairoUtilities.cpp:
(WebCore::drawPatternToCairoContext):
* platform/graphics/texmap/TextureMapperGL.cpp:
(WebCore::TextureMapperGL::drawTexture):
(WebCore::TextureMapperGL::drawTexturePlanarYUV):
(WebCore::TextureMapperGL::drawTextureSemiPlanarYUV):
(WebCore::TextureMapperGL::drawTexturePackedYUV):
* platform/graphics/win/IconWin.cpp:
(WebCore::Icon::createIconForFiles):
* platform/graphics/win/ImageCGWin.cpp:
(WebCore::BitmapImage::create):
* platform/graphics/win/ImageCairoWin.cpp:
(WebCore::BitmapImage::create):
* platform/win/DragImageWin.cpp:
(WebCore::dragLabelFont):

Source/WebKit:

Remove uses of `0` when creating an empty RefPtr.

* WebProcess/win/WebProcessWin.cpp:
(loadResourceIntoBuffer):

Source/WebKitLegacy/win:

Remove uses of `0` when creating an empty RefPtr.

* FullscreenVideoController.cpp:
(FullscreenVideoController::draw):
* WebArchive.cpp:
(WebArchive::createInstance):

Source/WTF:

Add the constexpr constructor RefPtr(std::nullptr_t) with the same behavior as the default
constructor. Both std::unique_ptr and std::shared_ptr have this same overload to optimize
for the nullptr case. As an added bonus this also makes it so `0` can't fill in as a
nullptr since the ambiguity will cause a compilation error.

* wtf/RefPtr.h:
(WTF::RefPtr::RefPtr):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWTFChangeLog">trunk/Source/WTF/ChangeLog</a></li>
<li><a href="#trunkSourceWTFwtfRefPtrh">trunk/Source/WTF/wtf/RefPtr.h</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreaccessibilityAccessibilityObjectcpp">trunk/Source/WebCore/accessibility/AccessibilityObject.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicscairoCairoUtilitiescpp">trunk/Source/WebCore/platform/graphics/cairo/CairoUtilities.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicstexmapTextureMapperGLcpp">trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicswinIconWincpp">trunk/Source/WebCore/platform/graphics/win/IconWin.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicswinImageCGWincpp">trunk/Source/WebCore/platform/graphics/win/ImageCGWin.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicswinImageCairoWincpp">trunk/Source/WebCore/platform/graphics/win/ImageCairoWin.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformwinDragImageWincpp">trunk/Source/WebCore/platform/win/DragImageWin.cpp</a></li>
<li><a href="#trunkSourceWebKitChangeLog">trunk/Source/WebKit/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitWebProcesswinWebProcessWincpp">trunk/Source/WebKit/WebProcess/win/WebProcessWin.cpp</a></li>
<li><a href="#trunkSourceWebKitLegacywinChangeLog">trunk/Source/WebKitLegacy/win/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitLegacywinFullscreenVideoControllercpp">trunk/Source/WebKitLegacy/win/FullscreenVideoController.cpp</a></li>
<li><a href="#trunkSourceWebKitLegacywinWebArchivecpp">trunk/Source/WebKitLegacy/win/WebArchive.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWTFChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/ChangeLog (286916 => 286917)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/ChangeLog       2021-12-11 18:28:39 UTC (rev 286916)
+++ trunk/Source/WTF/ChangeLog  2021-12-11 20:48:55 UTC (rev 286917)
</span><span class="lines">@@ -1,3 +1,18 @@
</span><ins>+2021-12-11  Don Olmstead  <don.olmstead@sony.com>
+
+        Add a std::nullptr_t constructor for RefPtr
+        https://bugs.webkit.org/show_bug.cgi?id=234192
+
+        Reviewed by Yusuke Suzuki.
+
+        Add the constexpr constructor RefPtr(std::nullptr_t) with the same behavior as the default
+        constructor. Both std::unique_ptr and std::shared_ptr have this same overload to optimize
+        for the nullptr case. As an added bonus this also makes it so `0` can't fill in as a
+        nullptr since the ambiguity will cause a compilation error.
+
+        * wtf/RefPtr.h:
+        (WTF::RefPtr::RefPtr):
+
</ins><span class="cx"> 2021-12-11  Commit Queue  <commit-queue@webkit.org>
</span><span class="cx"> 
</span><span class="cx">         Unreviewed, reverting r286893.
</span></span></pre></div>
<a id="trunkSourceWTFwtfRefPtrh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/RefPtr.h (286916 => 286917)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/RefPtr.h    2021-12-11 18:28:39 UTC (rev 286916)
+++ trunk/Source/WTF/wtf/RefPtr.h       2021-12-11 20:48:55 UTC (rev 286917)
</span><span class="lines">@@ -58,6 +58,7 @@
</span><span class="cx">     static constexpr bool isRefPtr = true;
</span><span class="cx"> 
</span><span class="cx">     ALWAYS_INLINE constexpr RefPtr() : m_ptr(nullptr) { }
</span><ins>+    ALWAYS_INLINE constexpr RefPtr(std::nullptr_t) : m_ptr(nullptr) { }
</ins><span class="cx">     ALWAYS_INLINE RefPtr(T* ptr) : m_ptr(ptr) { RefDerefTraits::refIfNotNull(ptr); }
</span><span class="cx">     ALWAYS_INLINE RefPtr(const RefPtr& o) : m_ptr(o.m_ptr) { RefDerefTraits::refIfNotNull(PtrTraits::unwrap(m_ptr)); }
</span><span class="cx">     template<typename X, typename Y, typename Z> RefPtr(const RefPtr<X, Y, Z>& o) : m_ptr(o.get()) { RefDerefTraits::refIfNotNull(PtrTraits::unwrap(m_ptr)); }
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (286916 => 286917)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog   2021-12-11 18:28:39 UTC (rev 286916)
+++ trunk/Source/WebCore/ChangeLog      2021-12-11 20:48:55 UTC (rev 286917)
</span><span class="lines">@@ -1,3 +1,30 @@
</span><ins>+2021-12-11  Don Olmstead  <don.olmstead@sony.com>
+
+        Add a std::nullptr_t constructor for RefPtr
+        https://bugs.webkit.org/show_bug.cgi?id=234192
+
+        Reviewed by Yusuke Suzuki.
+
+        Remove uses of `0` when creating an empty RefPtr.
+
+        * accessibility/AccessibilityObject.cpp:
+        (WebCore::Accessibility::findMatchingObjects):
+        * platform/graphics/cairo/CairoUtilities.cpp:
+        (WebCore::drawPatternToCairoContext):
+        * platform/graphics/texmap/TextureMapperGL.cpp:
+        (WebCore::TextureMapperGL::drawTexture):
+        (WebCore::TextureMapperGL::drawTexturePlanarYUV):
+        (WebCore::TextureMapperGL::drawTextureSemiPlanarYUV):
+        (WebCore::TextureMapperGL::drawTexturePackedYUV):
+        * platform/graphics/win/IconWin.cpp:
+        (WebCore::Icon::createIconForFiles):
+        * platform/graphics/win/ImageCGWin.cpp:
+        (WebCore::BitmapImage::create):
+        * platform/graphics/win/ImageCairoWin.cpp:
+        (WebCore::BitmapImage::create):
+        * platform/win/DragImageWin.cpp:
+        (WebCore::dragLabelFont):
+
</ins><span class="cx"> 2021-12-11  Antti Koivisto  <antti@apple.com>
</span><span class="cx"> 
</span><span class="cx">         Remove redundant StyleRule::Type enum
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityAccessibilityObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/AccessibilityObject.cpp (286916 => 286917)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/AccessibilityObject.cpp       2021-12-11 18:28:39 UTC (rev 286916)
+++ trunk/Source/WebCore/accessibility/AccessibilityObject.cpp  2021-12-11 20:48:55 UTC (rev 286917)
</span><span class="lines">@@ -4157,7 +4157,7 @@
</span><span class="cx">                 break;
</span><span class="cx"> 
</span><span class="cx">             if (!criteria.immediateDescendantsOnly)
</span><del>-                appendChildrenToArray(searchObject, isForward, 0, searchStack);
</del><ins>+                appendChildrenToArray(searchObject, isForward, nullptr, searchStack);
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         if (results.size() >= criteria.resultsLimit)
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicscairoCairoUtilitiescpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/cairo/CairoUtilities.cpp (286916 => 286917)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/cairo/CairoUtilities.cpp  2021-12-11 18:28:39 UTC (rev 286916)
+++ trunk/Source/WebCore/platform/graphics/cairo/CairoUtilities.cpp     2021-12-11 20:48:55 UTC (rev 286917)
</span><span class="lines">@@ -197,7 +197,7 @@
</span><span class="cx"> 
</span><span class="cx">     cairo_save(cr);
</span><span class="cx"> 
</span><del>-    RefPtr<cairo_surface_t> clippedImageSurface = 0;
</del><ins>+    RefPtr<cairo_surface_t> clippedImageSurface;
</ins><span class="cx">     if (tileRect.size() != imageSize) {
</span><span class="cx">         IntRect imageRect = enclosingIntRect(tileRect);
</span><span class="cx">         clippedImageSurface = adoptRef(cairo_image_surface_create(CAIRO_FORMAT_ARGB32, imageRect.width(), imageRect.height()));
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicstexmapTextureMapperGLcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp (286916 => 286917)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp        2021-12-11 18:28:39 UTC (rev 286916)
+++ trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp   2021-12-11 20:48:55 UTC (rev 286917)
</span><span class="lines">@@ -485,7 +485,7 @@
</span><span class="cx">     if (wrapMode() == RepeatWrap && !m_contextAttributes.supportsNPOTTextures)
</span><span class="cx">         options |= TextureMapperShaderProgram::ManualRepeat;
</span><span class="cx"> 
</span><del>-    RefPtr<FilterOperation> filter = data().filterInfo ? data().filterInfo->filter: 0;
</del><ins>+    RefPtr<FilterOperation> filter = data().filterInfo ? data().filterInfo->filter: nullptr;
</ins><span class="cx">     GLuint filterContentTextureID = 0;
</span><span class="cx"> 
</span><span class="cx">     if (filter) {
</span><span class="lines">@@ -559,7 +559,7 @@
</span><span class="cx">     if (wrapMode() == RepeatWrap && !m_contextAttributes.supportsNPOTTextures)
</span><span class="cx">         options |= TextureMapperShaderProgram::ManualRepeat;
</span><span class="cx"> 
</span><del>-    RefPtr<FilterOperation> filter = data().filterInfo ? data().filterInfo->filter: 0;
</del><ins>+    RefPtr<FilterOperation> filter = data().filterInfo ? data().filterInfo->filter: nullptr;
</ins><span class="cx">     GLuint filterContentTextureID = 0;
</span><span class="cx"> 
</span><span class="cx">     if (filter) {
</span><span class="lines">@@ -623,7 +623,7 @@
</span><span class="cx">     if (wrapMode() == RepeatWrap && !m_contextAttributes.supportsNPOTTextures)
</span><span class="cx">         options |= TextureMapperShaderProgram::ManualRepeat;
</span><span class="cx"> 
</span><del>-    RefPtr<FilterOperation> filter = data().filterInfo ? data().filterInfo->filter: 0;
</del><ins>+    RefPtr<FilterOperation> filter = data().filterInfo ? data().filterInfo->filter: nullptr;
</ins><span class="cx">     GLuint filterContentTextureID = 0;
</span><span class="cx"> 
</span><span class="cx">     if (filter) {
</span><span class="lines">@@ -679,7 +679,7 @@
</span><span class="cx">     if (wrapMode() == RepeatWrap && !m_contextAttributes.supportsNPOTTextures)
</span><span class="cx">         options |= TextureMapperShaderProgram::ManualRepeat;
</span><span class="cx"> 
</span><del>-    RefPtr<FilterOperation> filter = data().filterInfo ? data().filterInfo->filter: 0;
</del><ins>+    RefPtr<FilterOperation> filter = data().filterInfo ? data().filterInfo->filter: nullptr;
</ins><span class="cx">     GLuint filterContentTextureID = 0;
</span><span class="cx"> 
</span><span class="cx">     if (filter) {
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicswinIconWincpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/win/IconWin.cpp (286916 => 286917)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/win/IconWin.cpp   2021-12-11 18:28:39 UTC (rev 286916)
+++ trunk/Source/WebCore/platform/graphics/win/IconWin.cpp      2021-12-11 20:48:55 UTC (rev 286917)
</span><span class="lines">@@ -46,7 +46,7 @@
</span><span class="cx"> RefPtr<Icon> Icon::createIconForFiles(const Vector<String>& filenames)
</span><span class="cx"> {
</span><span class="cx">     if (filenames.isEmpty())
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx"> 
</span><span class="cx">     if (filenames.size() == 1) {
</span><span class="cx">         SHFILEINFO sfi;
</span><span class="lines">@@ -54,7 +54,7 @@
</span><span class="cx"> 
</span><span class="cx">         String tmpFilename = filenames[0];
</span><span class="cx">         if (!SHGetFileInfo(tmpFilename.wideCharacters().data(), 0, &sfi, sizeof(sfi), SHGFI_ICON | SHGFI_SHELLICONSIZE | SHGFI_SMALLICON))
</span><del>-            return 0;
</del><ins>+            return nullptr;
</ins><span class="cx"> 
</span><span class="cx">         return adoptRef(new Icon(sfi.hIcon));
</span><span class="cx">     }
</span><span class="lines">@@ -62,14 +62,14 @@
</span><span class="cx">     WCHAR buffer[MAX_PATH];
</span><span class="cx">     UINT length = ::GetSystemDirectoryW(buffer, WTF_ARRAY_LENGTH(buffer));
</span><span class="cx">     if (!length)
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx"> 
</span><span class="cx">     if (wcscat_s(buffer, L"\\shell32.dll"))
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx"> 
</span><span class="cx">     HICON hIcon;
</span><span class="cx">     if (!::ExtractIconExW(buffer, shell32MultipleFileIconIndex, 0, &hIcon, 1))
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx">     return adoptRef(new Icon(hIcon));
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicswinImageCGWincpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/win/ImageCGWin.cpp (286916 => 286917)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/win/ImageCGWin.cpp        2021-12-11 18:28:39 UTC (rev 286916)
+++ trunk/Source/WebCore/platform/graphics/win/ImageCGWin.cpp   2021-12-11 20:48:55 UTC (rev 286917)
</span><span class="lines">@@ -41,15 +41,15 @@
</span><span class="cx"> {
</span><span class="cx">     DIBSECTION dibSection;
</span><span class="cx">     if (!GetObject(hBitmap, sizeof(DIBSECTION), &dibSection))
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx"> 
</span><span class="cx">     ASSERT(dibSection.dsBm.bmBitsPixel == 32);
</span><span class="cx">     if (dibSection.dsBm.bmBitsPixel != 32)
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx"> 
</span><span class="cx">     ASSERT(dibSection.dsBm.bmBits);
</span><span class="cx">     if (!dibSection.dsBm.bmBits)
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx"> 
</span><span class="cx">     RetainPtr<CGContextRef> bitmapContext = adoptCF(CGBitmapContextCreate(dibSection.dsBm.bmBits, dibSection.dsBm.bmWidth, dibSection.dsBm.bmHeight, 8,
</span><span class="cx">         dibSection.dsBm.bmWidthBytes, sRGBColorSpaceRef(), kCGBitmapByteOrder32Little | kCGImageAlphaPremultipliedFirst));
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicswinImageCairoWincpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/win/ImageCairoWin.cpp (286916 => 286917)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/win/ImageCairoWin.cpp     2021-12-11 18:28:39 UTC (rev 286916)
+++ trunk/Source/WebCore/platform/graphics/win/ImageCairoWin.cpp        2021-12-11 20:48:55 UTC (rev 286917)
</span><span class="lines">@@ -40,15 +40,15 @@
</span><span class="cx"> {
</span><span class="cx">     DIBSECTION dibSection;
</span><span class="cx">     if (!GetObject(hBitmap, sizeof(DIBSECTION), &dibSection))
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx"> 
</span><span class="cx">     ASSERT(dibSection.dsBm.bmBitsPixel == 32);
</span><span class="cx">     if (dibSection.dsBm.bmBitsPixel != 32)
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx"> 
</span><span class="cx">     ASSERT(dibSection.dsBm.bmBits);
</span><span class="cx">     if (!dibSection.dsBm.bmBits)
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx"> 
</span><span class="cx">     RefPtr<cairo_surface_t> surface = adoptRef(cairo_win32_surface_create_with_dib(CAIRO_FORMAT_ARGB32, dibSection.dsBm.bmWidth, dibSection.dsBm.bmHeight));
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformwinDragImageWincpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/win/DragImageWin.cpp (286916 => 286917)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/win/DragImageWin.cpp       2021-12-11 18:28:39 UTC (rev 286916)
+++ trunk/Source/WebCore/platform/win/DragImageWin.cpp  2021-12-11 20:48:55 UTC (rev 286917)
</span><span class="lines">@@ -116,7 +116,7 @@
</span><span class="cx">     description.setComputedSize((float)size);
</span><span class="cx">     description.setRenderingMode(renderingMode);
</span><span class="cx">     result = FontCascade(WTFMove(description), 0, 0);
</span><del>-    result.update(0);
</del><ins>+    result.update();
</ins><span class="cx">     return result;
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKitChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/ChangeLog (286916 => 286917)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ChangeLog    2021-12-11 18:28:39 UTC (rev 286916)
+++ trunk/Source/WebKit/ChangeLog       2021-12-11 20:48:55 UTC (rev 286917)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2021-12-11  Don Olmstead  <don.olmstead@sony.com>
+
+        Add a std::nullptr_t constructor for RefPtr
+        https://bugs.webkit.org/show_bug.cgi?id=234192
+
+        Reviewed by Yusuke Suzuki.
+
+        Remove uses of `0` when creating an empty RefPtr.
+
+        * WebProcess/win/WebProcessWin.cpp:
+        (loadResourceIntoBuffer):
+
</ins><span class="cx"> 2021-12-11  Lauro Moura  <lmoura@igalia.com>
</span><span class="cx"> 
</span><span class="cx">         Non-unified build fixes, mid mid December 2021 edition
</span></span></pre></div>
<a id="trunkSourceWebKitWebProcesswinWebProcessWincpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/WebProcess/win/WebProcessWin.cpp (286916 => 286917)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/WebProcess/win/WebProcessWin.cpp     2021-12-11 18:28:39 UTC (rev 286916)
+++ trunk/Source/WebKit/WebProcess/win/WebProcessWin.cpp        2021-12-11 20:48:55 UTC (rev 286917)
</span><span class="lines">@@ -30,7 +30,7 @@
</span><span class="cx"> 
</span><span class="cx"> RefPtr<WebCore::SharedBuffer> loadResourceIntoBuffer(const char* name)
</span><span class="cx"> {
</span><del>-    return 0;
</del><ins>+    return nullptr;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> namespace WebKit {
</span></span></pre></div>
<a id="trunkSourceWebKitLegacywinChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKitLegacy/win/ChangeLog (286916 => 286917)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKitLegacy/win/ChangeLog  2021-12-11 18:28:39 UTC (rev 286916)
+++ trunk/Source/WebKitLegacy/win/ChangeLog     2021-12-11 20:48:55 UTC (rev 286917)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2021-12-11  Don Olmstead  <don.olmstead@sony.com>
+
+        Add a std::nullptr_t constructor for RefPtr
+        https://bugs.webkit.org/show_bug.cgi?id=234192
+
+        Reviewed by Yusuke Suzuki.
+
+        Remove uses of `0` when creating an empty RefPtr.
+
+        * FullscreenVideoController.cpp:
+        (FullscreenVideoController::draw):
+        * WebArchive.cpp:
+        (WebArchive::createInstance):
+
</ins><span class="cx"> 2021-12-09  Devin Rousso  <drousso@apple.com>
</span><span class="cx"> 
</span><span class="cx">         Add a `DOMPasteAccessCategory` to control which pasteboard the WebProcess is granted access to when pasting
</span></span></pre></div>
<a id="trunkSourceWebKitLegacywinFullscreenVideoControllercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKitLegacy/win/FullscreenVideoController.cpp (286916 => 286917)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKitLegacy/win/FullscreenVideoController.cpp      2021-12-11 18:28:39 UTC (rev 286916)
+++ trunk/Source/WebKitLegacy/win/FullscreenVideoController.cpp 2021-12-11 20:48:55 UTC (rev 286917)
</span><span class="lines">@@ -525,7 +525,7 @@
</span><span class="cx"> 
</span><span class="cx">     desc.setComputedSize(textSize);
</span><span class="cx">     FontCascade font = FontCascade(WTFMove(desc), 0, 0);
</span><del>-    font.update(0);
</del><ins>+    font.update();
</ins><span class="cx"> 
</span><span class="cx">     String s;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKitLegacywinWebArchivecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKitLegacy/win/WebArchive.cpp (286916 => 286917)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKitLegacy/win/WebArchive.cpp     2021-12-11 18:28:39 UTC (rev 286916)
+++ trunk/Source/WebKitLegacy/win/WebArchive.cpp        2021-12-11 20:48:55 UTC (rev 286917)
</span><span class="lines">@@ -40,7 +40,7 @@
</span><span class="cx"> WebArchive* WebArchive::createInstance()
</span><span class="cx"> {
</span><span class="cx"> #if USE(CF)
</span><del>-    WebArchive* instance = new WebArchive(0);
</del><ins>+    WebArchive* instance = new WebArchive(nullptr);
</ins><span class="cx">     instance->AddRef();
</span><span class="cx">     return instance;
</span><span class="cx"> #else
</span></span></pre>
</div>
</div>

</body>
</html>