Changeset 291731 in webkit
- Timestamp:
- Mar 22, 2022, 6:27:54 PM (5 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
-
JavaScriptCore/ChangeLog (modified) (1 diff)
-
JavaScriptCore/runtime/FunctionExecutable.cpp (modified) (3 diffs)
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/html/HTMLTextAreaElement.cpp (modified) (1 diff)
-
WebCore/platform/animation/TimingFunction.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r291603 r291731 1 2022-03-22 Chris Dumez <cdumez@apple.com> 2 3 Use ASCIILiteral in a few more places where it is useful 4 https://bugs.webkit.org/show_bug.cgi?id=238235 5 6 Reviewed by Geoffrey Garen. 7 8 * runtime/FunctionExecutable.cpp: 9 (JSC::FunctionExecutable::toStringSlow): 10 1 11 2022-03-21 Yusuke Suzuki <ysuzuki@apple.com> 2 12 -
trunk/Source/JavaScriptCore/runtime/FunctionExecutable.cpp
r288815 r291731 146 146 case SourceParseMode::GeneratorWrapperFunctionMode: 147 147 case SourceParseMode::GeneratorWrapperMethodMode: 148 functionHeader = "function* " ;148 functionHeader = "function* "_s; 149 149 break; 150 150 … … 160 160 case SourceParseMode::AsyncFunctionBodyMode: 161 161 case SourceParseMode::AsyncArrowFunctionBodyMode: 162 functionHeader = "function " ;162 functionHeader = "function "_s; 163 163 break; 164 164 … … 170 170 case SourceParseMode::AsyncFunctionMode: 171 171 case SourceParseMode::AsyncMethodMode: 172 functionHeader = "async function " ;172 functionHeader = "async function "_s; 173 173 break; 174 174 175 175 case SourceParseMode::AsyncArrowFunctionMode: 176 functionHeader = "async " ;176 functionHeader = "async "_s; 177 177 break; 178 178 179 179 case SourceParseMode::AsyncGeneratorWrapperFunctionMode: 180 180 case SourceParseMode::AsyncGeneratorWrapperMethodMode: 181 functionHeader = "async function* " ;181 functionHeader = "async function* "_s; 182 182 break; 183 183 } -
trunk/Source/WebCore/ChangeLog
r291730 r291731 1 2022-03-22 Chris Dumez <cdumez@apple.com> 2 3 Use ASCIILiteral in a few more places where it is useful 4 https://bugs.webkit.org/show_bug.cgi?id=238235 5 6 Reviewed by Geoffrey Garen. 7 8 * html/HTMLTextAreaElement.cpp: 9 (WebCore::HTMLTextAreaElement::setValueCommon): 10 * platform/animation/TimingFunction.cpp: 11 (WebCore::TimingFunction::cssText const): 12 1 13 2022-03-22 Chris Dumez <cdumez@apple.com> 2 14 -
trunk/Source/WebCore/html/HTMLTextAreaElement.cpp
r291396 r291731 396 396 // We normalize line endings coming from JavaScript here. 397 397 String normalizedValue = newValue.isNull() ? emptyString() : newValue; 398 normalizedValue.replace("\r\n" , "\n");398 normalizedValue.replace("\r\n"_s, "\n"_s); 399 399 normalizedValue.replace('\r', '\n'); 400 400 -
trunk/Source/WebCore/platform/animation/TimingFunction.cpp
r282751 r291731 199 199 auto& function = downcast<CubicBezierTimingFunction>(*this); 200 200 if (function.x1() == 0.25 && function.y1() == 0.1 && function.x2() == 0.25 && function.y2() == 1.0) 201 return "ease" ;201 return "ease"_s; 202 202 if (function.x1() == 0.42 && !function.y1() && function.x2() == 1.0 && function.y2() == 1.0) 203 return "ease-in" ;203 return "ease-in"_s; 204 204 if (!function.x1() && !function.y1() && function.x2() == 0.58 && function.y2() == 1.0) 205 return "ease-out" ;205 return "ease-out"_s; 206 206 if (function.x1() == 0.42 && !function.y1() && function.x2() == 0.58 && function.y2() == 1.0) 207 return "ease-in-out" ;207 return "ease-in-out"_s; 208 208 return makeString("cubic-bezier(", function.x1(), ", ", function.y1(), ", ", function.x2(), ", ", function.y2(), ')'); 209 209 }
Note:
See TracChangeset
for help on using the changeset viewer.