mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:47:34 +00:00
LibWeb: Implement SVGLinearGradientElement (<linearGradient>)
This represents the SVG <linearGradient>. The actual gradient is converted to a Gfx::PaintStyle for use in SVG fills... There is a little guesswork in the implementation, but it seems to match Chrome/Firefox. Note: Still not hooked up to actual painting in this commit.
This commit is contained in:
parent
89d3c6d718
commit
aa3464466e
6 changed files with 243 additions and 0 deletions
|
@ -0,0 +1,9 @@
|
|||
#import <SVG/SVGGradientElement.idl>
|
||||
|
||||
[Exposed=Window]
|
||||
interface SVGLinearGradientElement : SVGGradientElement {
|
||||
[SameObject] readonly attribute SVGAnimatedLength x1;
|
||||
[SameObject] readonly attribute SVGAnimatedLength y1;
|
||||
[SameObject] readonly attribute SVGAnimatedLength x2;
|
||||
[SameObject] readonly attribute SVGAnimatedLength y2;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue