Commit Graph

870 Commits

Author SHA1 Message Date
Michael Drake 3cbbdeb91c Ensure that inline end boxes get the correct height.
svn path=/trunk/netsurf/; revision=9104
2009-08-07 15:52:00 +00:00
Michael Drake b0cc93800a Slightly more useful vertical alignment.
svn path=/trunk/netsurf/; revision=9100
2009-08-07 13:00:28 +00:00
John Mark Bell 0665611cc2 Port to modified libcss API.
svn path=/trunk/netsurf/; revision=8997
2009-08-02 19:19:43 +00:00
John Mark Bell ed16129b0c Prevent negative calculated width of replaced inlines in layout_minmax_line().
svn path=/trunk/netsurf/; revision=8933
2009-08-01 00:26:02 +00:00
John Mark Bell 1b60cd63b7 Include size of lwc_context in content size.
svn path=/trunk/netsurf/; revision=8835
2009-07-28 00:21:36 +00:00
John Mark Bell 2c8a235a5d Shrink allocated <style> source data block to minimum.
svn path=/trunk/netsurf/; revision=8828
2009-07-27 18:32:55 +00:00
John Mark Bell b5d55eb295 Consider stylesheet media types
svn path=/trunk/netsurf/; revision=8820
2009-07-27 13:49:10 +00:00
John Mark Bell e5f55a27ef Fix potential crash when inline replaced elements have percentage width.
svn path=/trunk/netsurf/; revision=8814
2009-07-27 10:22:44 +00:00
John Mark Bell 4aaf13f9ed Respect configured font size
svn path=/trunk/netsurf/; revision=8813
2009-07-27 10:00:31 +00:00
John Mark Bell c51b14383c Now that libwapcaplet guarantees NUL-termination of strings, stop copying them unnecessarily.
svn path=/trunk/netsurf/; revision=8785
2009-07-25 15:47:11 +00:00
John Mark Bell 2c00c55963 Simplify line-height calculation, deferring to nscss_len2px.
svn path=/trunk/netsurf/; revision=8783
2009-07-25 13:20:12 +00:00
John Mark Bell 12e49b11c2 Fix crash when a style element is not used because of mismatched media or type.
svn path=/trunk/netsurf/; revision=8768
2009-07-24 01:48:53 +00:00
John Mark Bell cc662408b7 Fix text/plain lineheight calculation
svn path=/trunk/netsurf/; revision=8763
2009-07-24 00:17:43 +00:00
Michael Drake 48e3221458 Don't attempt to basline-align non text related inlines.
svn path=/trunk/netsurf/; revision=8762
2009-07-24 00:08:23 +00:00
James Bursa b1c1d85f97 Better way of aligning text baselines. Move boxes down to align 0.75 point instead of changing height.
svn path=/trunk/netsurf/; revision=8758
2009-07-23 23:51:43 +00:00
John Mark Bell ddeadd1c02 Merge LibCSS port to trunk.
svn path=/trunk/netsurf/; revision=8752
2009-07-23 23:05:34 +00:00
James Bursa dffc8779ed Set height of all text boxes in a line to the height of the highest one. This aligns the baseline of text which changes font size in a line. However, when the inline-block is reflowed, the heights do not shrink again where they could.
svn path=/trunk/netsurf/; revision=8716
2009-07-23 02:29:12 +00:00
John Mark Bell 6e13c2fb0a Scale font sizes, for better accuracy.
svn path=/trunk/netsurf/; revision=8657
2009-07-21 16:55:35 +00:00
Michael Drake 4ff22c67df Fix render colour of selected text.
svn path=/trunk/netsurf/; revision=8642
2009-07-21 11:33:55 +00:00
John Mark Bell 2565a37a52 Refactor text plotter and other font functions to remove dependency on CSS.
svn path=/trunk/netsurf/; revision=8641
2009-07-21 10:59:53 +00:00
Michael Drake 12cdd0f6dd Fix comment.
svn path=/trunk/netsurf/; revision=8520
2009-07-14 13:13:47 +00:00
Michael Drake 2d95b8aa57 Rename debug outline plot styles and make them const.
svn path=/trunk/netsurf/; revision=8518
2009-07-14 12:42:02 +00:00
Michael Drake 336b21198d Plot debug outlines after borders and backgrounds, so that they can be seen when things are coloured. Plot content edge before padding edge, so that the colour for the outermost edge is always shown when margin, border or padding are 0.
svn path=/trunk/netsurf/; revision=8515
2009-07-14 11:45:29 +00:00
Michael Drake 08fc83b189 Simplify debug outline calculations and avoid fp maths when scale is 1.0. Comment some border stuff.
svn path=/trunk/netsurf/; revision=8514
2009-07-14 11:26:44 +00:00
Michael Drake 8365d46eb7 Rename TRANSPARENT to NS_TRANSPARENT to avoid clash on Windows. By MarkieB.
svn path=/trunk/netsurf/; revision=8513
2009-07-14 10:57:07 +00:00
Vincent Sanders 86232d72a6 next round of plotter refactor
svn path=/trunk/netsurf/; revision=8512
2009-07-14 10:03:58 +00:00
Michael Drake ed2206316c Positioned elements are taken out of normal flow, so don't let them affect min/max width calculations.
svn path=/trunk/netsurf/; revision=8502
2009-07-13 15:37:54 +00:00
Michael Drake ebe0db1864 Delete html_redraw lighter/darker and use the colour tweakers in plot_style.
svn path=/trunk/netsurf/; revision=8452
2009-07-10 20:38:57 +00:00
Michael Drake e0a4b50e87 Move colour blend routine from html_redraw to plot_style and make it a define.
svn path=/trunk/netsurf/; revision=8451
2009-07-10 19:53:30 +00:00
Michael Drake 96d8e9335c Remove html_redraw_aa because it is the same as html_redraw_blend. Fix html_redraw_blend to be 50/50 instead of 75/25.
svn path=/trunk/netsurf/; revision=8448
2009-07-10 19:09:33 +00:00
Vincent Sanders 680298e61c plotters line refactor
svn path=/trunk/netsurf/; revision=8446
2009-07-10 18:36:49 +00:00
John Mark Bell 5feb7018c5 Replace parent_url with a pointer to the parent content.
svn path=/trunk/netsurf/; revision=8428
2009-07-10 00:26:37 +00:00
Vincent Sanders f9ecd56f62 ploter refactor of rectangle handling
svn path=/trunk/netsurf/; revision=8399
2009-07-08 22:04:40 +00:00
Michael Drake 21a2bfc53c Style guide indentation.
svn path=/trunk/netsurf/; revision=8345
2009-07-06 10:38:13 +00:00
Michael Drake 7372218033 Fix indentation to use tabs instead of spaces.
svn path=/trunk/netsurf/; revision=8344
2009-07-06 10:33:19 +00:00
Vincent Sanders 0ade453958 Refactor fill plotter to take a style
svn path=/trunk/netsurf/; revision=8332
2009-07-05 20:10:17 +00:00
John Mark Bell 2dbf92761f Fix stupid
svn path=/trunk/netsurf/; revision=8275
2009-07-02 23:05:10 +00:00
John Mark Bell e6f70d9760 Make this more legible and squash leaks.
svn path=/trunk/netsurf/; revision=8273
2009-07-02 22:35:15 +00:00
Vincent Sanders 1165edf662 remove redundant clg call
svn path=/trunk/netsurf/; revision=8240
2009-07-01 13:53:06 +00:00
Michael Drake f9b905be95 Fix assert when replaced element has display:table;.
svn path=/trunk/netsurf/; revision=7950
2009-06-24 15:43:24 +00:00
John Mark Bell 90c0fb6f3e Fix frame targets.
svn path=/trunk/netsurf/; revision=7729
2009-06-08 09:34:58 +00:00
Michael Drake 1a0f62f529 Don't need height of css positioned boxes when laying out boxes in normal flow.
svn path=/trunk/netsurf/; revision=7656
2009-05-30 12:22:22 +00:00
Michael Drake 798f421a88 When computing relative offset values for floats, use block formatting context for containing block, rather than parent.
svn path=/trunk/netsurf/; revision=7614
2009-05-28 18:06:49 +00:00
Michael Drake 8f9b03578f Remove redundant increment.
svn path=/trunk/netsurf/; revision=7596
2009-05-28 11:48:32 +00:00
Michael Drake a7c3c7bf15 Remove redundant calculation.
svn path=/trunk/netsurf/; revision=7595
2009-05-28 11:46:14 +00:00
Michael Drake b595970d82 Reorganise some conditions and only try to deal with min-height and max-height where it should be done.
svn path=/trunk/netsurf/; revision=7594
2009-05-28 11:14:32 +00:00
John Mark Bell 243c1ba03f Limit scope of manually-defined NDEBUG. Purge a bunch of redundant #undef NDEBUG.
svn path=/trunk/netsurf/; revision=7593
2009-05-28 10:39:53 +00:00
Michael Drake ee4beae9e2 Remove unused code.
svn path=/trunk/netsurf/; revision=7591
2009-05-27 20:14:36 +00:00
Michael Drake 223818b84c Make layout_apply_minmax_height assert if it's called with a box that shouldn't exist.
svn path=/trunk/netsurf/; revision=7590
2009-05-27 19:43:03 +00:00
Michael Drake 50219b81e6 Pedantic wrap.
svn path=/trunk/netsurf/; revision=7589
2009-05-27 19:17:16 +00:00