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

Side by Side Diff: Source/platform/graphics/Color.cpp

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/platform/graphics/Color.h ('k') | Source/platform/graphics/ColorSpace.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2004, 2005, 2006, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 17 matching lines...) Expand all
28 28
29 #include "platform/Decimal.h" 29 #include "platform/Decimal.h"
30 #include "wtf/Assertions.h" 30 #include "wtf/Assertions.h"
31 #include "wtf/HexNumber.h" 31 #include "wtf/HexNumber.h"
32 #include "wtf/MathExtras.h" 32 #include "wtf/MathExtras.h"
33 #include "wtf/dtoa.h" 33 #include "wtf/dtoa.h"
34 #include "wtf/text/StringBuilder.h" 34 #include "wtf/text/StringBuilder.h"
35 35
36 using namespace std; 36 using namespace std;
37 37
38 namespace WebCore { 38 namespace blink {
39 39
40 #if !COMPILER(MSVC) 40 #if !COMPILER(MSVC)
41 // FIXME: Use C++11 strong enums to avoid static data member with initializer de finition problems. 41 // FIXME: Use C++11 strong enums to avoid static data member with initializer de finition problems.
42 const RGBA32 Color::black; 42 const RGBA32 Color::black;
43 const RGBA32 Color::white; 43 const RGBA32 Color::white;
44 const RGBA32 Color::darkGray; 44 const RGBA32 Color::darkGray;
45 const RGBA32 Color::gray; 45 const RGBA32 Color::gray;
46 const RGBA32 Color::lightGray; 46 const RGBA32 Color::lightGray;
47 const RGBA32 Color::transparent; 47 const RGBA32 Color::transparent;
48 #endif 48 #endif
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 (color.red() * alpha + 254) / 255, 457 (color.red() * alpha + 254) / 255,
458 (color.green() * alpha + 254) / 255, 458 (color.green() * alpha + 254) / 255,
459 (color.blue() * alpha + 254) / 255, 459 (color.blue() * alpha + 254) / 255,
460 alpha).rgb(); 460 alpha).rgb();
461 } else 461 } else
462 pixelColor = color.rgb(); 462 pixelColor = color.rgb();
463 463
464 return pixelColor; 464 return pixelColor;
465 } 465 }
466 466
467 } // namespace WebCore 467 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/graphics/Color.h ('k') | Source/platform/graphics/ColorSpace.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698