| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
It's now exposed in the mq.h header too.
|
|
|
|
|
| |
This converts the experimental code to test the media query parsing into
a useful function.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Top level stylesheets need to have their media query passed in.
So we need a way to parse standalone media queries.
This was hacked together to explore doing that.
However, it encounteded an issue where it seems the parseAtRule()
function in src/parse/parse.c doesn't handle the full grammar for
media queries.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
| |
- Remove client allocation function.
- Change node_classes callback not to yield array ownership to libcss.
- Node bloom filters now built by, during selection libcss.
- Added selection callbacks to get and set data on document nodes.
Test suite, example, and documentation updated to match.
|
| |
|
|
|
|
|
|
| |
Things missing: parser tests; the following descriptors: font-feature-settings, font-stretch, font-variant, unicode-range.
svn path=/trunk/libcss/; revision=13244
|
|
|
|
| |
svn path=/trunk/libcss/; revision=12974
|
|
|
|
|
|
| |
Montgomerie.
svn path=/trunk/libcss/; revision=12697
|
|
|
|
| |
svn path=/trunk/libcss/; revision=12007
|
|
|
|
| |
svn path=/trunk/libcss/; revision=11972
|
|
|
|
| |
svn path=/trunk/libcss/; revision=11599
|
|
|
|
|
|
|
|
| |
selectors.
Fix dumping of these selectors when debugging selector chains
svn path=/trunk/libcss/; revision=11569
|
|
|
|
| |
svn path=/trunk/libcss/; revision=11557
|
|
|
|
| |
svn path=/trunk/libcss/; revision=11522
|
|
|
|
| |
svn path=/trunk/libcss/; revision=11492
|
|
|
|
|
|
| |
css__parser_parse_chunk
svn path=/trunk/libcss/; revision=11491
|
|
|
|
|
|
| |
This helps prevent confusion if someone else wants a function called parse_background or similar
svn path=/trunk/libcss/; revision=11416
|
|
|
|
|
|
| |
r=jmb,kinnison,vince
svn path=/trunk/libcss/; revision=11408
|
|
|
|
| |
svn path=/trunk/libcss/; revision=11210
|
|
|
|
|
|
| |
Move properties ready for split
svn path=/trunk/libcss/; revision=11005
|
|
|
|
|
|
| |
parallelise their processing
svn path=/trunk/libcss/; revision=10999
|
|
|
|
|
|
|
|
|
|
|
| |
These prevent stylesheets being used in multiple contexts simultaneously.
Their values can be inferred from the context in which the stylesheet is used.
Replace use of ownerRule to backtrack in style selection with a (fixed-size)
stack of rules to process. This prevents crashes when a sheet that was
previously imported somewhere is reused as a top-level sheet.
svn path=/trunk/libcss/; revision=10581
|
|
|
|
| |
svn path=/trunk/libcss/; revision=10367
|
|
|
|
| |
svn path=/trunk/libcss/; revision=10247
|
|
|
|
|
|
| |
to a rule's style.
svn path=/trunk/libcss/; revision=10174
|
|
|
|
| |
svn path=/trunk/libcss/; revision=10168
|
|
|
|
|
|
|
| |
TODO: update the tests to include a refcounting proof
svn path=/trunk/libcss/; revision=10162
|
|
|
|
|
|
|
|
|
| |
They are properties of the context in which the stylesheet is used.
Therefore, for top-level sheets, this information must be provided at selection
time. For child sheets, the origin is inherited from their parent and the
applicable media types are specified on the linking mechanism.
svn path=/trunk/libcss/; revision=9802
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2) Cache unused css_style objects with chunks of size 16, 32, 48, and 64 bytes
The above should reduce heap churn somewhat.
Further improvements are possible:
1) Make the property parsers write the parsed values direct into the output
bytecode, instead of into a temporary object which is then merged into
the output.
2) Perform similar caching for css_rule and selector objects.
3) Shrink-wrap finalised output styles rather than leaving them oversized.
4) Perform measurement to determine the optimal chunk sizes (power-of-2 makes
maths simple and 16 is plucked from thin air) and cache bucket count/sizes.
svn path=/trunk/libcss/; revision=9502
|
|
|
|
| |
svn path=/trunk/libcss/; revision=8830
|
|
|
|
|
|
| |
meant to work.
svn path=/trunk/libcss/; revision=8607
|
|
|
|
|
|
| |
ignored.
svn path=/trunk/libcss/; revision=8386
|
|
|
|
| |
svn path=/trunk/libcss/; revision=8231
|
|
|
|
| |
svn path=/trunk/libcss/; revision=8228
|
|
|
|
| |
svn path=/trunk/libcss/; revision=8024
|
|
|
|
| |
svn path=/trunk/libcss/; revision=8014
|
|
|
|
|
|
| |
they ought to be.
svn path=/trunk/libcss/; revision=6532
|
|
|
|
| |
svn path=/trunk/libcss/; revision=6519
|
|
|
|
|
|
|
|
|
| |
It passes the tests, perhaps we need more of them.
Lifetimes of lwc_string objects really need attention before we can consider
this finished.
svn path=/trunk/libcss/; revision=6517
|
|
|
|
|
|
| |
No longer is the client called back mid-parse. Instead, they must acquire details of and process imported stylesheets after css_stylesheet_data_done() has been called on the parent sheet. The return code of css_stylesheet_data_done() informs the client of the need to process imported sheets.
svn path=/trunk/libcss/; revision=6504
|
|
|
|
| |
svn path=/trunk/libcss/; revision=6482
|
|
|
|
|
|
| |
More test data for selectors with pseudo elements
svn path=/trunk/libcss/; revision=6473
|
|
|
|
| |
svn path=/trunk/libcss/; revision=6453
|
|
|
|
| |
svn path=/trunk/libcss/; revision=6406
|
|
|
|
|
|
| |
specificity/rule index.
svn path=/trunk/libcss/; revision=6280
|