| Index: Source/core/html/canvas/CanvasRenderingContext2D.cpp
|
| diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.cpp b/Source/core/html/canvas/CanvasRenderingContext2D.cpp
|
| index ede1ee636ac6cd82da99f165b07d3d834bc1c45a..875dc4d1d14bdea7a20bedb0dde1f983a1fed973 100644
|
| --- a/Source/core/html/canvas/CanvasRenderingContext2D.cpp
|
| +++ b/Source/core/html/canvas/CanvasRenderingContext2D.cpp
|
| @@ -548,7 +548,7 @@ void CanvasRenderingContext2D::setGlobalAlpha(float alpha)
|
| GraphicsContext* c = drawingContext();
|
| if (!c)
|
| return;
|
| - c->setAlpha(alpha);
|
| + c->setAlphaAsFloat(alpha);
|
| }
|
|
|
| String CanvasRenderingContext2D::globalCompositeOperation() const
|
| @@ -1100,7 +1100,7 @@ void CanvasRenderingContext2D::clearRect(float x, float y, float width, float he
|
| context->save();
|
| saved = true;
|
| }
|
| - context->setAlpha(1);
|
| + context->setAlphaAsFloat(1);
|
| }
|
| if (state().m_globalComposite != CompositeSourceOver) {
|
| if (!saved) {
|
| @@ -2473,7 +2473,7 @@ void CanvasRenderingContext2D::drawFocusRing(const Path& path)
|
| return;
|
|
|
| c->save();
|
| - c->setAlpha(1.0);
|
| + c->setAlphaAsFloat(1.0);
|
| c->clearShadow();
|
| c->setCompositeOperation(CompositeSourceOver, blink::WebBlendModeNormal);
|
|
|
|
|