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

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

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 12 matching lines...) Expand all
23 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 23 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
26 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "platform/geometry/FloatQuad.h" 31 #include "platform/geometry/FloatQuad.h"
32 32
33 #include "third_party/skia/include/core/SkPoint.h"
34 #include "wtf/text/WTFString.h"
35 #include <algorithm> 33 #include <algorithm>
36 #include <cmath> 34 #include <cmath>
37 #include <limits> 35 #include <limits>
36 #include "third_party/skia/include/core/SkPoint.h"
37 #include "wtf/text/WTFString.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 static inline float min4(float a, float b, float c, float d) { 41 static inline float min4(float a, float b, float c, float d) {
42 return std::min(std::min(a, b), std::min(c, d)); 42 return std::min(std::min(a, b), std::min(c, d));
43 } 43 }
44 44
45 static inline float max4(float a, float b, float c, float d) { 45 static inline float max4(float a, float b, float c, float d) {
46 return std::max(std::max(a, b), std::max(c, d)); 46 return std::max(std::max(a, b), std::max(c, d));
47 } 47 }
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 } 253 }
254 254
255 String FloatQuad::toString() const { 255 String FloatQuad::toString() const {
256 return String::format("%s; %s; %s; %s", m_p1.toString().ascii().data(), 256 return String::format("%s; %s; %s; %s", m_p1.toString().ascii().data(),
257 m_p2.toString().ascii().data(), 257 m_p2.toString().ascii().data(),
258 m_p3.toString().ascii().data(), 258 m_p3.toString().ascii().data(),
259 m_p4.toString().ascii().data()); 259 m_p4.toString().ascii().data());
260 } 260 }
261 261
262 } // namespace blink 262 } // 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