Next step toward using std::optional directly instead of through WTF::Optional typedef
https://bugs.webkit.org/show_bug.cgi?id=226280

Reviewed by Chris Dumez.

Source/JavaScriptCore:

* <many files>: Accept the renaming done by do-webcore-rename.

* yarr/YarrSyntaxChecker.cpp: Since the style checker complained about this file,
tweaked style to make it happy after the renaming done by do-webcore-rename, and
also hand-updated Optional to std::optional as long as we were touching it.

Source/WebCore:

* <many files>: Accept the renaming done by do-webcore-rename.

* Modules/webauthn/fido/DeviceRequestConverter.h: Since style checker complained
about the names of some arguments, fixed them, and also hand-updated Optional to
std::optional as long as we were touching it.

* loader/EmptyClients.cpp: Since style checker complained about the mix of
WEBCORE_EXPORT and inlined functions, moved them out of line, and
also hand-updated Optional to std::optional as long as we were touching it.
Also removed is<EmptyFrameLoaderClient>().
* loader/EmptyFrameLoaderClient.h: Ditto.

Source/WebCore/PAL:

* <many files>: Accept the renaming done by do-webcore-rename.

Source/WebDriver:

* <many files>: Accept the renaming done by do-webcore-rename.

Source/WebKit:

* <many files>: Accept the renaming done by do-webcore-rename.

Source/WebKitLegacy:

* Storage/StorageTracker.cpp:
(WebKit::StorageTracker::diskUsageForOrigin): Accept the renaming done by do-webcore-rename.

Source/WebKitLegacy/mac:

* <many files>: Accept the renaming done by do-webcore-rename.

Source/WebKitLegacy/win:

* <many files>: Accept the renaming done by do-webcore-rename.

Source/WTF:

* <many files>: Accept the renaming done by do-webcore-rename.

* wtf/Optional.h: Remove WTF::nullopt_t and WTF::makeOptional.

* wtf/URLHelpers.cpp:
(WTF::URLHelpers::mapHostName): Convert from nullopt to std::nullopt.

Tools:

* Scripts/do-webcore-rename: Use script to rename valueOr, WTF::nullopt, WTF::nullopt_t,
WTF::Optional, WTF::makeOptional, and makeOptional. Other renamings can't necessarily
be done by the script and so will be done in later passes.

* <many files>: Accept the renaming done by do-webcore-rename.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@278185 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebCore/rendering/RenderBlockFlow.cpp b/Source/WebCore/rendering/RenderBlockFlow.cpp
index 14abf6b..62de416 100644
--- a/Source/WebCore/rendering/RenderBlockFlow.cpp
+++ b/Source/WebCore/rendering/RenderBlockFlow.cpp
@@ -3133,16 +3133,16 @@
 Optional<LayoutUnit> RenderBlockFlow::firstLineBaseline() const
 {
     if (isWritingModeRoot() && !isRubyRun() && !isGridItem())
-        return WTF::nullopt;
+        return std::nullopt;
 
     if (shouldApplyLayoutContainment(*this))
-        return WTF::nullopt;
+        return std::nullopt;
 
     if (!childrenInline())
         return RenderBlock::firstLineBaseline();
 
     if (!hasLines())
-        return WTF::nullopt;
+        return std::nullopt;
 
 #if ENABLE(LAYOUT_FORMATTING_CONTEXT)
     if (modernLineLayout())
@@ -3158,7 +3158,7 @@
 Optional<LayoutUnit> RenderBlockFlow::inlineBlockBaseline(LineDirectionMode lineDirection) const
 {
     if (isWritingModeRoot() && !isRubyRun())
-        return WTF::nullopt;
+        return std::nullopt;
 
     if (shouldApplyLayoutContainment(*this))
         return RenderBlock::inlineBlockBaseline(lineDirection);
@@ -3168,7 +3168,7 @@
         // property has a computed value other than 'visible'. see https://www.w3.org/TR/CSS22/visudet.html
         auto shouldSynthesizeBaseline = !style().isOverflowVisible() && !is<HTMLFormControlElement>(element());
         if (shouldSynthesizeBaseline)
-            return WTF::nullopt;
+            return std::nullopt;
     }
     // Note that here we only take the left and bottom into consideration. Our caller takes the right and top into consideration.
     float boxHeight = synthesizedBaselineFromBorderBox(*this, lineDirection) + (lineDirection == HorizontalLine ? m_marginBox.bottom() : m_marginBox.left());
@@ -3181,7 +3181,7 @@
     } else {
         if (!hasLines()) {
             if (!hasLineIfEmpty())
-                return WTF::nullopt;
+                return std::nullopt;
             const auto& fontMetrics = firstLineStyle().fontMetrics();
             return LayoutUnit { LayoutUnit(fontMetrics.ascent()
                 + (lineHeight(true, lineDirection, PositionOfInteriorLineBoxes) - fontMetrics.height()) / 2