summaryrefslogtreecommitdiff
path: root/render/layout.c
Commit message (Collapse)AuthorAgeFilesLines
* split out the layout glyph sizing and splitting APIVincent Sanders2016-04-231-3111/+3059
| | | | | This refactors the core "font" sizing API to be handled through gui function tables similar to every other core/frontend calling API.
* Simplify place_float_below loop condition.Michael Drake2016-01-211-1/+1
|
* Make use of cached place float below value earlier.Michael Drake2016-01-201-1/+5
|
* Cache place below level, to avoid pointless calls to find_sides.Michael Drake2016-01-201-1/+8
|
* Optimise white hot find_sides to take advantage of sorted float_children.Michael Drake2016-01-201-1/+7
| | | | | Now we have an early exit when we get to the floats above the area we're interested in.
* Sort float_children of containers by their bottom edge.Michael Drake2016-01-201-2/+27
|
* Split adding float to a container out into separate function.Michael Drake2016-01-201-10/+14
|
* Remove redundant condition in white hot path.Michael Drake2016-01-201-1/+1
|
* Make it clearer why we're asserting.Michael Drake2015-11-111-1/+2
|
* Fix overflow-{x|y} handling.Michael Drake2015-11-011-3/+4
|
* Fix descendant bounding box calcs to work with overflow-{x|y}.Michael Drake2015-10-311-16/+16
|
* Reorder percentage calculation.Michael Drake2015-08-241-2/+2
| | | | | | | | | Fixed point representation couldn't store 0.65 exactly, so avoid doing the divide by 100 first. I will look at moving this into libcss's fixed point header and doing it in a way that avoids arithmetic overflow, but for now this fixes el reg layout.
* Change LOG() macro to be varadicVincent Sanders2015-05-281-72/+41
| | | | | | | | | | | | This changes the LOG macro to be varadic removing the need for all callsites to have double bracketing and allows for future improvement on how we use the logging macros. The callsites were changed with coccinelle and the changes checked by hand. Compile tested for several frontends but not all. A formatting annotation has also been added which allows the compiler to check the parameters and types passed to the logging.
* Remove duplicate branch in relative position handling.Michael Drake2015-04-231-5/+5
|
* make the form select menu API smaller.Vincent Sanders2014-11-131-1/+1
| | | | | | By hiding all but the form selection menu option structure from code outside of render this reduces the API to the absolute minimum to support this feature.
* doxgen warning fixes in riscos frontend.Vincent Sanders2014-11-121-25/+30
|
* remove unecessary browser.h include from core headersVincent Sanders2014-10-171-0/+1
|
* Put the font operations table alongside all the other core APIVincent Sanders2014-10-131-3/+6
| | | | | | | | | | | | The netsurf core is driven from numerous operation tables most of which are now set through a common netsurf_register() interface. The font and plotting interfaces are currently separate and unlike all the other operation tables are modified for differing contexts. This change moves the font operations alongside all the other operations table and remove unnecessary interaction with the renderers font internals. Further this also removes the need for css internals to be visible in frontends.
* Fix text selection.Michael Drake2014-08-201-0/+1
| | | | | | | | Values returned by nscss_len2px are actually libcss fixed-points, so convert the result to pixels. Also reduce the amount by which the top of descendant bboxes are extended to 3/4 of the text height, which is the maximum possible amount that the text can protrude above the box when line-height is reduced.
* Remove unwanted debug.Michael Drake2014-08-041-1/+0
|
* mailto urls don't have passwords or ports, so we don't need to look for ':'.Michael Drake2014-08-041-1/+1
|
* Fix overflow handling issue.Michael Drake2014-07-131-19/+4
|
* Allow suppression of style dump in box tree dumps.Michael Drake2014-07-131-3/+3
|
* Handle overflow-x and overflow-y properties.Michael Drake2014-06-011-35/+97
| | | | | Fixes display of BBC Sport. Requires LibCSS with support for overflow-x and overflow-y.
* Improve min/max-height handling on replaced elements.Michael Drake2014-01-041-23/+96
|
* ensure no division by zero in scaled object dimensioning (coverity 1109864 )Vincent Sanders2013-11-031-1/+2
|
* Layout doesn't need to handle the old insane textarea box splitting now. ↵Michael Drake2013-10-231-12/+1
| | | | Fixes Coverity:1109882.
* Don't attempt to vertical-align objects for now, as our current bodged ↵Michael Drake2013-07-121-2/+1
| | | | vertical-align implementation can do more harm than good.
* Apply vertical alignment to objects on line.Michael Drake2013-06-081-1/+2
|
* move options includeVincent Sanders2013-05-281-1/+1
|
* Hacky fix for clipping of top of text.Michael Drake2013-04-171-0/+16
|
* Fix min line width calc when an inline isn't to be wrapped in a block that ↵Michael Drake2013-03-061-3/+18
| | | | allows wrap.
* Fix min width to take account of white-space property.Michael Drake2013-02-221-2/+12
|
* Don't reduce width of textarea box for CSS overflow scrollbar; it won't get one.Michael Drake2013-02-111-2/+0
|
* Merge branch 'master' of git://git.netsurf-browser.org/netsurfMichael Drake2013-02-101-55/+44
|\ | | | | | | | | | | | | Conflicts: gtk/font_pango.c Conflict resolved.
| * Update HTML layout not to demand that nsfont_split only splits on a space.Michael Drake2013-02-101-56/+43
| | | | | | | | | | | | | | This allows the HTML layout code to wrap unicode text correctly. For example on our Japanese Welcome page, the characters will be wrapped if the platform's nsfont_split implementation implements the Unicode line breaking algorithm.
| * Make nowrap code path a bit plainer.Michael Drake2013-02-101-4/+4
| |
| * Comment current html wrap/text-splitting behaviour.Michael Drake2013-02-101-3/+5
| |
* | Don't add box scrollbar padding to gadgets.Michael Drake2013-02-091-2/+4
| |
* | First pass at getting html forms to use textarea widget.Michael Drake2013-02-061-0/+15
|/ | | | | (Input element types text & password, and textarea element.) Can edit and submit forms, but there are loads of issues.
* Fix min_max line width calc to include box spaces.Michael Drake2013-01-021-6/+12
|
* Fix placement of first inline on line below a float, when float has been ↵Michael Drake2012-11-041-1/+4
| | | | shifted up by >= its own height with a negative margin.
* reduce talloc usage to box tree layout onlyVincent Sanders2012-10-031-2/+2
|
* Don't convert spaces to non-breaking spaces inside white-space:pre. ↵Michael Drake2012-10-031-1/+3
| | | | Instead, handle not wrapping in layout.
* More white-space:nowrap.Michael Drake2012-10-031-4/+4
|
* Support white-space:nowrap.Michael Drake2012-10-031-2/+5
|
* Include dom/dom.h where it might be neededDaniel Silverstone2012-03-241-0/+1
| | | | svn path=/trunk/netsurf/; revision=13625
* Delete some trailing whitespace.Michael Drake2012-03-231-2/+2
| | | | svn path=/trunk/netsurf/; revision=13555
* NetSurf options rework (a=vince r=daniels,jmb)Vincent Sanders2012-03-221-2/+2
| | | | svn path=/trunk/netsurf/; revision=13548
* content_get_url -> hlcache_handle_get_url, content__get_url -> content_get_urlJohn Mark Bell2011-12-041-1/+1
| | | | svn path=/trunk/netsurf/; revision=13236