summaryrefslogtreecommitdiff
path: root/src/select/computed.c
Commit message (Collapse)AuthorAgeFilesLines
* Selection: Don't duplicate unit conversion members in media descriptor.Michael Drake2021-05-191-8/+8
|
* Selection: Remove client callback for unit conversion.Michael Drake2021-05-191-13/+21
| | | | | | | Now clients provide a unit conversion context and libcss provides code to perform unit conversion. This reduces the amount of common code that clients have to write.
* select: computed: Squash use of uninitialised variable warning.Michael Drake2020-11-131-1/+1
|
* Computed styles: Check length pair getter type before using result.Michael Drake2020-02-241-0/+4
| | | | Fixes use of garbage value scan-build issue.
* Computed styles: Handle invalid width types.Michael Drake2020-02-241-0/+2
| | | | Fixes scan-build use of garbage value.
* Computed styles: Remove last traces of extension blocks.Michael Drake2019-05-121-16/+1
|
* Computed styles: Drop uncommon extension blocks.Michael Drake2019-05-121-158/+112
| | | | | | | | | | | | | | They were a space saving feature, but they became largely redundant with computed style sharing. They also made the code complex and buggy in many places. E.g. the cascade, inheritance / composition, and intial values all needed to behave corretly when they, or their parent, had or didn't have an uncommon block. Also, only the uncommon block was really used. Fixes: https://bugs.netsurf-browser.org/mantis/view.php?id=2641
* Media queries: Update selection API to support media queries.Michael Drake2019-05-041-1/+1
| | | | | | | | | | | | | | | | | | | | | The API changes are: 1. When building a selection context, stylesheets added with `css_select_ctx_{append|insert}_sheet()` now have to have media strings associcated with them. Previously they took a simple bitfield for CSS media type. 2. When selecting for an element, the client needs to specify the current media requirements. Previously it only had to provide the bitfield for CSS media type. 3. Same for the css_select_font_faces API. The selection handling has been updated to handle the new API, however it is currently only looking at the media type when performing selection. Signed-off-by: Michael Drake <michael.drake@codethink.co.uk>
* Selection: Add support for the flexbox properties.Lucas Neves2017-10-211-2/+89
|
* Strip trailing whitespace.Michael Drake2017-09-041-35/+35
|
* Interface: Add public API for getting box-sizing from computed style.Michael Drake2017-04-271-0/+5
|
* Remove redundant API surface.Michael Drake2016-11-191-3/+3
|
* Remove trailing whitespace.Michael Drake2016-11-191-1/+1
|
* Intern partial styles.Michael Drake2016-11-191-9/+21
| | | | | Note this changes the public API. We can't compose directly over child style now, since it may be interned.
* Composition: Avoid extension block checks irrelevent to property group.Michael Drake2016-11-191-14/+18
|
* After composing styles, intern the result in the style sharing arena.Michael Drake2016-11-191-4/+25
| | | | | Note this changes the API. Selection tests updated.
* Move trivially compared parts of computed styles to sub-structures.Michael Drake2016-11-191-31/+51
|
* Revert "Fix use of uninitialized values in style composition."John-Mark Bell2015-03-101-4/+4
| | | | This reverts commit 9a3112f46fcfce9952134fa230b5879ac33b8e3c.
* Fix use of uninitialized values in style composition.John-Mark Bell2015-03-101-4/+4
|
* Simplify length absolutification.Michael Drake2015-02-281-93/+19
| | | | | | Prevents harmless "Conditional jump or move depends on uninitialised value(s)" in case of properties set to "normal". Now we only absolutify EX values if the there is a value set.
* Use calloc instead of malloc/memset.Michael Drake2015-01-241-3/+1
|
* Add absolutification for column-gap.Michael Drake2015-01-101-0/+8
|
* Absolutification of column-width.Michael Drake2015-01-101-0/+8
|
* Improve comment.Michael Drake2015-01-101-2/+2
|
* Implement absolutification for column-rule-width.Michael Drake2015-01-101-2/+18
|
* Sync public getter wrapper's absolutification handling.Michael Drake2015-01-101-17/+10
|
* Need to pass normal property value though to the client.Michael Drake2015-01-101-43/+2
| | | | It has semantic meaning different from any absolute value (for justified text).
* Avoid duplicate get_column_rule_color call.Michael Drake2015-01-021-3/+1
|
* Trivial optimisation.Michael Drake2015-01-021-8/+13
|
* Ensure letter and word spacing are always absolutified.Michael Drake2015-01-021-2/+16
|
* Add absolute value conversion of currentColor for column-rule-color.Michael Drake2014-12-311-0/+8
|
* Add break-inside property support.Michael Drake2014-12-291-0/+5
|
* Add break-before property support.Michael Drake2014-12-291-0/+5
|
* Add break-after property support.Michael Drake2014-12-291-0/+5
|
* Fix broken absolute valuification of letter and word spacing properties.Michael Drake2014-12-291-4/+6
|
* Tiny optimisation for computed style absolute valuification.Michael Drake2014-12-291-3/+1
|
* Add public accessor for column-width property.Michael Drake2014-12-061-0/+6
|
* Add public accessor for column-span property.Michael Drake2014-12-061-0/+5
|
* Add public computed style accessor for column-rule-width prop.Michael Drake2014-11-161-0/+6
|
* Add public computed style accessor for column-rule-style property.Michael Drake2014-11-161-0/+5
|
* Add public accessor for column-rule-color in computed styles.Michael Drake2014-11-151-0/+6
|
* Add public computed style access function for column-gap property.Michael Drake2014-11-071-0/+6
|
* Add public accessor for column-fill property value.Michael Drake2014-11-071-0/+5
|
* Cascade and compose column-count property into computed style.Michael Drake2014-10-041-0/+6
|
* Add support for CSS3 overflow-x and overflow-y properties.Michael Drake2014-06-011-2/+7
| | | | | | | | Now, overflow is a shorthand property setting both overflow-x and overflow-y. The getter for the computed overflow has been removed, and replaced with two for overflow-x and overflow-y.
* Remove implementation duplication in top/right/bottom/left property getters.Michael Drake2014-01-101-115/+45
|
* Remove duplicate implementation in css_computed_float.Michael Drake2014-01-101-15/+6
|
* Remove 9.7 handling from get_display. Delete get_display_static. Remove ↵Michael Drake2014-01-101-30/+20
| | | | duplication in css_computed_display.
* Various changes for orphans and widows properties:Michael Drake2014-01-101-46/+4
| | | | | | + Keep as int internally, rather than css_fixed. + Fix get_widows to return widows instead of orphans. + Remove duplicate implementations in css_computed_ getters.
* Avoid duplicate implementations of computed style property getters.Michael Drake2014-01-101-1391/+158
|