diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2019-02-17 09:03:19 +0000 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2019-02-17 09:06:58 +0000 |
commit | 07242c7415bcfb35d3f9f150317b30138664eb2f (patch) | |
tree | e3cfe75401601c90aded3426c5f7f71a5fe0a4e0 /content/content_protected.h | |
parent | 776b0242a6221df61c8d1c7b320f223de5af8466 (diff) | |
download | netsurf-07242c7415bcfb35d3f9f150317b30138664eb2f.tar.gz netsurf-07242c7415bcfb35d3f9f150317b30138664eb2f.tar.bz2 |
Content: Make the content structure aware of viewport height.
It was always aware of viewport width, but since adding support for
vh CSS units, the HTML content handler also needs viewport height.
Signed-off-by: Michael Drake <michael.drake@codethink.co.uk>
Diffstat (limited to 'content/content_protected.h')
-rw-r--r-- | content/content_protected.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/content/content_protected.h b/content/content_protected.h index 21b73a662..be277a042 100644 --- a/content/content_protected.h +++ b/content/content_protected.h @@ -113,7 +113,8 @@ struct content { content_status status; /**< Current status. */ int width, height; /**< Dimensions, if applicable. */ - int available_width; /**< Available width (eg window width). */ + int available_width; /**< Viewport width. */ + int available_height; /**< Viewport height. */ bool quirks; /**< Content is in quirks mode */ char *fallback_charset; /**< Fallback charset, or NULL */ |