Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
HybridOS
hiDOMLayout
Commits
cd9cc9da
Commit
cd9cc9da
authored
May 03, 2021
by
XueShuming
Browse files
shape-rendering
parent
15033e44
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/hidomlayout.h
View file @
cd9cc9da
...
...
@@ -473,6 +473,31 @@ typedef enum HLWritingModeEnum_ {
HL_WRITING_MODE_VERTICAL_LR
=
0x3
}
HLWritingModeEnum
;
typedef
enum
HLTextAnchorEnum_
{
HL_TEXT_ANCHOR_INHERIT
=
0x0
,
HL_TEXT_ANCHOR_START
=
0x1
,
HL_TEXT_ANCHOR_MIDDLE
=
0x2
,
HL_TEXT_ANCHOR_END
=
0x3
}
HLTextAnchorEnum
;
typedef
enum
HLTextDecorationEnum_
{
HL_TEXT_DECORATION_INHERIT
=
0x00
,
HL_TEXT_DECORATION_NONE
=
0x10
,
HL_TEXT_DECORATION_BLINK
=
(
1
<<
3
),
HL_TEXT_DECORATION_LINE_THROUGH
=
(
1
<<
2
),
HL_TEXT_DECORATION_OVERLINE
=
(
1
<<
1
),
HL_TEXT_DECORATION_UNDERLINE
=
(
1
<<
0
)
}
HLTextDecorationEnum
;
typedef
enum
HLShapeRenderingEnum
{
HL_SHAPE_RENDERING_INHERIT
=
0x0
,
HL_SHAPE_RENDERING_AUTO
=
0x1
,
HL_SHAPE_RENDERING_OPTIMIZESPEED
=
0x2
,
HL_SHAPE_RENDERING_CRISPEDGES
=
0x3
,
HL_SHAPE_RENDERING_GEOMETRICPRECISION
=
0x4
,
HL_SHAPE_RENDERING_DEFAULT
=
0x5
}
HLShapeRenderingEnum
;
typedef
struct
HLUsedSvgValues_
{
HLBaseLineShiftEnum
baseline_shift
;
char
*
clip_path
;
...
...
@@ -487,6 +512,7 @@ typedef struct HLUsedSvgValues_ {
HLDirectionEnum
direction
;
// fill
HLFillEnum
fill_type
;
char
*
fill_string
;
...
...
@@ -514,7 +540,7 @@ typedef struct HLUsedSvgValues_ {
hl_real_t
opacity
;
HLOverflowEnum
overflow
;
HLShapeRenderingEnum
shape_rendering
;
HLStopColorEnum
stop_color_type
;
uint32_t
stop_color
;
...
...
@@ -526,6 +552,9 @@ typedef struct HLUsedSvgValues_ {
char
*
stroke_string
;
uint32_t
stroke_color
;
HLTextAnchorEnum
text_anchor
;
HLTextDecorationEnum
text_decoration
;
HLUnicodeBidiEnum
unicode_bidi
;
HLVisibilityEnum
visibility
;
...
...
src/layout/src/node.c
View file @
cd9cc9da
...
...
@@ -365,6 +365,7 @@ HLUsedSvgValues* hilayout_element_node_get_used_svg_value(HLDomElementNode* node
// overflow
svg
->
overflow
=
css_computed_overflow_x
(
style
);
// shape-rendering
svg
->
shape_rendering
=
css_computed_shape_rendering
(
style
);
// stop-color
svg
->
stop_color_type
=
css_computed_stop_color
(
style
,
&
svg
->
stop_color
);
// stop-opacity
...
...
@@ -390,7 +391,9 @@ HLUsedSvgValues* hilayout_element_node_get_used_svg_value(HLDomElementNode* node
// stroke-opacity
// stroke-width
// text-anchor
svg
->
text_anchor
=
css_computed_text_anchor
(
style
);
// text-decoration
svg
->
text_decoration
=
css_computed_text_decoration
(
style
);
// unicode-bidi
svg
->
unicode_bidi
=
css_computed_unicode_bidi
(
style
);
// letter-spacing
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment