summaryrefslogtreecommitdiff
path: root/content/handlers/css
Commit message (Collapse)AuthorAgeFilesLines
* use attributes to indicate switch fall through instead of commentsVincent Sanders2024-03-051-5/+5
|
* css: Fix blocking of presentational hints for author_level_css=0Michael Drake2023-11-251-5/+7
|
* css: Add option to ignore author level CSSMichael Drake2023-11-251-0/+4
| | | | | | | | | | | | This adds a new config option, `author_level_css`. When it is disabled, NetSurf will ignore all CSS from the web page. In this case only the default CSS rules from the browser and user CSS rules will be applied. It is enabled by default. Tested by running: ./nsgtk3 --author_level_css=0
* Clean up print format specifier usageMichael Drake2023-06-171-2/+2
|
* Avoid integer types with platform dependent sizeDeltaVonNeumann2023-06-171-10/+12
|
* html: layout: Initial implementation of display: flexMichael Drake2022-10-291-5/+0
|
* css: Fix dump of display: inline-flexMichael Drake2022-10-291-0/+6
|
* css: Update display property helper for gridMichael Drake2022-10-291-7/+21
|
* CSS: Selection callbacks: Update to latest LibDOM API.Michael Drake2021-07-051-0/+3
|
* Switch to new libcss API for unit conversion.Michael Drake2021-05-306-447/+21
|
* CSS: Update to latest libcss: Remove weird units.Michael Drake2021-05-303-46/+2
| | | | The 'rlh', 'ic' and 'cap' units were never implemented by anyone.
* css: hints: Add support for OL type attribute.Michael Drake2021-01-311-0/+47
|
* improve desktop text search header usageVincent Sanders2020-06-241-0/+1
| | | | | | | | | remove unecessary inclusion of desktop search header in content header which has knock on effect of not having ctype or string system headers dragged in unecessarily. Futher this highlighted use of ctype API where internal ascii processing ought to be used.
* css: Support canvas width/height presentational hintsDaniel Silverstone2020-05-221-0/+65
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* improve content header usageVincent Sanders2020-05-071-4/+6
|
* Excise the llcache query pathway.Daniel Silverstone2019-08-051-8/+0
| | | | | | | | In further preparation for the auth and cert queries being handled as special contents from `about:` this excises the query pathway from the llcache pretty much entirely. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* content: Rename content_broadcast_errorcode()Daniel Silverstone2019-08-051-4/+4
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Content messages: Remove ERRORCODE, rework ERRORDaniel Silverstone2019-08-051-1/+0
| | | | | | | This reworks CONTENT_MSG_ERROR to be structured data and removes the CONTENT_MSG_ERRORCODE message kind. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Add content handlers for queriesDaniel Silverstone2019-08-041-1/+8
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* CSS hints: Change css_hint_advance to advance pointer by parameter.Michael Drake2019-08-041-55/+55
|
* css/utils.c: Fix vw/vh handling in len2ptDaniel Silverstone2019-06-301-2/+2
| | | | | | | | | We were using integer multiplication rather than fixed-point multiplication when calculating point sizes relative to the viewport. This fixes that. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* CSS: One inch is 96 css pixels.Michael Drake2019-05-071-2/+2
|
* CSS: Use helper to convert form css to physical pixels.Michael Drake2019-05-061-2/+1
|
* CSS: Add helpers to convert between css and physical pixels.Michael Drake2019-05-061-0/+25
|
* CSS: Extern the nscss_baseline_pixel_density value.Michael Drake2019-05-061-0/+3
| | | | | Front ends should be able to set this, or it should be a config option.
* Convert css_len2pt and css_len2px for CSS pixels.Michael Drake2019-05-061-15/+20
|
* change content get_source_data interfaces to return uint8_t and size_tVincent Sanders2019-05-051-6/+7
| | | | | previously these interfaces returned char * and unsigned int which was undesirable.
* CSS: Update for change to libcss select style API.Michael Drake2019-05-042-2/+2
| | | | | | | LibCSS now takes the client media spec, rather than just the media type we're selecting for. Signed-off-by: Michael Drake <michael.drake@codethink.co.uk>
* CSS: Update for change to libcss imported sheet API.Michael Drake2019-05-042-5/+2
| | | | | | The media is not exposed and sent back into libcss now. Signed-off-by: Michael Drake <michael.drake@codethink.co.uk>
* allow comments to supress implicit fallthrough warningsVincent Sanders2018-09-071-5/+5
|
* CSS utils: Handle new units in length conversion routines.Michael Drake2018-01-052-16/+174
| | | | | This causes a ripple effect of all the callsites needing information they didn't have.
* CSS computed style composition: Update for new CSS units.Michael Drake2018-01-052-5/+48
| | | | | | | Since the nscss_compute_font_size callback now needs to convert new units to absolute values, and some of these units require info from the root element's style, there are knock-on changes to ensure that the required info is available where its needed.
* CSS: Add new libcss unit types to computed style dump.Michael Drake2018-01-021-0/+39
|
* CSS: Wrappers for computed style getters that return unsupported values.Michael Drake2017-10-202-3/+73
| | | | We don't yet handle the Flexbox-related values for certain properties.
* CSS hints: Ensure length and unit are initialised for vertical-align.Michael Drake2017-10-131-0/+2
|
* Use coccinelle to change logging macro calls in c filesVincent Sanders2017-09-063-13/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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);
* CSS content handler: Convert to using content_broadcast_errorcode().Michael Drake2017-08-271-12/+5
|
* Content API: Make content_broadcast take pointer to content_msg_data.Michael Drake2017-08-261-4/+4
|
* CSS: Handle presentational hint for HR's "width" attribute.Michael Drake2017-04-101-0/+1
|
* Presentational hints: Ensure length is initialised for auto margins.Michael Drake2017-04-061-0/+2
| | | | | | | | | | | Although the length is unused when margin is auto, having uninitialised values present in a computed style means that the style hashing may give the same style different hashes depending on the unintitialised info. The effect of this would have been be to reduce the chance of computed style sharing. It would have had no effect on page rendering.
* move plot style header to netsurf include directoryVincent Sanders2017-01-131-0/+1
| | | | | move plotter style header and adjust all callers to use only what they actually require.
* fix spelling of retrivedVincent Sanders2016-11-211-2/+2
|
* Work in Progress: Update for style-sharing LibCSS API.Michael Drake2016-11-191-32/+23
|
* Table cell nowrap attribute is presentational hint, not UA style.Michael Drake2016-10-131-0/+17
|
* msplit public url database API out for frontendsVincent Sanders2016-06-131-1/+2
|
* Allow include directories to be added by sub makefilesVincent Sanders2016-06-066-13/+13
|
* move the CSS content handlerVincent Sanders2016-05-2613-0/+6568