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

Side by Side Diff: Source/core/platform/graphics/ShadowBlur.cpp

Issue 16357011: Remove support for -webkit-color-correction (which we've never supported on (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: resolve merge conflicts, obey brace style changes Created 7 years, 6 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) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Sencha, Inc. All rights reserved. 3 * Copyright (C) 2010 Sencha, Inc. All rights reserved.
4 * Copyright (C) 2010 Igalia S.L. All rights reserved. 4 * Copyright (C) 2010 Igalia S.L. All rights reserved.
5 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 22 matching lines...) Expand all
33 33
34 using namespace std; 34 using namespace std;
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 enum { 38 enum {
39 leftLobe = 0, 39 leftLobe = 0,
40 rightLobe = 1 40 rightLobe = 1
41 }; 41 };
42 42
43 ShadowBlur::ShadowBlur(const FloatSize& radius, const FloatSize& offset, const C olor& color, ColorSpace colorSpace) 43 ShadowBlur::ShadowBlur(const FloatSize& radius, const FloatSize& offset, const C olor& color)
44 : m_color(color) 44 : m_color(color)
45 , m_colorSpace(colorSpace)
46 , m_blurRadius(radius) 45 , m_blurRadius(radius)
47 , m_offset(offset) 46 , m_offset(offset)
48 , m_shadowsIgnoreTransforms(false) 47 , m_shadowsIgnoreTransforms(false)
49 { 48 {
50 updateShadowBlurValues(); 49 updateShadowBlurValues();
51 } 50 }
52 51
53 void ShadowBlur::updateShadowBlurValues() 52 void ShadowBlur::updateShadowBlurValues()
54 { 53 {
55 // Limit blur radius to 128 to avoid lots of very expensive blurring. 54 // Limit blur radius to 128 to avoid lots of very expensive blurring.
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 188
190 if (!m_blurRadius.height()) 189 if (!m_blurRadius.height())
191 break; 190 break;
192 191
193 if (m_blurRadius.width() != m_blurRadius.height()) 192 if (m_blurRadius.width() != m_blurRadius.height())
194 calculateLobes(lobes, m_blurRadius.height(), m_shadowsIgnoreTransfor ms); 193 calculateLobes(lobes, m_blurRadius.height(), m_shadowsIgnoreTransfor ms);
195 } 194 }
196 } 195 }
197 196
198 } // namespace WebCore 197 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/ShadowBlur.h ('k') | Source/core/platform/graphics/chromium/IconChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698