summaryrefslogtreecommitdiff
path: root/css/css.c
Commit message (Collapse)AuthorAgeFilesLines
* move the CSS content handlerVincent Sanders2016-05-261-847/+0
|
* Rewrite hints handling to be more efficient.Michael Drake2016-02-051-0/+6
| | | | | | | | | | Now we only look for hints that are actually possible for the given element. This new way of doing things is made possible by the new LibCSS API for hints. This also makes use of the LibDOM HTMLElement tag type to avoid lots of massive if-else-if ladders of dom_string_caseless_isequal calls.
* Change LOG() macro to be varadicVincent Sanders2015-05-281-7/+5
| | | | | | | | | | | | This changes the LOG macro to be varadic removing the need for all callsites to have double bracketing and allows for future improvement on how we use the logging macros. The callsites were changed with coccinelle and the changes checked by hand. Compile tested for several frontends but not all. A formatting annotation has also been added which allows the compiler to check the parameters and types passed to the logging.
* Doxygen fixesVincent Sanders2014-11-091-11/+16
|
* when walking the css imports ensure the content is present before ↵Vincent Sanders2014-07-081-2/+2
| | | | | | | | | dereferencing it css import entries may not have a valid content if the resource failed to load or was unsuitable in some otehr way. The save_complete iterator did not cope with this. fixes #2166
* remove uncessary include os render/html.hVincent Sanders2014-02-041-4/+3
|
* Use corestring.Michael Drake2014-01-241-14/+2
|
* stop system colours being anything to do with frontendsVincent Sanders2014-01-101-3/+3
|
* Remove asserts for default cases from all content message handlers; this is ↵Rob Kendrick2014-01-051-12/+1
| | | | laborious and is no longer useful for catching bugs.
* Update for new libcss API.Michael Drake2013-12-131-4/+2
|
* add handling for recived but no action redirect messages and log before ↵Vincent Sanders2013-06-081-4/+11
| | | | abort. (closes #3614409)
* Use correct base URL for inline stylesheetsJohn-Mark Bell2013-02-271-2/+8
|
* Use custom fetcher for inline CSSJohn-Mark Bell2013-02-271-5/+37
|
* reduce talloc usage to box tree layout onlyVincent Sanders2012-10-031-5/+4
|
* Interned string cleanup, phase 2: Create utils/corestrings and use it in css ↵Michael Drake2012-07-221-246/+0
| | | | handler.
* Interned string cleanup, phase 1: Use lwc_string where possible in CSS handler.Michael Drake2012-07-221-126/+160
|
* Ensure error is initialisedJohn Mark Bell2012-03-251-3/+8
| | | | svn path=/trunk/netsurf/; revision=13711
* Fix up border-{trbl}-style hintJohn Mark Bell2012-03-251-0/+3
| | | | svn path=/trunk/netsurf/; revision=13710
* Make vertical align hint less braindeadJohn Mark Bell2012-03-251-113/+125
| | | | svn path=/trunk/netsurf/; revision=13707
* Cellpadding needs interning tooDaniel Silverstone2012-03-251-0/+3
| | | | svn path=/trunk/netsurf/; revision=13697
* All the intern strings we might need for CSSDaniel Silverstone2012-03-251-12/+162
| | | | svn path=/trunk/netsurf/; revision=13696
* add presentational hint routine for background imageVincent Sanders2012-03-251-0/+3
| | | | svn path=/trunk/netsurf/; revision=13693
* Fix up node_presentational_hint_vertical_alignJohn Mark Bell2012-03-251-1/+6
| | | | svn path=/trunk/netsurf/; revision=13690
* fix node_is_linkVincent Sanders2012-03-251-49/+86
| | | | | | add dom string globals to css handler svn path=/trunk/netsurf/; revision=13678
* content_get_url -> hlcache_handle_get_url, content__get_url -> content_get_urlJohn Mark Bell2011-12-041-2/+2
| | | | svn path=/trunk/netsurf/; revision=13236
* Port more internals to nsurl. Front ends may need updating.Michael Drake2011-10-031-5/+26
| | | | svn path=/trunk/netsurf/; revision=12926
* Virtualise content handler finalisation calls. Remove pointless implementations.John Mark Bell2011-09-151-2/+4
| | | | svn path=/trunk/netsurf/; revision=12797
* Clean up content_factory_register_handler API -- content handlers no longer ↵John Mark Bell2011-09-151-13/+8
| | | | | | use the mime type, so don't require it to be interned up front svn path=/trunk/netsurf/; revision=12796
* Remove mime_type parameter from content handler content_type callback APIJohn Mark Bell2011-09-031-3/+2
| | | | svn path=/trunk/netsurf/; revision=12704
* Reject attempts by a stylesheet to import itselfJohn Mark Bell2011-08-231-6/+15
| | | | svn path=/trunk/netsurf/; revision=12644
* Fix transition from LOADING to ERROR state after content has been locked for ↵John Mark Bell2011-07-201-2/+1
| | | | | | conversion svn path=/trunk/netsurf/; revision=12614
* Refactor http utilitiesJohn Mark Bell2011-07-081-3/+23
| | | | svn path=/trunk/netsurf/; revision=12595
* refactor content handler initilisation to use named initialisorsVincent Sanders2011-05-091-15/+8
| | | | svn path=/trunk/netsurf/; revision=12341
* consolidate content redraw Vincent Sanders2011-05-081-1/+0
| | | | | | more cleanups ready for image content refactor svn path=/trunk/netsurf/; revision=12317
* Merge branches/jmb/content-factory to trunkJohn Mark Bell2011-05-061-38/+176
| | | | svn path=/trunk/netsurf/; revision=12283
* Sync with versioned libcss ABIJohn Mark Bell2011-03-131-0/+2
| | | | svn path=/trunk/netsurf/; revision=12008
* Fix bug #3194007: stop emitting duplicate READY/DONE events.John Mark Bell2011-02-271-8/+19
| | | | | | | * Make content handlers responsible for setting READY/DONE state & emitting events. * Stop content_convert doing this when there is a registered convert function for the content type. svn path=/trunk/netsurf/; revision=11850
* Clean up blank_import on exitJohn Mark Bell2011-02-261-2/+10
| | | | svn path=/trunk/netsurf/; revision=11818
* Parallelise fetch and conversion of imported stylesheetsJohn Mark Bell2011-02-261-171/+236
| | | | svn path=/trunk/netsurf/; revision=11817
* Fix bug #3171370: initialise font resolution callback pointersJohn Mark Bell2011-02-031-0/+4
| | | | svn path=/trunk/netsurf/; revision=11608
* add default system colour handlers to each frontendVincent Sanders2011-01-301-2/+2
| | | | svn path=/trunk/netsurf/; revision=11530
* Reflect new css_stylesheet_create APIJohn Mark Bell2011-01-291-10/+31
| | | | svn path=/trunk/netsurf/; revision=11523
* Reflect changes to libcss APIJohn Mark Bell2010-12-051-0/+2
| | | | svn path=/trunk/netsurf/; revision=11001
* Only invoke callback when we successfully converted CSS data.John Mark Bell2010-07-011-2/+11
| | | | svn path=/trunk/netsurf/; revision=10592
* Consolidate several 'myrealloc' functions into ns_realloc, rename one which ↵Daniel Silverstone2010-04-301-20/+3
| | | | | | *is* different, thereby eliminating the word 'myrealloc' from the NS codebase svn path=/trunk/netsurf/; revision=10530
* It turns out that realloc(ptr, 0) --> free(ptr) is not actually required by ↵John Mark Bell2010-04-301-0/+5
| | | | | | | | the C standard (whereas realloc(NULL, size) --> malloc(size) is). Therefore, explicitly model the behaviour expected by our libraries (that realloc of 0 size is equivalent to free). svn path=/trunk/netsurf/; revision=10524
* Unref uri after sending it to hlcache when requesting a css pending import, ↵Daniel Silverstone2010-04-271-0/+3
| | | | | | so that we don't leak the uris svn path=/trunk/netsurf/; revision=10503
* Fix it so that empty charset strings fall back properly. Fixes ↵Daniel Silverstone2010-04-221-1/+1
| | | | | | http://www.arm.com/community/partners/all_partners.php svn path=/trunk/netsurf/; revision=10452
* Check correct variable for error.John Mark Bell2010-04-181-1/+1
| | | | svn path=/trunk/netsurf/; revision=10428
* Now that we own imported stylesheets, we can get away with allocating a ↵John Mark Bell2010-04-111-7/+14
| | | | | | single blank import and registering that. svn path=/trunk/netsurf/; revision=10370