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

Side by Side Diff: third_party/WebKit/Source/core/style/FilterOperation.cpp

Issue 2392143002: reflow comments in core/style (Closed)
Patch Set: . Created 4 years, 2 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 * 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 19 matching lines...) Expand all
30 #include "platform/graphics/filters/FEGaussianBlur.h" 30 #include "platform/graphics/filters/FEGaussianBlur.h"
31 #include "platform/graphics/filters/FilterEffect.h" 31 #include "platform/graphics/filters/FilterEffect.h"
32 #include "platform/graphics/filters/SkiaImageFilterBuilder.h" 32 #include "platform/graphics/filters/SkiaImageFilterBuilder.h"
33 33
34 namespace blink { 34 namespace blink {
35 35
36 static inline FloatSize outsetSizeForBlur(float stdDeviation) { 36 static inline FloatSize outsetSizeForBlur(float stdDeviation) {
37 IntSize kernelSize = FEGaussianBlur::calculateUnscaledKernelSize( 37 IntSize kernelSize = FEGaussianBlur::calculateUnscaledKernelSize(
38 FloatPoint(stdDeviation, stdDeviation)); 38 FloatPoint(stdDeviation, stdDeviation));
39 FloatSize outset; 39 FloatSize outset;
40 // We take the half kernel size and multiply it with three, because we run box blur three times. 40 // We take the half kernel size and multiply it with three, because we run box
41 // blur three times.
41 outset.setWidth(3.0f * kernelSize.width() * 0.5f); 42 outset.setWidth(3.0f * kernelSize.width() * 0.5f);
42 outset.setHeight(3.0f * kernelSize.height() * 0.5f); 43 outset.setHeight(3.0f * kernelSize.height() * 0.5f);
43 return outset; 44 return outset;
44 } 45 }
45 46
46 FilterOperation* FilterOperation::blend(const FilterOperation* from, 47 FilterOperation* FilterOperation::blend(const FilterOperation* from,
47 const FilterOperation* to, 48 const FilterOperation* to,
48 double progress) { 49 double progress) {
49 DCHECK(from || to); 50 DCHECK(from || to);
50 if (to) 51 if (to)
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 } 203 }
203 204
204 bool BoxReflectFilterOperation::operator==(const FilterOperation& o) const { 205 bool BoxReflectFilterOperation::operator==(const FilterOperation& o) const {
205 if (!isSameType(o)) 206 if (!isSameType(o))
206 return false; 207 return false;
207 const auto& other = static_cast<const BoxReflectFilterOperation&>(o); 208 const auto& other = static_cast<const BoxReflectFilterOperation&>(o);
208 return m_reflection == other.m_reflection; 209 return m_reflection == other.m_reflection;
209 } 210 }
210 211
211 } // namespace blink 212 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/FilterOperation.h ('k') | third_party/WebKit/Source/core/style/GridLength.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698