path: root/include/libcss/hint.h
Commit message (Collapse)AuthorAgeFilesLines
* Change how presentational hints are handled.Michael Drake2016-02-021-1/+2
| | | | | | | | | | | | | | | 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.
* Add support for opacity propertyJohn Mark Bell2011-01-291-0/+1
| | | | svn path=/trunk/libcss/; revision=11527
* Sprinkle some C++ scoping aroundJohn Mark Bell2010-10-231-0/+9
| | | | svn path=/trunk/libcss/; revision=10901
* Stop leaking references to interned strings obtained from presentational hintsJohn Mark Bell2010-04-281-12/+1
| | | | svn path=/trunk/libcss/; revision=10513
* Purge "colour" from the public API -- it's just confusingJohn Mark Bell2009-06-271-1/+1
| | | | svn path=/trunk/libcss/; revision=8035
* Implement set_*_from_hintJohn Mark Bell2009-03-231-8/+28
| | | | | | Plug memory leaks. svn path=/trunk/libcss/; revision=6823
* Completely change the approach used for presentational hints.John Mark Bell2009-03-231-85/+7
| | | | | | | | This one stands a chance of working sanely. While this compiles, please don't expect it to link. svn path=/trunk/libcss/; revision=6820
* Sketch out something for presentational hints.John Mark Bell2009-03-221-0/+118
The client will have to maintain some state to be able to calculate this struct for every node selection, but that shouldn't be overly onerous. Also, the mess surrounding centering can only be sensibly solved through the addition of a new, prefixed, property. svn path=/trunk/libcss/; revision=6816