summaryrefslogtreecommitdiff
path: root/render/layout.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix top margin of boxes with a non-visible overflow type.Michael Drake2008-06-301-0/+3
| | | | svn path=/trunk/netsurf/; revision=4482
* Add param and return details to layout_solve_width() comment.Michael Drake2008-06-101-0/+10
| | | | svn path=/trunk/netsurf/; revision=4322
* Establish a new block formatting context for blocks with non-visisble ↵Michael Drake2008-06-061-0/+33
| | | | | | overflow style. (9.4.1) svn path=/trunk/netsurf/; revision=4270
* The core code has always assumed a locale of "C".John Mark Bell2008-05-131-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Accomodate text area scrollbars in fixed widths. Fix radio button / checkbox ↵Michael Drake2008-04-251-4/+9
| | | | | | issue. svn path=/trunk/netsurf/; revision=4108
* Change handling of form element widths / heights.Michael Drake2008-04-251-12/+57
| | | | svn path=/trunk/netsurf/; revision=4107
* Make floats that follow a cleared float heed the clear. Fixes position of ↵Michael Drake2008-04-231-4/+15
| | | | | | search form on BBC homepage. svn path=/trunk/netsurf/; revision=4104
* Fix absolute positioning when there's a float between the box and its ↵Michael Drake2008-04-211-1/+22
| | | | | | containing block. svn path=/trunk/netsurf/; revision=4101
* Improve handling of absolutely positioned table cells. Corrects positioning ↵Michael Drake2008-04-201-10/+20
| | | | | | of "Weather" box contents on BBC homepage. svn path=/trunk/netsurf/; revision=4100
* CSS min/max-height overrides height.Michael Drake2008-03-211-1/+1
| | | | svn path=/trunk/netsurf/; revision=4008
* Unsightly hack around flickering to white in nsgtk. This needs to be sorted ↵John Mark Bell2008-03-211-0/+37
| | | | | | out properly as a matter of urgency. svn path=/trunk/netsurf/; revision=4005
* CSS min-height and max-height properties override fixed heights too.Michael Drake2008-03-201-12/+16
| | | | svn path=/trunk/netsurf/; revision=4003
* Squash "implicit declaration of function 'gui_multitask'" warnings.John Mark Bell2008-03-191-2/+0
| | | | svn path=/trunk/netsurf/; revision=3980
* Take account of any table height specified through CSS or HTML.John Mark Bell2008-03-101-1/+10
| | | | svn path=/trunk/netsurf/; revision=3918
* Apply min/max-height to absolutely positioned elements.Michael Drake2008-03-101-0/+1
| | | | svn path=/trunk/netsurf/; revision=3916
* Adjust y values after seting a min/max-height.Michael Drake2008-03-091-5/+22
| | | | svn path=/trunk/netsurf/; revision=3910
* Initial stab at min/max-height support.Michael Drake2008-03-091-1/+46
| | | | svn path=/trunk/netsurf/; revision=3909
* When floats have clear right or left set, as well as being put below floats ↵Michael Drake2008-03-091-20/+29
| | | | | | on that side, they should still follow normal behaviour with respect to floats on the other side. svn path=/trunk/netsurf/; revision=3904
* Fix clear CSS property support when applied on floats.Michael Drake2008-03-091-5/+20
| | | | svn path=/trunk/netsurf/; revision=3902
* Round percentage width to nearest pixel with integers.Michael Drake2008-03-081-2/+3
| | | | svn path=/trunk/netsurf/; revision=3901
* Fix float wrapping when available space equals space that would be used by ↵Michael Drake2008-03-071-1/+1
| | | | | | float. svn path=/trunk/netsurf/; revision=3898
* No space between rows of floats.Michael Drake2008-03-071-4/+4
| | | | svn path=/trunk/netsurf/; revision=3895
* Round percentage widths to nearest pixel instead of down.Michael Drake2008-03-061-2/+2
| | | | svn path=/trunk/netsurf/; revision=3891
* For form gadgets, specified percentage width is inclusive of margin, border ↵Michael Drake2008-02-171-9/+23
| | | | | | and padding space. svn path=/trunk/netsurf/; revision=3859
* Select element width is width of longest option text.Michael Drake2008-02-111-8/+60
| | | | svn path=/trunk/netsurf/; revision=3855
* Improve float positioning.Michael Drake2008-02-031-1/+1
| | | | svn path=/trunk/netsurf/; revision=3833
* Turn debug output off again. Remove extraneous include.Michael Drake2008-02-031-2/+1
| | | | svn path=/trunk/netsurf/; revision=3828
* Ensure min line length takes into account margins, borders and paddings of ↵Michael Drake2008-02-031-2/+7
| | | | | | objects. svn path=/trunk/netsurf/; revision=3827
* Make text input boxes with height:auto; and no initial value get a sensible ↵Michael Drake2008-02-021-41/+12
| | | | | | 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
* Fix syntax.Michael Drake2008-01-291-1/+1
| | | | svn path=/trunk/netsurf/; revision=3800
* Reinstate things lost in the last checkins.Michael Drake2008-01-291-3/+5
| | | | svn path=/trunk/netsurf/; revision=3799
* No need to recalculate a value we already have.Michael Drake2008-01-291-10/+5
| | | | svn path=/trunk/netsurf/; revision=3798
* Apply min font size config option to radio icons and checkboxes.Michael Drake2008-01-291-13/+47
| | | | svn path=/trunk/netsurf/; revision=3797
* Only needed the vertical position changed.Michael Drake2008-01-281-1/+3
| | | | svn path=/trunk/netsurf/; revision=3789
* Fix vertical position of images with margin/borders/padding.Michael Drake2008-01-281-1/+2
| | | | svn path=/trunk/netsurf/; revision=3785
* Ensure images within inline-blocks are shown properly. Fixed by zamez.Michael Drake2008-01-271-1/+1
| | | | svn path=/trunk/netsurf/; revision=3783
* Make inline-blocks have margins. Add defualt margin around form inputs.Michael Drake2008-01-271-4/+4
| | | | svn path=/trunk/netsurf/; revision=3779
* Hopefully fix inline-block positioning. (Stops form elements from overlapping.)Michael Drake2008-01-271-2/+6
| | | | svn path=/trunk/netsurf/; revision=3778
* No need to reduce box height when adding scrollbar.Michael Drake2008-01-261-1/+0
| | | | svn path=/trunk/netsurf/; revision=3777
* Protect <pre> fix in cases where c->style is NULLDaniel Silverstone2007-12-231-3/+5
| | | | svn path=/trunk/netsurf/; revision=3673
* An INLINE_CONTAINER which contains a TEXT which is zero chars long but *is* ↵Daniel Silverstone2007-12-231-3/+7
| | | | | | in a PRE white-space rule *DOES* contain a text child. svn path=/trunk/netsurf/; revision=3672
* Remove legacy code.Richard Wilson2007-10-101-8/+1
| | | | svn path=/trunk/netsurf/; revision=3629
* Fix disappearing borders for elements with overflow: hidden.James Bursa2007-08-281-2/+1
| | | | svn path=/trunk/netsurf/; revision=3534
* Make F9 dump box tree to an editor for easier debugging.James Bursa2007-08-201-3/+3
| | | | svn path=/trunk/netsurf/; revision=3529
* Provide the facility to set the DPI of the display by removing the ↵Daniel Silverstone2007-08-191-2/+2
| | | | | | 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-10/+10
| | | | | | | | | | | | | | 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
* Object sizes do not apply when calculating the extent of descendent John Mark Bell2007-04-071-11/+0
| | | | | | bounding boxes. (fixes 1601881) svn path=/trunk/netsurf/; revision=3240
* Fix assertion when table has negative mbp (1579981)John Mark Bell2007-03-251-0/+4
| | | | svn path=/trunk/netsurf/; revision=3222
* Fix handling of scrollbar addition to blocks which have height/width == John Mark Bell2007-03-241-19/+41
| | | | | | AUTO (fixes 1567430) svn path=/trunk/netsurf/; revision=3220