summaryrefslogtreecommitdiff
path: root/css/css.c
Commit message (Collapse)AuthorAgeFilesLines
* Prevent assertion when imported stylesheet fails to load.John Mark Bell2010-04-061-4/+6
| | | | svn path=/trunk/netsurf/; revision=10256
* Make the high-level cache drop contents of unacceptable type on the floor.John Mark Bell2010-04-041-1/+3
| | | | svn path=/trunk/netsurf/; revision=10238
* Most of a stop implementation.John Mark Bell2010-04-041-0/+27
| | | | | | | | | Remaining work: 1) Clone content_html_data 2) Cloning content_css_data requires the charset of the old content 3) Calling hlcache_handle_abort() before a content has been created must clean up the retrieval context. svn path=/trunk/netsurf/; revision=10236
* Constify data parameter to *_process_dataJohn Mark Bell2010-04-031-2/+2
| | | | svn path=/trunk/netsurf/; revision=10234
* The convert stage of a content's state progression no longer reflows the ↵John Mark Bell2010-03-291-8/+4
| | | | | | | | | | | | | content to the provided dimensions. It is now defined as converting the content into a state in which it is ready for use. The user of the content is now responsible for performing an initial reformat (sic) of the content before it can be redrawn. Purge width/height parameters from hlcache_handle_retrieve/content_convert/*_convert APIs. Fix up content handlers affected by the above change in semantics. Ensure that browser_window_callback performs an initial reformat of its content. svn path=/trunk/netsurf/; revision=10207
* Replace fetch_poll with llcache_poll throughout. Allow CONTENT_OTHER to ↵Daniel Silverstone2010-03-281-1/+1
| | | | | | complete properly. svn path=/trunk/netsurf/; revision=10187
* Merge jmb/new-cache; r=dsilvers,rs=vinceDaniel Silverstone2010-03-281-230/+204
| | | | svn path=/trunk/netsurf/; revision=10180
* Add stylesheet size + size of imported sheets onto CSS content size.John Mark Bell2009-07-271-1/+31
| | | | | | Remove imported contents once we've fetched them and imported them into their parent (once this has happened, the content object is just an empty shell, so not worth keeping around). svn path=/trunk/netsurf/; revision=8831
* Slight optimisationJohn Mark Bell2009-07-271-3/+9
| | | | svn path=/trunk/netsurf/; revision=8824
* Retrieve charset specified on the HTTP layer.John Mark Bell2009-07-271-2/+9
| | | | svn path=/trunk/netsurf/; revision=8821
* Consider stylesheet media typesJohn Mark Bell2009-07-271-22/+33
| | | | svn path=/trunk/netsurf/; revision=8820
* Something approximating error reporting. This really needs addressing properly.John Mark Bell2009-07-251-3/+37
| | | | svn path=/trunk/netsurf/; revision=8791
* Now that libwapcaplet guarantees NUL-termination of strings, stop copying ↵John Mark Bell2009-07-251-14/+1
| | | | | | them unnecessarily. svn path=/trunk/netsurf/; revision=8785
* Merge LibCSS port to trunk.John Mark Bell2009-07-231-3212/+234
| | | | svn path=/trunk/netsurf/; revision=8752
* Rename TRANSPARENT to NS_TRANSPARENT to avoid clash on Windows. By MarkieB.Michael Drake2009-07-141-4/+4
| | | | svn path=/trunk/netsurf/; revision=8513
* Replace parent_url with a pointer to the parent content.John Mark Bell2009-07-101-1/+1
| | | | svn path=/trunk/netsurf/; revision=8428
* Limit scope of manually-defined NDEBUG. Purge a bunch of redundant #undef ↵John Mark Bell2009-05-281-1/+0
| | | | | | NDEBUG. svn path=/trunk/netsurf/; revision=7593
* Purge WITH_AUTHJohn Mark Bell2009-02-221-3/+1
| | | | svn path=/trunk/netsurf/; revision=6600
* Purge NETSURF_USE_SSL and WITH_SSLJohn Mark Bell2009-02-221-2/+0
| | | | svn path=/trunk/netsurf/; revision=6599
* Squash leaksJohn Mark Bell2009-02-181-0/+3
| | | | svn path=/trunk/netsurf/; revision=6559
* Ensure URLs are normalized prior to fetching.John Mark Bell2009-02-101-1/+15
| | | | | | Squash memory leaks. svn path=/trunk/netsurf/; revision=6411
* Fix css_len2pt conversion from px and use it in the RO front end code.Michael Drake2008-12-161-1/+1
| | | | svn path=/trunk/netsurf/; revision=5914
* Extract test code from css.c into a separate source file.John Mark Bell2008-11-281-17/+0
| | | | | | | Modify test driver to take stylesheet filename on the command line. Makefile to build a library from the css parser sources and link the test driver against it. svn path=/trunk/netsurf/; revision=5812
* Implement percentage heights for block level elements in normal flow, floats ↵Michael Drake2008-10-121-4/+8
| | | | | | and positioned boxes. Percentage min/max-height not yet handled. svn path=/trunk/netsurf/; revision=5550
* Fix pt and pc size calculations when screen dpi is not 90.Michael Drake2008-10-111-2/+2
| | | | svn path=/trunk/netsurf/; revision=5536
* 'unsigned long' -> 'colour' where it made sense.John Tytgat2008-09-281-3/+3
| | | | svn path=/trunk/netsurf/; revision=5459
* Comment css_len2{pt|px} functions and wrap to 80 chars.Michael Drake2008-09-061-6/+24
| | | | svn path=/trunk/netsurf/; revision=5263
* Add comments and change height attribute handling on TR to only alter the ↵Michael Drake2008-09-051-6/+13
| | | | | | height if attribute height is greater than current height. svn path=/trunk/netsurf/; revision=5259
* more obvious C89François Revel2008-07-291-1/+2
| | | | svn path=/trunk/netsurf/; revision=4792
* Include headers we need, rather than depending on (optional) features doing so.Rob Kendrick2008-07-281-0/+2
| | | | svn path=/trunk/netsurf/; revision=4774
* Make css_dump_style dump to a specified stream rather than assuming stderr. ↵John Mark Bell2008-07-091-234/+245
| | | | | | Makes box_dump on <>RISC OS behave sensibly. svn path=/trunk/netsurf/; revision=4538
* Launch redirects to unsupported URLs in other applications.John Mark Bell2008-04-191-0/+3
| | | | svn path=/trunk/netsurf/; revision=4098
* 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