[webkit-changes] [WebKit/WebKit] 10e44f: Add `operator<<` for CG types

Richard Robinson noreply at github.com
Thu Aug 10 14:21:25 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 10e44f99e2aa2986ff3d6a5a60f81e329cdf6ced
      https://github.com/WebKit/WebKit/commit/10e44f99e2aa2986ff3d6a5a60f81e329cdf6ced
  Author: Richard Robinson <richard_robinson2 at apple.com>
  Date:   2023-08-10 (Thu, 10 Aug 2023)

  Changed paths:
    M Source/WTF/wtf/text/TextStream.h
    M Source/WTF/wtf/text/cocoa/TextStreamCocoa.mm
    M Tools/TestWebKitAPI/Tests/WTF/cocoa/TextStreamCocoa.mm

  Log Message:
  -----------
  Add `operator<<` for CG types
https://bugs.webkit.org/show_bug.cgi?id=260009
rdar://113667751

Reviewed by Tim Horton.

Instead of having to use `NSStringFromCG*`, now we can just stream CG types directly.

* Source/WTF/wtf/text/TextStream.h:
* Source/WTF/wtf/text/cocoa/TextStreamCocoa.mm:
(WTF::TextStream::operator<<):
* Tools/TestWebKitAPI/Tests/WTF/cocoa/TextStreamCocoa.mm:
(TEST):

Canonical link: https://commits.webkit.org/266782@main




More information about the webkit-changes mailing list