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

Side by Side Diff: Source/platform/geometry/DoublePoint.h

Issue 1088843002: Add #include <algorithm> to code that is missing it. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DoublePoint_h 5 #ifndef DoublePoint_h
6 #define DoublePoint_h 6 #define DoublePoint_h
7 7
8 #include "platform/geometry/DoubleSize.h" 8 #include "platform/geometry/DoubleSize.h"
9 #include "platform/geometry/FloatPoint.h" 9 #include "platform/geometry/FloatPoint.h"
10 #include "platform/geometry/FloatSize.h" 10 #include "platform/geometry/FloatSize.h"
11 #include "platform/geometry/IntPoint.h" 11 #include "platform/geometry/IntPoint.h"
12 #include <algorithm> // For std::min/std::max
Nico 2015/04/16 21:16:55 remove comment
12 13
13 namespace blink { 14 namespace blink {
14 15
15 class LayoutPoint; 16 class LayoutPoint;
16 17
17 class PLATFORM_EXPORT DoublePoint { 18 class PLATFORM_EXPORT DoublePoint {
18 public: 19 public:
19 DoublePoint() 20 DoublePoint()
20 : m_x(0) 21 : m_x(0)
21 , m_y(0) 22 , m_y(0)
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 } 112 }
112 113
113 inline DoubleSize toDoubleSize(const DoublePoint& a) 114 inline DoubleSize toDoubleSize(const DoublePoint& a)
114 { 115 {
115 return DoubleSize(a.x(), a.y()); 116 return DoubleSize(a.x(), a.y());
116 } 117 }
117 118
118 } 119 }
119 120
120 #endif 121 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698