Title: [292057] trunk/Source/WebCore
- Revision
- 292057
- Author
- [email protected]
- Date
- 2022-03-29 12:23:30 -0700 (Tue, 29 Mar 2022)
Log Message
Use "UTF-8"_s instead of PAL::UTF8Encoding().domName()
https://bugs.webkit.org/show_bug.cgi?id=238508
Reviewed by Geoffrey Garen.
Use "UTF-8"_s instead of PAL::UTF8Encoding().domName() as it is equivalent and more efficient.
* dom/Document.cpp:
(WebCore::Document::characterSetWithUTF8Fallback const):
(WebCore::Document::defaultCharsetForLegacyBindings const):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (292056 => 292057)
--- trunk/Source/WebCore/ChangeLog 2022-03-29 19:17:10 UTC (rev 292056)
+++ trunk/Source/WebCore/ChangeLog 2022-03-29 19:23:30 UTC (rev 292057)
@@ -1,3 +1,16 @@
+2022-03-29 Chris Dumez <[email protected]>
+
+ Use "UTF-8"_s instead of PAL::UTF8Encoding().domName()
+ https://bugs.webkit.org/show_bug.cgi?id=238508
+
+ Reviewed by Geoffrey Garen.
+
+ Use "UTF-8"_s instead of PAL::UTF8Encoding().domName() as it is equivalent and more efficient.
+
+ * dom/Document.cpp:
+ (WebCore::Document::characterSetWithUTF8Fallback const):
+ (WebCore::Document::defaultCharsetForLegacyBindings const):
+
2022-03-29 Alan Bujtas <[email protected]>
WebCore::LegacyRootInlineBox::lineSnapAdjustment should bail out on grid line height < 1
Modified: trunk/Source/WebCore/dom/Document.cpp (292056 => 292057)
--- trunk/Source/WebCore/dom/Document.cpp 2022-03-29 19:17:10 UTC (rev 292056)
+++ trunk/Source/WebCore/dom/Document.cpp 2022-03-29 19:23:30 UTC (rev 292057)
@@ -1493,13 +1493,13 @@
AtomString name = encoding();
if (!name.isNull())
return name;
- return String { PAL::UTF8Encoding().domName() };
+ return "UTF-8"_s;
}
String Document::defaultCharsetForLegacyBindings() const
{
if (!frame())
- PAL::UTF8Encoding().domName();
+ return "UTF-8"_s;
return settings().defaultTextEncodingName();
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes