path: root/test/select-common.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove option to support not storing data on DOM nodes.Michael Drake2016-11-191-1681/+0
| | | | It was complicating lifetimes and ownership.
* Intern partial styles.Michael Drake2016-11-191-1/+4
| | | | | Note this changes the public API. We can't compose directly over child style now, since it may be interned.
* After composing styles, intern the result in the style sharing arena.Michael Drake2016-11-191-1/+1
| | | | | Note this changes the API. Selection tests updated.
* Change how presentational hints are handled.Michael Drake2016-02-021-6/+7
| | | | | | | | | | | | | | | Previously, we performed normal selection from CSS sources, and then iterated over all the properties in the populated computed style. If the properties were unset or their values were not from either a UA stylesheet or user stylesheet with !important set, then we asked the client program (e.g. NetSurf) if there were any presentational hints for that node, for each such property. In the worst case this triggered N_PROPERTIES * N_NODES calls back to the client program, even for properties that can't be set via HTML attributes. The new API asks the client to supply a list of all the presentational hints that apply to the given node. For most nodes on modern documents, this is 0. Any presentational hints are applied before selection from CSS sources.
* Make it compose styles.Michael Drake2014-12-311-6/+37
* Improve output when selection test fails.Michael Drake2014-10-041-0/+38
| | | | Makes it easier to spot where the difference is.
* Various changes which modify API and ABI:Michael Drake2013-12-131-0/+1608
- 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.