summaryrefslogtreecommitdiff
path: root/css/css.h
Commit message (Collapse)AuthorAgeFilesLines
* Improve handling of HTML attributes / markup:Michael Drake2008-02-251-3/+32
| | | | | | | | | | | | | | | | | | | | | * Only apply presentational HTML attributes if no more important CSS has been set for the property. (NetSurf used to be a bit hit-and-miss when presentational markup and CSS were mixed.) * Change table cellpadding and border handling to happen as soon the boxes styles are available, rather than after the whole table has been constructed. Also fix default table border colour. * Improve handling of CENTER tag and ALIGN attribute. These could not be correctly supported in the default CSS file, so block level element alignment is now done during box construction. (Fixes #1891379, #1824492, #1723853) Form improvements: * Small MAXLENGTH values on text inputs now reduce element width. (Fixes #1894854) * Prevent select option text from wrapping. svn path=/trunk/netsurf/; revision=3866
* Rework handling of HTTP redirects -- we now count the number of redirects ↵John Mark Bell2008-01-281-1/+0
| | | | | | | | | | | | | | | | | | | | followed for a given item and abort if a fixed limit is reached. This fixes sites which have pages that redirect to themselves. Redirect handling is now transparent to clients of fetchcache. The new scheme works as follows: 1) Request content for URL (fetchcache() 2) Start fetch of content (fetchcache_go() 3) If no redirect, continue through LOADING, READY, DONE etc. states as before If redirect, receive NEWPTR for each redirect that occurs, then continue through LOADING, READY, DONE etc. states as before. The upshot of this is that redirects result in extra contents being created. It also means that, until LOADING has been received, the content (and thus the URL being fetched) may change. Therefore, fetchcache clients should expect to have to deal with transient data prior to LOADING occurring. As a necessary side-effect of this, the HTML object URLs and CSS @import URLs are no longer stored alongside the relevant contents. These URLs can be accessed by interrogating the url member of struct content anyway, so it was a rather redundant scheme before. svn path=/trunk/netsurf/; revision=3787
* Fix parsing of invalid colour values becoming CSS_COLOR_NONE. Make all ↵Richard Wilson2007-10-091-0/+2
| | | | | | colour parsing code common. svn path=/trunk/netsurf/; revision=3625
* Provide the facility to set the DPI of the display by removing the ↵Daniel Silverstone2007-08-191-0/+1
| | | | | | assumptions of 90.0 dpi from the CSS and layout engines. svn path=/trunk/netsurf/; revision=3528
* Update all source code file headers to reflect GPL version 2 only and ↵Vincent Sanders2007-08-081-3/+14
| | | | | | contain appropriate licence text svn path=/trunk/netsurf/; revision=3486
* Remove the netsurf/ from the include paths and rationalise use of <> vs "" ↵Daniel Silverstone2007-05-301-2/+2
| | | | | | | | | | | | | | in includes NetSurf includes are now done with ""s and other system includes with <>s as C intended. The scandeps tool has been updated to only look for ""ed includes, and to verify that the files exist in the tree before adding them to the dependency lines. The depend rule has therefore been augmented to make sure the autogenerated files are built before it is run. This is untested under self-hosted RISC OS builds. All else tested and works. svn path=/trunk/netsurf/; revision=3307
* Update project URL.Michael Drake2006-11-271-1/+1
| | | | svn path=/trunk/netsurf/; revision=3073
* [project @ 2006-03-09 19:04:13 by dsilvers]Daniel Silverstone2006-03-091-0/+2
| | | | | | | css.[ch]: Add css_len2pt to convert a CSS length to points for use on systems which actually recognise that DPI might not be 90 all the time. svn path=/import/netsurf/; revision=2114
* [project @ 2005-07-31 22:06:03 by jmb]John Mark Bell2005-07-311-0/+1
| | | | | | Ignore @import rules which occur after a valid rule. svn path=/import/netsurf/; revision=1835
* [project @ 2005-05-21 23:30:19 by bursa]James Bursa2005-05-211-1/+24
| | | | | | Improve selector specificity support by adding "working stylesheets" with pre-sorted lists of rules. This also simplifies css_get_style(). The stylesheet origin is now encoded in the specificity. Improve output of css_dump_style(). svn path=/import/netsurf/; revision=1729
* [project @ 2005-04-14 19:54:24 by rjw]Richard Wilson2005-04-141-5/+10
| | | | | | Implement HTML table border setting. Improve support for the collapsing border model. svn path=/import/netsurf/; revision=1632
* [project @ 2005-04-09 09:47:36 by bursa]James Bursa2005-04-091-11/+0
| | | | | | Move HTML contents almost fully over to talloc(), simplifying code. Improvements to title attributes, broken forms, cellpadding. Reorder functions in box_construct.c. svn path=/import/netsurf/; revision=1608
* [project @ 2005-03-22 00:10:42 by rjw]Richard Wilson2005-03-221-0/+11
| | | | | | Experimental cellpadding support svn path=/import/netsurf/; revision=1569
* [project @ 2005-02-19 23:40:15 by bursa]James Bursa2005-02-191-4/+5
| | | | | | Add const qualifiers to css_len2px arguments. svn path=/import/netsurf/; revision=1516
* [project @ 2005-01-16 21:39:21 by rjw]Richard Wilson2005-01-161-3/+59
| | | | | | Read content, counter-reset and counter-increment properties. svn path=/import/netsurf/; revision=1456
* [project @ 2005-01-16 00:03:45 by jmb]John Mark Bell2005-01-161-1/+3
| | | | | | Create interface for duplication and destruction of css_style structs. svn path=/import/netsurf/; revision=1450
* [project @ 2005-01-15 22:11:53 by rjw]Richard Wilson2005-01-151-1/+6
| | | | | | Background work for CSS counters (CSS 2.1/12.4) svn path=/import/netsurf/; revision=1449
* [project @ 2005-01-11 19:39:49 by jmb]John Mark Bell2005-01-111-26/+53
| | | | | | Handle property: inherit; properly svn path=/import/netsurf/; revision=1441
* [project @ 2004-10-07 09:34:15 by bursa]James Bursa2004-10-071-1/+1
| | | | | | Fix #include path. svn path=/import/netsurf/; revision=1307
* [project @ 2004-08-14 15:07:19 by joty]John Tytgat2004-08-141-1/+1
| | | | | | | | - Rename len() to css_len2px(). - Less compiler warnings concerning float/int implicit casts. - More stddef.h type usuage. svn path=/import/netsurf/; revision=1232
* [project @ 2004-08-01 21:56:47 by jmb]John Mark Bell2004-08-011-42/+10
| | | | | | Rationalise top, bottom, right and left property handling svn path=/import/netsurf/; revision=1174
* [project @ 2004-08-01 14:13:47 by jmb]John Mark Bell2004-08-011-14/+222
| | | | | | Internal representation and parsing of most CSS2 properties. svn path=/import/netsurf/; revision=1172
* [project @ 2004-07-30 21:53:52 by jmb]John Mark Bell2004-07-301-0/+6
| | | | | | Implement some CSS3 attribute selectors svn path=/import/netsurf/; revision=1167
* [project @ 2004-07-16 20:22:31 by jmb]John Mark Bell2004-07-161-0/+2
| | | | | | | Add overflow support. Re-tabulate property table in ruleset.c svn path=/import/netsurf/; revision=1087
* [project @ 2004-06-25 14:28:29 by bursa]James Bursa2004-06-251-38/+38
| | | | | | Parse CSS background shorthand property. Background rendering improvements. svn path=/import/netsurf/; revision=1006
* [project @ 2004-06-11 12:51:40 by jmb]John Mark Bell2004-06-111-1/+2
| | | | | | Fix for crash caused by inline style attributes specifying background images. svn path=/import/netsurf/; revision=961
* [project @ 2004-06-10 20:41:26 by bursa]James Bursa2004-06-101-2/+2
| | | | | | Add global content list. Better error handling in content code. Improved code documentation. Remove some obsolete functions. Implement debug window listing contents. svn path=/import/netsurf/; revision=951
* [project @ 2004-06-09 19:55:06 by jmb]John Mark Bell2004-06-091-1/+37
| | | | | | | | | Implement background-image, background-repeat, background-position and background-attachment CSS properties. background-attachment and background-position need more work. Some redraw issues remain. svn path=/import/netsurf/; revision=938
* [project @ 2004-05-21 10:17:55 by bursa]James Bursa2004-05-211-1/+1
| | | | | | Revert this change because it breaks the autobuilder. svn path=/import/netsurf/; revision=877
* [project @ 2004-05-21 09:42:16 by joty]John Tytgat2004-05-211-1/+1
| | | | | | Bring css_parser_Alloc() declaration inline with its implementation. svn path=/import/netsurf/; revision=876
* [project @ 2004-05-01 17:48:38 by bursa]James Bursa2004-05-011-40/+70
| | | | | | CSS parsing improvements: new tokeniser using re2c, improve memory-exhaustion behaviour, plug leaks, reduce memory usage, clean up code, add source documention. svn path=/import/netsurf/; revision=806
* [project @ 2004-04-14 12:53:14 by bursa]James Bursa2004-04-141-3/+0
| | | | | | Merge css_create() into css_convert(). svn path=/import/netsurf/; revision=782
* [project @ 2004-04-02 23:12:26 by jmb]John Mark Bell2004-04-021-0/+1
| | | | | | Implement CSS cursor property svn path=/import/netsurf/; revision=705
* [project @ 2004-03-11 02:19:13 by bursa]James Bursa2004-03-111-4/+0
| | | | | | Add source_data to content structure and remove equivalents from individual contents. svn path=/import/netsurf/; revision=606
* [project @ 2004-02-13 23:07:42 by bursa]James Bursa2004-02-131-2/+2
| | | | | | Add font size configuration and fix proxy options bug. svn path=/import/netsurf/; revision=538
* [project @ 2004-02-02 00:22:59 by bursa]James Bursa2004-02-021-0/+36
| | | | | | Start at margin / padding / border support. svn path=/import/netsurf/; revision=529
* [project @ 2004-02-01 22:42:40 by jmb]John Mark Bell2004-02-011-1/+10
| | | | | | Add text-indent support. svn path=/import/netsurf/; revision=527
* [project @ 2004-01-31 21:18:44 by jmb]John Mark Bell2004-01-311-0/+1
| | | | | | text-transform support. svn path=/import/netsurf/; revision=521
* [project @ 2004-01-30 22:28:32 by jmb]John Mark Bell2004-01-301-0/+1
| | | | | | Add font-variant support. Update TODO-CSS appropriately svn path=/import/netsurf/; revision=518
* [project @ 2004-01-28 23:08:28 by bursa]James Bursa2004-01-281-10/+0
| | | | | | Improve font-family. svn path=/import/netsurf/; revision=515
* [project @ 2004-01-28 21:48:10 by jmb]John Mark Bell2004-01-281-0/+11
| | | | | | | | Add font-family support. Still needs a little work, but works fine as is. Add CSS rules for text formatting HTML tags (<DFN> <CITE> <CODE> etc.) Update TODO lists. svn path=/import/netsurf/; revision=514
* [project @ 2003-12-27 20:15:22 by bursa]James Bursa2003-12-271-16/+28
| | | | | | Use charset from Content-Type header. svn path=/import/netsurf/; revision=460
* [project @ 2003-12-27 00:11:57 by jmb]John Mark Bell2003-12-271-0/+1
| | | | | | | Tidy code to reduce compiler warnings. htmlredraw.c and plugin.c produce the most now. Hopefully I haven't broken anything ;) svn path=/import/netsurf/; revision=451
* [project @ 2003-11-05 16:25:35 by bursa]James Bursa2003-11-051-0/+10
| | | | | | Improved text-decoration support. svn path=/import/netsurf/; revision=403
* [project @ 2003-10-17 23:47:13 by jmb]John Mark Bell2003-10-171-0/+1
| | | | | | | Add text-decoration support. Overline needs work. a:link defaults to being underlined. svn path=/import/netsurf/; revision=368
* [project @ 2003-10-17 17:39:29 by bursa]James Bursa2003-10-171-0/+4
| | | | | | Implement :link, ignore stylesheets with syntax errors, parse pseudo classes. svn path=/import/netsurf/; revision=367
* [project @ 2003-10-16 12:43:53 by bursa]James Bursa2003-10-161-0/+2
| | | | | | Buffer css and scan in one piece to fix tokens split across blocks. svn path=/import/netsurf/; revision=365
* [project @ 2003-10-10 18:13:36 by jmb]John Mark Bell2003-10-101-0/+2
| | | | | | CSS visibility support (not collapse) svn path=/import/netsurf/; revision=361
* [project @ 2003-10-07 21:34:27 by bursa]James Bursa2003-10-071-49/+51
| | | | | | Implement white-space property, rename struct node to struct css_node and NODE_* to CSS_NODE_*. svn path=/import/netsurf/; revision=347
* [project @ 2003-09-30 20:34:35 by bursa]James Bursa2003-09-301-0/+1
| | | | | | Implement background and font properties. svn path=/import/netsurf/; revision=336