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

Unified Diff: third_party/WebKit/Source/core/paint/FilterEffectBuilder.cpp

Issue 2392443009: reflow comments in core/paint (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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/paint/FilterEffectBuilder.cpp
diff --git a/third_party/WebKit/Source/core/paint/FilterEffectBuilder.cpp b/third_party/WebKit/Source/core/paint/FilterEffectBuilder.cpp
index 93fcd1281360b08cd96030eef67b9cab0da3d4ac..1100612276d80668306422a37ed03b616e2b28c6 100644
--- a/third_party/WebKit/Source/core/paint/FilterEffectBuilder.cpp
+++ b/third_party/WebKit/Source/core/paint/FilterEffectBuilder.cpp
@@ -67,7 +67,8 @@ inline void lastMatrixRow(Vector<float>& matrix) {
Vector<float> grayscaleMatrix(double amount) {
double oneMinusAmount = clampTo(1 - amount, 0.0, 1.0);
- // See https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html#grayscaleEquivalent
+ // See
+ // https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html#grayscaleEquivalent
// for information on parameters.
Vector<float> matrix;
matrix.reserveInitialCapacity(20);
@@ -94,7 +95,8 @@ Vector<float> grayscaleMatrix(double amount) {
Vector<float> sepiaMatrix(double amount) {
double oneMinusAmount = clampTo(1 - amount, 0.0, 1.0);
- // See https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html#sepiaEquivalent
+ // See
+ // https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html#sepiaEquivalent
// for information on parameters.
Vector<float> matrix;
matrix.reserveInitialCapacity(20);
@@ -136,7 +138,8 @@ FilterEffectBuilder::FilterEffectBuilder(Node* target,
FilterEffect* FilterEffectBuilder::buildFilterEffect(
const FilterOperations& operations) const {
- // Create a parent filter for shorthand filters. These have already been scaled by the CSS code for page zoom, so scale is 1.0 here.
+ // Create a parent filter for shorthand filters. These have already been
+ // scaled by the CSS code for page zoom, so scale is 1.0 here.
Filter* parentFilter = Filter::create(1.0f);
FilterEffect* previousEffect = parentFilter->getSourceGraphic();
for (FilterOperation* filterOperation : operations.operations()) {
@@ -278,7 +281,8 @@ FilterEffect* FilterEffectBuilder::buildFilterEffect(
if (effect) {
if (filterOperation->type() != FilterOperation::REFERENCE) {
- // Unlike SVG, filters applied here should not clip to their primitive subregions.
+ // Unlike SVG, filters applied here should not clip to their primitive
+ // subregions.
effect->setClipsToBounds(false);
effect->setOperatingColorSpace(ColorSpaceDeviceRGB);
effect->inputEffects().append(previousEffect);
« no previous file with comments | « third_party/WebKit/Source/core/paint/ClipPathClipper.cpp ('k') | third_party/WebKit/Source/core/paint/FilterPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698