[Cairo] Gradient::fill() should only operate on PlatformContextCairo
authorzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Nov 2017 13:35:04 +0000 (13:35 +0000)
committerzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Nov 2017 13:35:04 +0000 (13:35 +0000)
commit88fb5a0c9e12ec4603c47ae923183a16e503c91b
tree297ee7f099d37fffe6fcc36d4497b80e51e7ed6f
parent94c1acee34731391853170d3f46f72d7211e79b6
[Cairo] Gradient::fill() should only operate on PlatformContextCairo
https://bugs.webkit.org/show_bug.cgi?id=179887

Reviewed by Carlos Garcia Campos.

In Gradient::fill(), directly invoke Cairo::save() and Cairo::restore(),
instead of doing so indirectly through GraphicsContext::save() and
GraphicsContext::restore(). The latter pair stashes the internal state
that's managed in GraphicsContext, but that doesn't get modified at all
in this case.

No new tests -- no change in behavior.

* platform/graphics/cairo/GradientCairo.cpp:
(WebCore::Gradient::fill):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@225075 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/cairo/GradientCairo.cpp