| Index: third_party/WebKit/Source/platform/graphics/filters/FEComponentTransfer.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/filters/FEComponentTransfer.cpp b/third_party/WebKit/Source/platform/graphics/filters/FEComponentTransfer.cpp
|
| index 20eaac4b3e92d8872509736d456ad4619bba5f9d..864a21ff50dc02764eedab2b880bbf9ca683b9d6 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/filters/FEComponentTransfer.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/filters/FEComponentTransfer.cpp
|
| @@ -103,9 +103,7 @@ static void linear(unsigned char* values,
|
| static void gamma(unsigned char* values,
|
| const ComponentTransferFunction& transferFunction) {
|
| for (unsigned i = 0; i < 256; ++i) {
|
| - double exponent =
|
| - transferFunction
|
| - .exponent; // RCVT doesn't like passing a double and a float to pow, so promote this to double
|
| + double exponent = transferFunction.exponent;
|
| double val =
|
| 255.0 * (transferFunction.amplitude * pow((i / 255.0), exponent) +
|
| transferFunction.offset);
|
|
|