summaryrefslogtreecommitdiff
path: root/src/select/properties/clip.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2022-08-15 20:15:58 +0100
committerMichael Drake <mdrake.unique@gmail.com>2022-08-29 13:49:20 +0100
commit166581e23cb6e1e6279f450635cd16a12f8b0ef2 (patch)
tree957ce75e15a34e4cd090dc489bd18b8c95b140a3 /src/select/properties/clip.c
parent2504bb6f6414ae36c036a84d21f7821178dc58ee (diff)
downloadlibcss-166581e23cb6e1e6279f450635cd16a12f8b0ef2.tar.gz
libcss-166581e23cb6e1e6279f450635cd16a12f8b0ef2.tar.bz2
Select: Make inherit flag handling aware of other default values
Diffstat (limited to 'src/select/properties/clip.c')
-rw-r--r--src/select/properties/clip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/select/properties/clip.c b/src/select/properties/clip.c
index 2785afb..c82c1af 100644
--- a/src/select/properties/clip.c
+++ b/src/select/properties/clip.c
@@ -22,7 +22,7 @@ css_error css__cascade_clip(uint32_t opv, css_style *style,
CSS_UNIT_PX, CSS_UNIT_PX, CSS_UNIT_PX, CSS_UNIT_PX,
false, false, false, false };
- if (isInherit(opv) == false) {
+ if (hasFlagValue(opv) == false) {
switch (getValue(opv) & CLIP_SHAPE_MASK) {
case CLIP_SHAPE_RECT:
if (getValue(opv) & CLIP_RECT_TOP_AUTO) {
@@ -71,7 +71,7 @@ css_error css__cascade_clip(uint32_t opv, css_style *style,
rect.lunit = css__to_css_unit(rect.lunit);
if (css__outranks_existing(getOpcode(opv), isImportant(opv), state,
- isInherit(opv))) {
+ getFlagValue(opv))) {
return set_clip(state->computed, value, &rect);
}