summaryrefslogtreecommitdiff
path: root/render/box_construct.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove box_applet.Michael Drake2011-05-181-140/+0
| | | | svn path=/trunk/netsurf/; revision=12427
* Merge branches/jmb/content-factory to trunkJohn Mark Bell2011-05-061-119/+70
| | | | svn path=/trunk/netsurf/; revision=12283
* Reduce number of page reflows and viewportMichael Drake2011-04-271-0/+16
| | | | | | | | | | | redraws as images are fetched: + Flag known-sized boxes generated by images. + Treat them as replaced all through layout. + Only reflow the document for fetched images if we don't already have the box at the right size. svn path=/trunk/netsurf/; revision=12243
* Apply same hack for :before as for :afterJohn Mark Bell2011-04-221-18/+29
| | | | svn path=/trunk/netsurf/; revision=12224
* Keep child objects of a HTML content in a list, instead of an arrayJohn Mark Bell2011-03-101-3/+0
| | | | svn path=/trunk/netsurf/; revision=11963
* plugins aren't imagesChris Young2011-03-061-3/+0
| | | | svn path=/trunk/netsurf/; revision=11926
* Fix broken CONTENT_PLUGIN API.Chris Young2011-03-061-0/+3
| | | | | | | Add a default content handler for Amiga using the plugin interface, which passes unknown files (currently images only) through DataTypes. svn path=/trunk/netsurf/; revision=11924
* Created content handler CONTENT_APPLE_IMAGE for Mac OS X that can handle all ↵Sven Weidauer2011-03-051-0/+3
| | | | | | image file formats supported by Apples ImageIO framework. Right now used only for JPEG to get rid of libjpeg dependency. svn path=/trunk/netsurf/; revision=11911
* Move strip_leading_newline to box flags.Michael Drake2011-03-021-5/+5
| | | | svn path=/trunk/netsurf/; revision=11889
* Cache space widths.Michael Drake2011-03-011-3/+4
| | | | svn path=/trunk/netsurf/; revision=11877
* Fix bug #2076786: do not apply fallback content to failed objectsJohn Mark Bell2011-02-251-10/+0
| | | | svn path=/trunk/netsurf/; revision=11797
* Non block level :after boxes aren't supported yet, so don't generate them.Michael Drake2011-02-151-22/+2
| | | | svn path=/trunk/netsurf/; revision=11691
* Port to latest libcssJohn Mark Bell2011-01-291-3/+2
| | | | svn path=/trunk/netsurf/; revision=11526
* Completion of first-letter and first-line pseudo element computed styles is ↵Michael Drake2011-01-061-2/+7
| | | | | | not handled yet. svn path=/trunk/netsurf/; revision=11228
* Always want inline style now (also prevents use of an uninitialised variable)John Mark Bell2011-01-051-2/+1
| | | | svn path=/trunk/netsurf/; revision=11220
* Remove redundant validation -- if you successfully obtain a ↵John Mark Bell2011-01-051-1/+1
| | | | | | css_select_results object, then its base style is guaranteed to exist svn path=/trunk/netsurf/; revision=11217
* Update to new libcss API for simultanious selection for base element and its ↵Michael Drake2011-01-051-91/+123
| | | | | | pseudo elements. svn path=/trunk/netsurf/; revision=11215
* Don't create iframes for hidden or non-displayed boxes.Michael Drake2011-01-051-0/+11
| | | | svn path=/trunk/netsurf/; revision=11213
* Implement enough support for the :after pseudo element for the widely-used ↵Michael Drake2011-01-041-13/+103
| | | | | | clearfix CSS layout hack to work. svn path=/trunk/netsurf/; revision=11206
* Amiga icon loader. Treeviews will now use the user's icons for content types.Chris Young2010-10-301-0/+3
| | | | svn path=/trunk/netsurf/; revision=10925
* Add some missing CONTENT_WEBPs. WebP images in HTML docs now display correctly.Chris Young2010-10-161-0/+3
| | | | svn path=/trunk/netsurf/; revision=10890
* Restrict permissible content types for list marker imagesJohn Mark Bell2010-09-191-1/+2
| | | | svn path=/trunk/netsurf/; revision=10798
* Fix mouse.h file description. Add iframe comment.Michael Drake2010-06-091-0/+2
| | | | svn path=/trunk/netsurf/; revision=10571
* Add iframe comment.Michael Drake2010-06-031-0/+1
| | | | svn path=/trunk/netsurf/; revision=10559
* It turns out that realloc(ptr, 0) --> free(ptr) is not actually required by ↵John Mark Bell2010-04-301-8/+2
| | | | | | | | 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
* First step to fixing memory leaks -- Box model no longer leaks computed stylesDaniel Silverstone2010-04-271-23/+24
| | | | svn path=/trunk/netsurf/; revision=10500
* remove _GNU_SOURCE define from everywhere.Vincent Sanders2010-04-241-1/+0
| | | | | | strndup is not standard so provide an implementation. svn path=/trunk/netsurf/; revision=10474
* Merge jmb/new-cache; r=dsilvers,rs=vinceDaniel Silverstone2010-03-281-3/+3
| | | | svn path=/trunk/netsurf/; revision=10180
* Fix quirks mode propagation for @style.John Mark Bell2009-11-151-1/+2
| | | | svn path=/trunk/netsurf/; revision=9675
* Port to modified libcss API.John Mark Bell2009-08-021-4/+4
| | | | svn path=/trunk/netsurf/; revision=8997
* Now that libwapcaplet guarantees NUL-termination of strings, stop copying ↵John Mark Bell2009-07-251-44/+4
| | | | | | them unnecessarily. svn path=/trunk/netsurf/; revision=8785
* Merge LibCSS port to trunk.John Mark Bell2009-07-231-704/+293
| | | | svn path=/trunk/netsurf/; revision=8752
* Fix frame targets.John Mark Bell2009-06-081-2/+3
| | | | svn path=/trunk/netsurf/; revision=7729
* 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
* Fix numbering of floated list itemsJohn Mark Bell2009-04-291-16/+40
| | | | svn path=/trunk/netsurf/; revision=7361
* Move handling of TR height attribute from box construction to layout and add ↵Michael Drake2009-04-281-49/+4
| | | | | | support for height property on TR. svn path=/trunk/netsurf/; revision=7358
* Hubbub is no longer optional.John Mark Bell2009-04-171-263/+1
| | | | | | Remove libxml2 parser binding. svn path=/trunk/netsurf/; revision=7115
* Fix compilation with GCC 2.95.John Mark Bell2009-04-161-9/+9
| | | | | | It astounds me how some of this lot compiled at all. svn path=/trunk/netsurf/; revision=7104
* Utilise hubbub's form association callback.John Mark Bell2009-02-201-79/+118
| | | | | | | | Please can we dispense with the libxml binding? It's causing much #ifdef mess. Fix encoding of <input type=image> names -- previously were output as raw utf-8, rather than in the submission charset. Actually bother to destroy forms in a document, and the controls associated with them. We still leak non form-associated controls, but that's too much effort to fix right now. svn path=/trunk/netsurf/; revision=6573
* Implement percentage heights for block level elements in normal flow, floats ↵Michael Drake2008-10-121-10/+16
| | | | | | and positioned boxes. Percentage min/max-height not yet handled. svn path=/trunk/netsurf/; revision=5550
* Load SVGs in IMG elements.Michael Drake2008-09-301-0/+3
| | | | svn path=/trunk/netsurf/; revision=5463
* A bunch of fixes to the libpng bindingJohn Mark Bell2008-09-151-1/+3
| | | | svn path=/trunk/netsurf/; revision=5338
* Add comments and change height attribute handling on TR to only alter the ↵Michael Drake2008-09-051-4/+6
| | | | | | height if attribute height is greater than current height. svn path=/trunk/netsurf/; revision=5259
* Ignore height/width attributes on elements where they are not permitted.Michael Drake2008-08-211-2/+16
| | | | svn path=/trunk/netsurf/; revision=5162
* C89François Revel2008-08-131-5/+9
| | | | svn path=/trunk/netsurf/; revision=5103
* Ignore blank maxlength attributesJohn Mark Bell2008-08-051-1/+2
| | | | svn path=/trunk/netsurf/; revision=4912
* Squash more warnings.John Mark Bell2008-05-261-3/+3
| | | | svn path=/trunk/netsurf/; revision=4210
* The core code has always assumed a locale of "C".John Mark Bell2008-05-131-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not change the locale globally, else things will break in weird and wonderful ways. Introduce utils/locale.[ch], which provide locale-specific wrappers for various functions (currently just the <ctype.h> ones). Fix up the few places I can see that actually require that the underlying locale is paid attention to. Some notes: 1) The GTK frontend code has not been touched. It is possible that reading of numeric values (e.g. from the preferences dialogue) may break with this change, particularly in locales that use something other than '.' as their decimal separator. 2) The search code is left unchanged (i.e. assuming a locale of "C"). This may break case insensitive matching of non-ASCII characters. I doubt that ever actually worked, anyway. In future, it should use Unicode case conversion to achieve the same effect. 3) The text input handling in the core makes use of isspace() to detect word boundaries. This is fine for western languages (even in the C locale, which it's currently assuming). It will, however, break for CJK et. al. (this has always been the case, rather than being a new issue) 4) text-transform uses locale-specific variants of to{lower,upper}. In future this should probably be performing Unicode case conversion. This is the only part of the core code that makes use of locale information. In future, if you require locale-specific behaviour, do the following: setlocale(LC_<whatever>, ""); <your operation(s) here> setlocale(LC_<whatever>, "C"); The first setlocale will change the current locale to the native environment. The second setlocale will reset the current locale to "C". Any value other than "" or "C" is probably a bug, unless there's a really good reason for it. In the long term, it is expected that all locale-dependent code will reside in platform frontends -- the core being wholly locale agnostic (though assuming "C" for things like decimal separators). svn path=/trunk/netsurf/; revision=4153
* Only record that the HTML alignment was set by a table element if it is ↵Michael Drake2008-03-291-6/+7
| | | | | | actually set. svn path=/trunk/netsurf/; revision=4058
* Implement sprite support for GTK using librospriteJames Shaw2008-03-291-1/+1
| | | | svn path=/trunk/netsurf/; revision=4051