summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* (calc): Update bytecode for calc() to be in an lwc_stringtlsa/calcDaniel Silverstone2022-12-032-34/+84
| | | | | | | | | | In order to permit us to share calc expressions between styles and computed styles, without copying, we embed the calc expression bytecode into an lwc string. This is effectively using lwc_string as an interned byte buffer, there may be a nicer way to do this in the future. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* bytecode: Use define for calc value identifierMichael Drake2022-12-032-36/+39
|
* parse: Tests and fixes for calc() parser.Daniel Silverstone2022-12-034-34/+209
| | | | Co-authored-by: Michael Drake <michael.drake@netsurf-browser.org>
* parse: calc() test and fixup.Daniel Silverstone2022-12-036-20/+115
|
* parse: Update parser generator to support calc() details.Michael Drake2022-12-035-88/+141
| | | | Co-authored-by: Daniel Silverstone <dsilvers@netsurf-browser.org>
* parse: Add calc() parser.Daniel Silverstone2022-12-035-1/+302
| | | | Co-authored-by: Michael Drake <michael.drake@netsurf-browser.org>
* select: generator: Simplify function parameter generationMichael Drake2022-12-031-6/+4
|
* select: generator: Declare and define bits togetherMichael Drake2022-12-032-316/+105
|
* select: generator: Remove dead codeMichael Drake2022-12-032-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 variantsMichael Drake2022-11-273-114/+1017
| | | | | This avoids having overrides to provide trivially generated variants.
* select: generator: Split out propget printerMichael Drake2022-11-271-58/+61
|
* GitHub CI: Add static analysis with CodeQLMichael Drake2022-11-091-0/+61
|
* GitHub CI: Add build and unit test workflowMichael Drake2022-11-091-0/+76
|
* select: autogen source: Update to stable outputMichael Drake2022-11-033-539/+540
|
* select: codegen: Deterministic output by subsorting props by nameMichael Drake2022-11-031-1/+1
|
* select: codegen: Squash comparison with literal warningsMichael Drake2022-11-031-24/+24
|
* properties: Define align-self values in terms of align-itemsMichael Drake2022-11-032-11/+11
|
* tests: Add tests for position:stickyMichael Drake2022-11-033-0/+120
|
* properties: position: Add support for 'sticky' valueMichael Drake2022-11-037-4/+11
|
* test: Add test for display property grid valuesMichael Drake2022-10-291-0/+111
|
* test: dump: Add support for display property grid valuesMichael Drake2022-10-291-0/+6
|
* properties: display: Add grid valuesMichael Drake2022-10-297-3/+18
|
* docs: bytecode: Add display grid valuesMichael Drake2022-10-291-0/+2
|
* select: Fix blank pseudo style reversionMichael Drake2022-10-231-0/+8
|
* Floating point maths: Squash clang warningMichael Drake2022-10-221-3/+5
| | | | | Implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Werror,-Wimplicit-const-int-float-conversion]
* Select: Only store UA and USER origin styles if revert is usedMichael Drake2022-08-291-5/+13
|
* Stylesheet: Track whether stylesheet used revert property valueMichael Drake2022-08-291-0/+6
|
* Select: Move revert style tracking to separate allocationMichael Drake2022-08-292-8/+18
| | | | It's pretty big and the selection state lives on the stack.
* Tests: Add tests for explicit defaultingMichael Drake2022-08-292-0/+1453
|
* Select: Split out duplicated revert handlingMichael Drake2022-08-291-52/+47
|
* Select: Support CSS property-wide 'revert' valueMichael Drake2022-08-291-0/+79
|
* Select: Clone UA and author styles for revertMichael Drake2022-08-292-0/+38
|
* Select: Add computed style clone functionMichael Drake2022-08-292-0/+35
|
* Select: Properties: Add copy hander to dispatch tableMichael Drake2022-08-292-0/+3
|
* Select: Properties: Implement copy handler for complex propertiesMichael Drake2022-08-298-155/+306
|
* Select: Properties: Add copy handler for simple propertiesMichael Drake2022-08-29118-507/+1778
|
* Select: Support CSS property-wide 'unset' valueMichael Drake2022-08-291-3/+18
|
* Select: Support CSS property-wide 'initial' valueMichael Drake2022-08-291-3/+6
|
* Select: Make inherit flag handling aware of other default valuesMichael Drake2022-08-2970-171/+179
|
* Parse: Nongenerated properties: Explicit defaultsMichael Drake2022-08-2931-135/+363
|
* Parse: Important: Handle new explicit defaulting valuesMichael Drake2022-08-291-1/+1
|
* Parse: Explicit default support for generated propertiesMichael Drake2022-08-291-93/+93
|
* Parse: Update code generator to support new valuesMichael Drake2022-08-291-4/+42
|
* Stylesheet: Helpers for all default property valuesMichael Drake2022-08-291-1/+33
|
* Parse: Utils: Helper to get any value from flagsMichael Drake2022-08-291-0/+29
|
* Bytecode: Flag values for explicit defaultingMichael Drake2022-08-291-4/+25
|
* Docs: Bytecode: Add all CSS-wide property valuesMichael Drake2022-08-291-8/+16
|
* Parse: Propstrings: Add unset and revertMichael Drake2022-08-292-2/+4
|
* Select: MQ: Support prefers-color-scheme in boolean contextMichael Drake2022-08-281-4/+5
| | | | | In boolean context it indicates that the browser supports this feature.
* Select: MQ: Use interned strings for media featuresMichael Drake2022-08-284-36/+63
| | | | Avoids some strcmps.