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

Unified Diff: Source/core/platform/graphics/Color.cpp

Issue 20294002: Fix trailing whitespace in .cpp, .h, and .idl files (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/platform/graphics/Color.h ('k') | Source/core/platform/graphics/ColorSpace.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/graphics/Color.cpp
diff --git a/Source/core/platform/graphics/Color.cpp b/Source/core/platform/graphics/Color.cpp
index f3bfb8cbcffb2981159882e2d700b6e8a4345e02..4e0cb625b8551a33f6868e9c03dad8509bcde367 100644
--- a/Source/core/platform/graphics/Color.cpp
+++ b/Source/core/platform/graphics/Color.cpp
@@ -20,7 +20,7 @@
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
@@ -95,7 +95,7 @@ static double calcHue(double temp1, double temp2, double hueVal)
// Explanation of this algorithm can be found in the CSS3 Color Module
// specification at http://www.w3.org/TR/css3-color/#hsl-color with further
-// explanation available at http://en.wikipedia.org/wiki/HSL_color_space
+// explanation available at http://en.wikipedia.org/wiki/HSL_color_space
// all values are in the range of 0 to 1.0
RGBA32 makeRGBAFromHSLA(double hue, double saturation, double lightness, double alpha)
@@ -109,8 +109,8 @@ RGBA32 makeRGBAFromHSLA(double hue, double saturation, double lightness, double
double temp2 = lightness < 0.5 ? lightness * (1.0 + saturation) : lightness + saturation - lightness * saturation;
double temp1 = 2.0 * lightness - temp2;
-
- return makeRGBA(static_cast<int>(calcHue(temp1, temp2, hue + 1.0 / 3.0) * scaleFactor),
+
+ return makeRGBA(static_cast<int>(calcHue(temp1, temp2, hue + 1.0 / 3.0) * scaleFactor),
static_cast<int>(calcHue(temp1, temp2, hue) * scaleFactor),
static_cast<int>(calcHue(temp1, temp2, hue - 1.0 / 3.0) * scaleFactor),
static_cast<int>(alpha * scaleFactor));
@@ -163,7 +163,7 @@ bool Color::parseHexColor(const UChar* name, unsigned length, RGBA32& rgb)
bool Color::parseHexColor(const String& name, RGBA32& rgb)
{
unsigned length = name.length();
-
+
if (!length)
return false;
if (name.is8Bit())
@@ -228,7 +228,7 @@ Color Color::light() const
// Hardcode this common case for speed.
if (m_color == black)
return lightenedBlack;
-
+
const float scaleFactor = nextafterf(256.0f, 0.0f);
float r, g, b, a;
@@ -253,7 +253,7 @@ Color Color::dark() const
// Hardcode this common case for speed.
if (m_color == white)
return darkenedWhite;
-
+
const float scaleFactor = nextafterf(256.0f, 0.0f);
float r, g, b, a;
@@ -310,7 +310,7 @@ Color Color::blendWithWhite() const
int r = blendComponent(red(), alpha);
int g = blendComponent(green(), alpha);
int b = blendComponent(blue(), alpha);
-
+
newColor = Color(r, g, b, alpha);
if (r >= 0 && g >= 0 && b >= 0)
« no previous file with comments | « Source/core/platform/graphics/Color.h ('k') | Source/core/platform/graphics/ColorSpace.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698