Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add support for SVG stroke-opacity propertyHEADmaster | Michael Orlitzky | 2023-10-01 | 17 | -60/+298 |
| | | | | | | | | https://www.w3.org/TR/SVGTiny12/painting.html#StrokeOpacityProperty This property is unique to SVG documents, but is otherwise analogous to the usual CSS "opacity" property (and the recently-added SVG fill-opacity property). | ||||
* | Add support for SVG fill-opacity property | Michael Orlitzky | 2023-10-01 | 17 | -37/+277 |
| | | | | | | | https://www.w3.org/TR/SVGTiny12/painting.html#FillOpacityProperty This property is unique to SVG documents, but is otherwise analogous to the usual CSS "opacity" property. | ||||
* | select: opacity: correct value | John-Mark Bell | 2023-10-01 | 1 | -1/+1 |
| | |||||
* | src/select/Makefile: the select_generator target is PHONY | Michael Orlitzky | 2023-09-18 | 1 | -0/+1 |
| | | | | | | This target doesn't create an object named "select_generator", so it can be marked .PHONY to improve performance slightly and to avoid a conflict with files/directories of the same name. | ||||
* | src/stylesheet.h: set uses_revert flag for shorthand properties | Michael Orlitzky | 2023-09-17 | 1 | -1/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Take for example the list-style and list-style-type properties; the former is a shorthand property that subsumes the latter. When the list-style-type property is parsed, the "flags" variable has its FLAG_REVERT bit set, and we call, css__stylesheet_style_appendOPV(result, CSS_PROP_LIST_STYLE_TYPE, flags, value); which then sets the "uses_revert" bit on the stylesheet: if ((flags & (0x7 << 1)) == FLAG_REVERT) { style->sheet->uses_revert = true; } In contrast, when list-style is parsed and a flag is found, we run error = css_stylesheet_style_flag_value(result, flag_value, CSS_PROP_LIST_STYLE_TYPE); which immediately delegates to css__stylesheet_style_append() and buildOPV() without checking if "uses_revert" needs to be set. This can lead to segfault when we try to revert to a state that we have not saved (Mantis bug 2854). Adding a FLAG_REVERT check to css_stylesheet_style_flag_value() fixes the issue for the shorthand properties listed in docs/Bytecode, most (but not all) of which experienced the crash. Closes: https://bugs.netsurf-browser.org/mantis/view.php?id=2854 | ||||
* | Avoid integer types with platform dependent size | DeltaVonNeumann | 2023-06-17 | 44 | -295/+295 |
| | |||||
* | select: generator: Simplify function parameter generation | Michael Drake | 2022-12-03 | 1 | -6/+4 |
| | |||||
* | select: generator: Declare and define bits together | Michael Drake | 2022-12-03 | 2 | -316/+105 |
| | |||||
* | select: generator: Remove dead code | Michael Drake | 2022-12-03 | 2 | -150/+36 |
| | | | | | | | | | | This doesn't change the output of the generator at all. It removes the capability to handle property groups, which has been unused since property grouping was removed. Property grouping was originally an attempt to reduce computed style size, which became redundant complexity when computed styles became interned. | ||||
* | select: generator: Generate _bits variants | Michael Drake | 2022-11-27 | 3 | -114/+1017 |
| | | | | | This avoids having overrides to provide trivially generated variants. | ||||
* | select: generator: Split out propget printer | Michael Drake | 2022-11-27 | 1 | -58/+61 |
| | |||||
* | select: autogen source: Update to stable output | Michael Drake | 2022-11-03 | 3 | -539/+540 |
| | |||||
* | select: codegen: Deterministic output by subsorting props by name | Michael Drake | 2022-11-03 | 1 | -1/+1 |
| | |||||
* | select: codegen: Squash comparison with literal warnings | Michael Drake | 2022-11-03 | 1 | -24/+24 |
| | |||||
* | properties: Define align-self values in terms of align-items | Michael Drake | 2022-11-03 | 1 | -5/+5 |
| | |||||
* | properties: position: Add support for 'sticky' value | Michael Drake | 2022-11-03 | 5 | -3/+8 |
| | |||||
* | properties: display: Add grid values | Michael Drake | 2022-10-29 | 6 | -2/+15 |
| | |||||
* | select: Fix blank pseudo style reversion | Michael Drake | 2022-10-23 | 1 | -0/+8 |
| | |||||
* | Select: Only store UA and USER origin styles if revert is used | Michael Drake | 2022-08-29 | 1 | -5/+13 |
| | |||||
* | Stylesheet: Track whether stylesheet used revert property value | Michael Drake | 2022-08-29 | 1 | -0/+6 |
| | |||||
* | Select: Move revert style tracking to separate allocation | Michael Drake | 2022-08-29 | 2 | -8/+18 |
| | | | | It's pretty big and the selection state lives on the stack. | ||||
* | Select: Split out duplicated revert handling | Michael Drake | 2022-08-29 | 1 | -52/+47 |
| | |||||
* | Select: Support CSS property-wide 'revert' value | Michael Drake | 2022-08-29 | 1 | -0/+79 |
| | |||||
* | Select: Clone UA and author styles for revert | Michael Drake | 2022-08-29 | 2 | -0/+38 |
| | |||||
* | Select: Add computed style clone function | Michael Drake | 2022-08-29 | 2 | -0/+35 |
| | |||||
* | Select: Properties: Add copy hander to dispatch table | Michael Drake | 2022-08-29 | 2 | -0/+3 |
| | |||||
* | Select: Properties: Implement copy handler for complex properties | Michael Drake | 2022-08-29 | 8 | -155/+306 |
| | |||||
* | Select: Properties: Add copy handler for simple properties | Michael Drake | 2022-08-29 | 118 | -507/+1778 |
| | |||||
* | Select: Support CSS property-wide 'unset' value | Michael Drake | 2022-08-29 | 1 | -3/+18 |
| | |||||
* | Select: Support CSS property-wide 'initial' value | Michael Drake | 2022-08-29 | 1 | -3/+6 |
| | |||||
* | Select: Make inherit flag handling aware of other default values | Michael Drake | 2022-08-29 | 69 | -170/+172 |
| | |||||
* | Parse: Nongenerated properties: Explicit defaults | Michael Drake | 2022-08-29 | 31 | -135/+363 |
| | |||||
* | Parse: Important: Handle new explicit defaulting values | Michael Drake | 2022-08-29 | 1 | -1/+1 |
| | |||||
* | Parse: Explicit default support for generated properties | Michael Drake | 2022-08-29 | 1 | -93/+93 |
| | |||||
* | Parse: Update code generator to support new values | Michael Drake | 2022-08-29 | 1 | -4/+42 |
| | |||||
* | Stylesheet: Helpers for all default property values | Michael Drake | 2022-08-29 | 1 | -1/+33 |
| | |||||
* | Parse: Utils: Helper to get any value from flags | Michael Drake | 2022-08-29 | 1 | -0/+29 |
| | |||||
* | Bytecode: Flag values for explicit defaulting | Michael Drake | 2022-08-29 | 1 | -4/+25 |
| | |||||
* | Parse: Propstrings: Add unset and revert | Michael Drake | 2022-08-29 | 2 | -2/+4 |
| | |||||
* | Select: MQ: Support prefers-color-scheme in boolean context | Michael Drake | 2022-08-28 | 1 | -4/+5 |
| | | | | | In boolean context it indicates that the browser supports this feature. | ||||
* | Select: MQ: Use interned strings for media features | Michael Drake | 2022-08-28 | 4 | -36/+63 |
| | | | | Avoids some strcmps. | ||||
* | Select: Add strings for media query features | Michael Drake | 2022-08-28 | 2 | -0/+29 |
| | |||||
* | Select: Split out useful strings | Michael Drake | 2022-08-28 | 4 | -289/+320 |
| | |||||
* | Selection: Media queries: Apply prefers-color-scheme | Michael Drake | 2022-07-31 | 1 | -0/+33 |
| | |||||
* | 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 | ||||
* | Select: Hash: Fix bloom instrumentation for size != 4. | Michael Drake | 2022-03-16 | 1 | -1/+1 |
| | |||||
* | Bloom: Init: Switch to memset. | Michael Drake | 2022-03-16 | 1 | -21/+2 |
| | | | | | GCC is a bit better at optimising a memset. For clang it makes no difference. | ||||
* | Bloom: Style: Align function parameters. | Michael Drake | 2022-03-16 | 1 | -2/+3 |
| | |||||
* | Bloom: Docs: Sync comments with reality. | Michael Drake | 2022-03-16 | 1 | -4/+11 |
| |