summaryrefslogtreecommitdiff
path: root/render/layout.c
Commit message (Collapse)AuthorAgeFilesLines
* move html and text content handlers where they belongVincent Sanders2018-05-101-5432/+0
|
* Layout: Percentage max-width constrained boxes don't affect min on minmax pass.Michael Drake2018-04-021-1/+18
|
* Layout: Fix min max pass calc that looked wrong.Michael Drake2018-04-021-1/+2
| | | | | | The `width` variable call be set to AUTO, which is INT_MIN, so we can't add it to max without checking it's > 0, or we'll blunder into the minmax assertions.
* Layout: Remove some commented out code.Michael Drake2018-04-021-4/+0
|
* Layout: Reduce code duplication in handling of box side properties.Michael Drake2018-01-121-92/+56
|
* CSS utils: Handle new units in length conversion routines.Michael Drake2018-01-051-209/+353
| | | | | This causes a ripple effect of all the callsites needing information they didn't have.
* Layout: No need to expose layout_calculate_descendant_bboxes().Michael Drake2018-01-051-52/+57
|
* Layout: No need to expose layout_inline_container().Michael Drake2018-01-051-1178/+1188
|
* Layout: No need to expose layout_minmax_table().Michael Drake2018-01-051-167/+175
|
* CSS: Wrappers for computed style getters that return unsupported values.Michael Drake2017-10-201-3/+3
| | | | We don't yet handle the Flexbox-related values for certain properties.
* fix size+t formatting in loggingVincent Sanders2017-09-071-5/+11
|
* update layout logging to use a catagoryVincent Sanders2017-09-071-114/+108
|
* Use coccinelle to change logging macro calls in c filesVincent Sanders2017-09-061-31/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | for F in $(git ls-files '*.c');do spatch --sp-file foo.cocci --in-place ${F};done @@ expression E; @@ -LOG(E); +NSLOG(netsurf, INFO, E); @@ expression E, E1; @@ -LOG(E, E1); +NSLOG(netsurf, INFO, E, E1); @@ expression E, E1, E2; @@ -LOG(E, E1, E2); +NSLOG(netsurf, INFO, E, E1, E2); @@ expression E, E1, E2, E3; @@ -LOG(E, E1, E2, E3); +NSLOG(netsurf, INFO, E, E1, E2, E3); @@ expression E, E1, E2, E3, E4; @@ -LOG(E, E1, E2, E3, E4); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4); @@ expression E, E1, E2, E3, E4, E5; @@ -LOG(E, E1, E2, E3, E4, E5); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5); @@ expression E, E1, E2, E3, E4, E5, E6; @@ -LOG(E, E1, E2, E3, E4, E5, E6); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6); @@ expression E, E1, E2, E3, E4, E5, E6, E7; @@ -LOG(E, E1, E2, E3, E4, E5, E6, E7); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6, E7);
* Layout: Prevent negative widths on absolutle positioned boxes.Michael Drake2017-06-021-6/+6
|
* Layout: Fix auto margins to be affected by {min|max}-width constraints.Michael Drake2017-04-281-8/+20
|
* Layout: Implement CSS3 box-sizing property.Michael Drake2017-04-271-60/+94
| | | | | Updates user agent CSS to set form element box-sizing properties, and removes some legacy pre-CSS3 hacks for handling gadget dimensions.
* Allow include directories to be added by sub makefilesVincent Sanders2016-06-061-1/+1
|
* Update content to split public and internal APIVincent Sanders2016-06-061-2/+3
|
* move desktop window header into public APIVincent Sanders2016-05-301-1/+1
|
* move layout header into public APIVincent Sanders2016-05-301-1/+1
|
* move the CSS content handlerVincent Sanders2016-05-261-3/+2
|
* 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
|