aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/macros.rs
diff options
context:
space:
mode:
authorpylbrecht <palbrecht@mailbox.org>2020-01-25 19:36:02 +0100
committerpylbrecht <palbrecht@mailbox.org>2020-01-25 21:29:24 +0100
commitebdf4693abcd3f05a88cfb9d20664c0a489f4964 (patch)
tree1ec973a120abad79fade44ff704d30b19a571686 /components/script/dom/macros.rs
parent937efba0cd6662b4e0060e7056c52dac2896535c (diff)
downloadservo-ebdf4693abcd3f05a88cfb9d20664c0a489f4964.tar.gz
servo-ebdf4693abcd3f05a88cfb9d20664c0a489f4964.zip
Update fill and stroke style only when required
So far fill and stroke style updates have been sent to the canvas paint thread by `SetFillStyle()` and `SetStrokeStyle()`. This resulted in fill/stroke style updates not being considered by the canvas paint thread between the latest call of `SetFillStyle()`/`SetStrokeStyle()` and the drawing operation (e.g. fill or stroke). This issue is solved by making `SetFillStyle()` and `SetStrokeStyle()` update the local canvas state and propagating the state to the canvas paint thread right before any drawing operation that requires it.
Diffstat (limited to 'components/script/dom/macros.rs')
0 files changed, 0 insertions, 0 deletions