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

Side by Side Diff: Source/platform/graphics/filters/SpotLightSource.cpp

Issue 1088843002: Add #include <algorithm> to code that is missing it. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: And no more comments 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 /* 1 /*
2 * Copyright (C) 2008 Alex Mathews <possessedpenguinbob@gmail.com> 2 * Copyright (C) 2008 Alex Mathews <possessedpenguinbob@gmail.com>
3 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org>
4 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> 4 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
5 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> 5 * Copyright (C) 2005 Eric Seidel <eric@webkit.org>
6 * Copyright (C) 2010 Zoltan Herczeg <zherczeg@webkit.org> 6 * Copyright (C) 2010 Zoltan Herczeg <zherczeg@webkit.org>
7 * Copyright (C) 2011 University of Szeged 7 * Copyright (C) 2011 University of Szeged
8 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org> 8 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org>
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
(...skipping 15 matching lines...) Expand all
26 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 26 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
27 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32 #include "config.h" 32 #include "config.h"
33 #include "platform/graphics/filters/SpotLightSource.h" 33 #include "platform/graphics/filters/SpotLightSource.h"
34 34
35 #include "platform/text/TextStream.h" 35 #include "platform/text/TextStream.h"
36 #include <algorithm>
36 37
37 namespace blink { 38 namespace blink {
38 39
39 bool SpotLightSource::setPosition(const FloatPoint3D& position) 40 bool SpotLightSource::setPosition(const FloatPoint3D& position)
40 { 41 {
41 if (m_position == position) 42 if (m_position == position)
42 return false; 43 return false;
43 m_position = position; 44 m_position = position;
44 return true; 45 return true;
45 } 46 }
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 { 80 {
80 ts << "[type=SPOT-LIGHT] "; 81 ts << "[type=SPOT-LIGHT] ";
81 ts << "[position=\"" << position() << "\"]"; 82 ts << "[position=\"" << position() << "\"]";
82 ts << "[direction=\"" << direction() << "\"]"; 83 ts << "[direction=\"" << direction() << "\"]";
83 ts << "[specularExponent=\"" << specularExponent() << "\"]"; 84 ts << "[specularExponent=\"" << specularExponent() << "\"]";
84 ts << "[limitingConeAngle=\"" << limitingConeAngle() << "\"]"; 85 ts << "[limitingConeAngle=\"" << limitingConeAngle() << "\"]";
85 return ts; 86 return ts;
86 } 87 }
87 88
88 }; // namespace blink 89 }; // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/graphics/filters/SpotLightSource.h ('k') | Source/platform/weborigin/KnownPorts.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698