mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Extend supported geometry box value for geckolib
This commit is contained in:
parent
04a3242dc5
commit
0a56ec3477
4 changed files with 24 additions and 4 deletions
|
@ -1565,6 +1565,14 @@ fn static_assert() {
|
|||
T::border_box => StyleGeometryBox::Border,
|
||||
T::padding_box => StyleGeometryBox::Padding,
|
||||
T::content_box => StyleGeometryBox::Content,
|
||||
% if shorthand == "mask":
|
||||
T::fill_box => StyleGeometryBox::Fill,
|
||||
T::stroke_box => StyleGeometryBox::Stroke,
|
||||
T::view_box => StyleGeometryBox::View,
|
||||
T::no_clip => StyleGeometryBox::NoClip,
|
||||
% elif shorthand == "background":
|
||||
T::text => StyleGeometryBox::Text,
|
||||
% endif
|
||||
}
|
||||
</%self:simple_image_array_property>
|
||||
|
||||
|
@ -1576,6 +1584,11 @@ fn static_assert() {
|
|||
T::border_box => StyleGeometryBox::Border,
|
||||
T::padding_box => StyleGeometryBox::Padding,
|
||||
T::content_box => StyleGeometryBox::Content,
|
||||
% if shorthand == "mask":
|
||||
T::fill_box => StyleGeometryBox::Fill,
|
||||
T::stroke_box => StyleGeometryBox::Stroke,
|
||||
T::view_box => StyleGeometryBox::View,
|
||||
% endif
|
||||
}
|
||||
</%self:simple_image_array_property>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue