Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Avoid integer types with platform dependent size | DeltaVonNeumann | 2023-06-17 | 1 | -12/+12 |
| | |||||
* | Parse/MQ: unknown media-types do not match | John-Mark Bell | 2022-05-24 | 1 | -4/+1 |
| | | | | | | | | Per https://www.w3.org/TR/mediaqueries-4/#error-handling, "An unknown <media-type> must be treated as not matching" Ensure, however, that a rule with a condition and no type behaves as if type was all. | ||||
* | Parse/MQ: reject forbidden media-type identifiers | John-Mark Bell | 2022-05-24 | 1 | -15/+40 |
| | | | | | | "and" / "not" / "only" / "or" are forbidden, so must be rejected Add tests for these scenarios | ||||
* | Media queries: Don't set parts before allocation has failed. | Michael Drake | 2020-02-24 | 1 | -1/+1 |
| | | | | | | | Squashes scan-build error about dereference of parts if the allocation fails. Signed-off-by: Michael Drake <Michael Drake tlsa@netsurf-browser.org> | ||||
* | Media queries: Tweak mq_parse_media_in_parens return style. | Michael Drake | 2019-06-12 | 1 | -3/+4 |
| | |||||
* | resolve use of uninitialised pointer in media query initialisation | Vincent Sanders | 2019-06-12 | 1 | -0/+3 |
| | |||||
* | Media queries: Simplify parsed mq data structure slightly. | Michael Drake | 2019-06-11 | 1 | -27/+13 |
| | |||||
* | Media queries: Squash an invalid warning from certain compilers. | Michael Drake | 2019-06-09 | 1 | -1/+1 |
| | | | | src/parse/mq.c:1125:15: error: 'query' may be used uninitialized in this function [-Werror=uninitialized] | ||||
* | Media queries: Handle errors in a media query list correctly. | Michael Drake | 2019-06-09 | 1 | -8/+39 |
| | |||||
* | Media queries: Squash error-path leaks of feature names. | Michael Drake | 2019-06-05 | 1 | -3/+3 |
| | |||||
* | Media queries: <ratio> isn't allowed to have 0 numerator or denominator. | Michael Drake | 2019-06-05 | 1 | -0/+4 |
| | | | | | | | | | | The <ratio> value type is a positive (not zero or negative) <integer> followed by optional whitespace, followed by a solidus ('/'), followed by optional whitespace, followed by a positive <integer>. <ratio>s can be ordered or compared by transforming them into the number obtained by dividing their first <integer> by their second <integer>. -- https://www.w3.org/TR/mediaqueries-4/#aspect-ratio | ||||
* | Media queries: Pass the right tokens to mq_populate_value. | Michael Drake | 2019-05-06 | 1 | -2/+2 |
| | |||||
* | Media queries: A query without a type defaults to type: all. | Michael Drake | 2019-05-06 | 1 | -2/+6 |
| | |||||
* | Media queries: Convert to level 4 range in the correct place. | Michael Drake | 2019-05-06 | 1 | -6/+6 |
| | | | | | In mq_parse_range we already have a level 4 range. We need to convert <mf-plain> in mq_parse_media_feature. | ||||
* | Media queries: Reverse operator for level 4 range conversion. | Michael Drake | 2019-05-06 | 1 | -2/+2 |
| | | | | First op/value are encoded as `value op name`. | ||||
* | Media queries: Parse: Convert level 3 style ranges to level 4. | Michael Drake | 2019-05-05 | 1 | -0/+57 |
| | | | | This will make the selection code's life easier. | ||||
* | Media queries: Intern the query descriptor name as lower case. | Michael Drake | 2019-05-05 | 1 | -1/+4 |
| | |||||
* | Media queries: Validate the query string parameters. | Michael Drake | 2019-05-04 | 1 | -0/+4 |
| | | | | Signed-off-by: Michael Drake <michael.drake@codethink.co.uk> | ||||
* | Media queries: Squash cond_parts parts leak. | Michael Drake | 2019-05-04 | 1 | -0/+1 |
| | | | | Signed-off-by: Michael Drake <michael.drake@codethink.co.uk> | ||||
* | Media queries: Move css_parse_media_query to parse/mq.c file. | Michael Drake | 2019-03-10 | 1 | -0/+103 |
| | | | | It's now exposed in the mq.h header too. | ||||
* | Media queries: Ensure values get destroyed. | Michael Drake | 2019-03-10 | 1 | -5/+16 |
| | |||||
* | Media Queries: fix parsing of media-condition | John-Mark Bell | 2019-03-10 | 1 | -5/+6 |
| | |||||
* | Media Queries: Parse only needs propstrings out of css_language. | Michael Drake | 2019-03-10 | 1 | -51/+57 |
| | |||||
* | Media Queries: Store type as value, rather than lwc_string. | Michael Drake | 2019-03-10 | 1 | -3/+59 |
| | | | | | | Otherwise we need to convert it in selection, and select/ doesn't have access to the css_language interned strings table. | ||||
* | Media Queries: Fix range parsing. | Michael Drake | 2019-03-10 | 1 | -1/+1 |
| | |||||
* | Media Queries: Add error-path resource cleanup. | Michael Drake | 2019-03-10 | 1 | -28/+16 |
| | |||||
* | Media Queries: Add destruction functions. | Michael Drake | 2019-03-10 | 1 | -0/+57 |
| | |||||
* | Media Queries: Implement parsing <general-enclosed>. | Michael Drake | 2019-03-10 | 1 | -1/+98 |
| | |||||
* | Media Queries: Squash invalid use of unused variable warning. | Michael Drake | 2019-03-10 | 1 | -1/+2 |
| | | | | error: ‘last’ may be used uninitialized in this function [-Werror=maybe-uninitialized] | ||||
* | Media Queries: Add forward declaration of mq_parse_condition. | Michael Drake | 2019-03-10 | 1 | -0/+4 |
| | |||||
* | Media Queries: mq_parse_ratio doesn't need language object. | Michael Drake | 2019-03-10 | 1 | -5/+5 |
| | |||||
* | Media Queries: Minor fixes. | Michael Drake | 2019-03-10 | 1 | -4/+5 |
| | |||||
* | Media Queries: Include string.h for memset. | Michael Drake | 2019-03-10 | 1 | -0/+2 |
| | |||||
* | Media Queries: Include stylesheet.h for css_style. | Michael Drake | 2019-03-10 | 1 | -0/+1 |
| | |||||
* | Media Queries: remainder of parser | John-Mark Bell | 2019-03-10 | 1 | -74/+347 |
| | |||||
* | Media Queries: parse features | John-Mark Bell | 2019-03-10 | 1 | -1/+449 |
| | |||||
* | Media Queries: datastructures and plumbing. | John-Mark Bell | 2019-03-10 | 1 | -0/+96 |
No parse implementation as yet. Selection hasn't been updated, either. One item of note in that area is that a client currently provides the media for top-level sheets being added to a selection context. This probably needs to change to providing a lwc_string containing the verbatim media query from the containing document's import mechanism. That way, the internal representation of media queries can remain opaque to clients. |