summaryrefslogtreecommitdiff
path: root/css/css.c
Commit message (Collapse)AuthorAgeFilesLines
* Squash warningJohn Mark Bell2008-03-191-2/+9
| | | | svn path=/trunk/netsurf/; revision=3984
* Bring definition of {escape} in line with CSS 2.1 spec.John Mark Bell2008-03-061-0/+2
| | | | | | | Require units when parsing css lengths. Correctly ignore background: meta-properties which have multiple instances of sub-properties (e.g. foo { background: red pink; }) svn path=/trunk/netsurf/; revision=3893
* s/FALSE/false/gJohn Mark Bell2008-02-251-34/+34
| | | | | | s/TRUE/true/g svn path=/trunk/netsurf/; revision=3867
* Improve handling of HTML attributes / markup:Michael Drake2008-02-251-21/+127
| | | | | | | | | | | | | | | | | | | | | * 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
* Remove unnecessary #ifdef riscosJohn Mark Bell2008-02-021-2/+0
| | | | svn path=/trunk/netsurf/; revision=3815
* Fix GTK build.Michael Drake2008-02-021-1/+1
| | | | svn path=/trunk/netsurf/; revision=3814
* Make text input boxes with height:auto; and no initial value get a sensible ↵Michael Drake2008-02-021-4/+27
| | | | | | height. Make all form elements have their dimensions based on the configured minimum font size, if the current text size is smaller. Remove redundant code for setting radio icon and checkbox sizes. All em/ex based sizes now respect the min font size, when it's in effect. Updated default styles for form elements. svn path=/trunk/netsurf/; revision=3813
* Add function to dump working stylesheetsJohn Mark Bell2008-01-311-0/+22
| | | | svn path=/trunk/netsurf/; revision=3811
* Rework handling of HTTP redirects -- we now count the number of redirects ↵John Mark Bell2008-01-281-39/+1
| | | | | | | | | | | | | | | | | | | | 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
* Increase default font size and line spacing.Michael Drake2007-12-091-3/+3
| | | | svn path=/trunk/netsurf/; revision=3660
* Bug fixes in parse_length, parse_clip, css_dump_style, css_dump_length by ↵James Bursa2007-10-281-5/+4
| | | | | | Franz Korntner. svn path=/trunk/netsurf/; revision=3635
* Provide the facility to set the DPI of the display by removing the ↵Daniel Silverstone2007-08-191-10/+16
| | | | | | 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-4/+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-12/+12
| | | | | | | | | | | | | | 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
* Fix various warnings.James Bursa2007-05-021-10/+11
| | | | svn path=/trunk/netsurf/; revision=3263
* Fix invalidation of unwanted contents.John Mark Bell2007-03-191-0/+11
| | | | svn path=/trunk/netsurf/; revision=3214
* Lose noisy loggingJohn Mark Bell2007-03-181-1/+0
| | | | svn path=/trunk/netsurf/; revision=3213
* Ensure content structures are zero initialised.John Mark Bell2007-03-181-5/+8
| | | | | | | | | Make css_destroy check that the stylesheet pointer exists (content destructors may be called whilst the content is still loading - e.g. if the content type isn't permissable in the context it was loaded from). Fixes 1627413, 1580980. svn path=/trunk/netsurf/; revision=3212
* Ensure content owners check that they are still interested in a content John Mark Bell2007-03-181-3/+10
| | | | | | | | when receiving notification that the content's in error. This prevents content pointers being corrupted when redirects occur. Fixes 1522002, 1551475. svn path=/trunk/netsurf/; revision=3211
* Content handlers should not call warn_user - they should broadcast the John Mark Bell2007-03-111-2/+0
| | | | | | | | | | error using content_broadcast and leave it to the content owner(s) to decide what to do about it. Only use warn_user for top-level contents. svn path=/trunk/netsurf/; revision=3204
* Fix handling of cookies in unverifiable transactions caused by a redirect ↵John Mark Bell2007-02-021-2/+2
| | | | | | from a fetch into a browser window which was varifiable. svn path=/trunk/netsurf/; revision=3165
* Update project URL.Michael Drake2006-11-271-1/+1
| | | | svn path=/trunk/netsurf/; revision=3073
* Fix the small NetSurf build.Richard Wilson2006-07-041-1/+4
| | | | svn path=/trunk/netsurf/; revision=2714
* Don't assert() for AUTH or SSL codes (fix 1498477)Richard Wilson2006-07-041-0/+3
| | | | svn path=/trunk/netsurf/; revision=2713
* [project @ 2006-03-09 19:04:13 by dsilvers]Daniel Silverstone2006-03-091-0/+28
| | | | | | | 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 @ 2006-02-05 22:22:35 by jmb]John Mark Bell2006-02-051-4/+7
| | | | | | Fix bad read svn path=/import/netsurf/; revision=2057
* [project @ 2006-01-02 23:31:28 by jmb]John Mark Bell2006-01-021-1/+1
| | | | | | Implement font default option properly svn path=/import/netsurf/; revision=1969
* [project @ 2005-08-21 12:04:17 by bursa]James Bursa2005-08-211-10/+13
| | | | | | Change void * parameters to intptr_t to make them correct for storing integers or pointers. svn path=/import/netsurf/; revision=1852
* [project @ 2005-07-31 22:06:03 by jmb]John Mark Bell2005-07-311-2/+2
| | | | | | Ignore @import rules which occur after a valid rule. svn path=/import/netsurf/; revision=1835
* [project @ 2005-07-31 15:55:36 by jmb]John Mark Bell2005-07-311-8/+11
| | | | | | | | Make length -> pixel conversion more accurate. Fix handling of CSS <numbers> Fix border widths. svn path=/import/netsurf/; revision=1832
* [project @ 2005-05-22 21:50:14 by bursa]James Bursa2005-05-221-1/+1
| | | | | | Add BOX_TEXT type to distinguish boxes which came from an inline element to boxes which came from a text node. Add inline_parent pointer to box structure. Rewrite text-decoration support to take advantage of the new data (line colours are now correct). Note: there is a clipping issue in redraw. svn path=/import/netsurf/; revision=1732
* [project @ 2005-05-21 23:30:19 by bursa]James Bursa2005-05-211-663/+790
| | | | | | 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-0/+80
| | | | | | 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-22/+12
| | | | | | 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-04-03 14:17:05 by bursa]James Bursa2005-04-031-1/+3
| | | | | | Use talloc_realloc() instead of realloc() for c->source_data, since that is now managed by talloc. svn path=/import/netsurf/; revision=1593
* [project @ 2005-03-22 00:10:42 by rjw]Richard Wilson2005-03-221-12/+22
| | | | | | 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-24 23:02:37 by bursa]James Bursa2005-01-241-0/+2
| | | | | | Reformat pages loaded from memory cache to window width. svn path=/import/netsurf/; revision=1467
* [project @ 2005-01-16 21:39:21 by rjw]Richard Wilson2005-01-161-0/+84
| | | | | | Read content, counter-reset and counter-increment properties. svn path=/import/netsurf/; revision=1456
* [project @ 2005-01-16 00:48:47 by jmb]John Mark Bell2005-01-161-29/+15
| | | | | | Fixup my inability to remember how things should work svn path=/import/netsurf/; revision=1453
* [project @ 2005-01-16 00:08:47 by jmb]John Mark Bell2005-01-161-3/+1
| | | | | | Fixup missed css_style free svn path=/import/netsurf/; revision=1451
* [project @ 2005-01-16 00:03:45 by jmb]John Mark Bell2005-01-161-0/+67
| | | | | | Create interface for duplication and destruction of css_style structs. svn path=/import/netsurf/; revision=1450
* [project @ 2005-01-11 19:39:49 by jmb]John Mark Bell2005-01-111-220/+522
| | | | | | Handle property: inherit; properly svn path=/import/netsurf/; revision=1441
* [project @ 2005-01-05 20:22:57 by jmb]John Mark Bell2005-01-051-2/+3
| | | | | | Fix syntax error reporting svn path=/import/netsurf/; revision=1435
* [project @ 2005-01-03 02:09:20 by jmb]John Mark Bell2005-01-031-2/+2
| | | | | | Shift + Click == download svn path=/import/netsurf/; revision=1429
* [project @ 2005-01-03 00:45:43 by jmb]John Mark Bell2005-01-031-3/+4
| | | | | | class and id attributes are case-sensitive (HTML4.01) svn path=/import/netsurf/; revision=1427
* [project @ 2005-01-02 14:42:16 by bursa]James Bursa2005-01-021-4/+10
| | | | | | Fix some compiler warnings. svn path=/import/netsurf/; revision=1426
* [project @ 2004-09-13 23:56:18 by jmb]John Mark Bell2004-09-131-1/+1
| | | | | | | Make fonts user-configurable. This loses font-style support, though it shouldn't be hard to put it back again. svn path=/import/netsurf/; revision=1274
* [project @ 2004-08-14 15:07:19 by joty]John Tytgat2004-08-141-4/+4
| | | | | | | | - 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-14 14:30:10 by joty]John Tytgat2004-08-141-4/+4
| | | | | | Removed a chunk of Norcroft compiler warnings. Re-ident some pieces. svn path=/import/netsurf/; revision=1231