Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1122)

Side by Side Diff: third_party/WebKit/Source/platform/geometry/FloatQuad.cpp

Issue 2267183003: Switch from PrintTo to operator<< for platform printers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies)
4 * Copyright (C) 2013 Xidorn Quan (quanxunzhen@gmail.com) 4 * Copyright (C) 2013 Xidorn Quan (quanxunzhen@gmail.com)
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 251
252 String FloatQuad::toString() const 252 String FloatQuad::toString() const
253 { 253 {
254 return String::format("%s; %s; %s; %s", 254 return String::format("%s; %s; %s; %s",
255 m_p1.toString().ascii().data(), 255 m_p1.toString().ascii().data(),
256 m_p2.toString().ascii().data(), 256 m_p2.toString().ascii().data(),
257 m_p3.toString().ascii().data(), 257 m_p3.toString().ascii().data(),
258 m_p4.toString().ascii().data()); 258 m_p4.toString().ascii().data());
259 } 259 }
260 260
261 std::ostream& operator<<(std::ostream& ostream, const FloatQuad& quad)
262 {
263 return ostream << quad.toString();
264 }
265
261 } // namespace blink 266 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/geometry/FloatQuad.h ('k') | third_party/WebKit/Source/platform/geometry/FloatRect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698