Commit 29cb4f03 authored by XueShuming's avatar XueShuming
Browse files

impl stroke_linecap

parent 90bf9aa5
......@@ -525,6 +525,13 @@ typedef enum HLStrokeLinejoinEnum_ {
HL_STROKE_LINEJOIN_BEVEL = 0x3
} HLStrokeLinejoinEnum;
typedef enum HLStrokeLinecapEnum_ {
HL_STROKE_LINECAP_INHERIT = 0x0,
HL_STROKE_LINECAP_BUTT = 0x1,
HL_STROKE_LINECAP_ROUND = 0x2,
HL_STROKE_LINECAP_SQUARE = 0x3
} HLStrokeLinecapEnum;
typedef struct HLUsedSvgValues_ {
HLBaseLineShiftEnum baseline_shift;
char* clip_path;
......@@ -580,6 +587,7 @@ typedef struct HLUsedSvgValues_ {
char* stroke_string;
uint32_t stroke_color;
HLStrokeLinecapEnum stroke_linecap;
HLStrokeLinejoinEnum stroke_linejoin;
HLStrokeMiterlimitEnum stroke_miterlimit_type;
hl_real_t stroke_miterlimit;
......
......@@ -388,6 +388,7 @@ HLUsedSvgValues* hilayout_element_node_get_used_svg_value(HLDomElementNode* node
// stroke-dasharray
// stroke-dashoffset
// stroke-linecap
svg->stroke_linecap = css_computed_stroke_linecap(style);
// stroke-linejoin
svg->stroke_linejoin = css_computed_stroke_linejoin(style);
// stroke-miterlimit
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment