Skip to content

Commit

Permalink
Fix missing import and work around pycairo/cairocffi API incompat [0]
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-j-lee authored and chromium-wpt-export-bot committed Oct 18, 2024
1 parent 5934179 commit c3b1974
Show file tree
Hide file tree
Showing 21 changed files with 8,329 additions and 5 deletions.
Binary file modified html/canvas/element/text/2d.text.draw.fill.basic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified html/canvas/element/text/2d.text.draw.fill.maxWidth.large.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified html/canvas/element/text/2d.text.draw.fill.rtl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified html/canvas/element/text/2d.text.draw.stroke.basic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Binary file modified html/canvas/offscreen/text/2d.text.draw.fill.basic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified html/canvas/offscreen/text/2d.text.draw.fill.maxWidth.large.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified html/canvas/offscreen/text/2d.text.draw.fill.rtl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified html/canvas/offscreen/text/2d.text.draw.stroke.basic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions html/canvas/tools/yaml-new/compositing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@
cr.paint()
{% endif %}
cr.set_operator(cairo.Operator.{{ cairo_operator }})
cr.set_operator(cairo.OPERATOR_{{ cairo_operator }})
{% if cairo_operator != 'SOURCE' %}
{{ cairo_shadow_code }}
Expand Down Expand Up @@ -357,11 +357,11 @@
js_filter_code: ctx.filter = 'drop-shadow(5px -5px 0px rgb(255, 154, 0))'
cairo_filter_code: |-
cr.push_group()
cr.set_operator(cairo.Operator.OVER)
cr.set_operator(cairo.OPERATOR_OVER)
cr.translate(5, -5) # Filter offset.
cr.set_source(foreground)
cr.paint()
cr.set_operator(cairo.Operator.IN)
cr.set_operator(cairo.OPERATOR_IN)
cr.set_source_rgba(1, 154/255, 0)
cr.paint()
cr.pop_group_to_source()
Expand All @@ -377,11 +377,11 @@
ctx.shadowColor = 'rgb(154, 0, 154)';
cairo_shadow_code: |-
cr.push_group()
cr.set_operator(cairo.Operator.OVER)
cr.set_operator(cairo.OPERATOR_OVER)
cr.translate(20, 20) # Shadow offset.
cr.set_source(filtered_foreground)
cr.paint()
cr.set_operator(cairo.Operator.IN)
cr.set_operator(cairo.OPERATOR_IN)
cr.set_source_rgb(154/255, 0, 154/255)
cr.paint()
cr.pop_group_to_source()
Expand Down

0 comments on commit c3b1974

Please sign in to comment.