diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-01-10 15:02:43 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-01-10 15:02:43 +0000 |
commit | faf8b75e949c891738fb3a2e404e37c6a76ae252 (patch) | |
tree | 520d5cf040dca54b2695f91a25141f367fe92546 /src/select/propget.h | |
parent | c9904219b8a877b05608fffc1ca8a50ba6a6bb36 (diff) | |
download | libcss-faf8b75e949c891738fb3a2e404e37c6a76ae252.tar.gz libcss-faf8b75e949c891738fb3a2e404e37c6a76ae252.tar.bz2 |
Avoid duplicate implementations of computed style property getters.
Diffstat (limited to 'src/select/propget.h')
-rw-r--r-- | src/select/propget.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/select/propget.h b/src/select/propget.h index 16b8fc2..15fef05 100644 --- a/src/select/propget.h +++ b/src/select/propget.h @@ -184,6 +184,8 @@ static inline uint8_t get_writing_mode( uint8_t bits = style->uncommon->bits[WRITING_MODE_INDEX]; bits &= WRITING_MODE_MASK; bits >>= WRITING_MODE_SHIFT; + + /* 2bits: type */ return bits; } @@ -1500,7 +1502,6 @@ static inline uint8_t get_display_static( /* 5bits: type */ return bits; } - #undef DISPLAY_MASK #undef DISPLAY_SHIFT #undef DISPLAY_INDEX |